Gen: re-run gen script
- commit
- c67787de90f19ca2312a202e6b7fbdc9e0a6e7e5
- author
- Jeroen Wijenbergh · · 2024-12-18 13:19 UTC
- committer
- Jeroen Wijenbergh · · 2025-04-07 12:23 UTC
- parent
- 0299370
- signature
- unsigned
650 files · +8729 -4
M v4/adw/adw-about-window.go +10 -0
| @@ -9,6 +9,7 @@ import ( | |||||
| 9 | "github.com/jwijenbergh/puregotk/v4/gdk" | 9 | "github.com/jwijenbergh/puregotk/v4/gdk" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/glib" | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 12 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 12 | "github.com/jwijenbergh/puregotk/v4/gsk" | 13 | "github.com/jwijenbergh/puregotk/v4/gsk" | ||
| 13 | "github.com/jwijenbergh/puregotk/v4/gtk" | 14 | "github.com/jwijenbergh/puregotk/v4/gtk" | ||
| 14 | ) | 15 | ) | ||
| @@ -205,6 +206,12 @@ type AboutWindow struct { | |||||
| 205 | Window | 206 | Window | ||
| 206 | } | 207 | } | ||
| 207 | 208 | ||||
| 209 | + | var xAboutWindowGLibType func() types.GType | |||
| 210 | + | ||||
| 211 | + | func AboutWindowGLibType() types.GType { | |||
| 212 | + | return xAboutWindowGLibType() | |||
| 213 | + | } | |||
| 214 | + | ||||
| 208 | func AboutWindowNewFromInternalPtr(ptr uintptr) *AboutWindow { | 215 | func AboutWindowNewFromInternalPtr(ptr uintptr) *AboutWindow { | ||
| 209 | cls := &AboutWindow{} | 216 | cls := &AboutWindow{} | ||
| 210 | cls.Ptr = ptr | 217 | cls.Ptr = ptr | ||
| @@ -1180,8 +1187,11 @@ func init() { | |||||
| 1180 | if err != nil { | 1187 | if err != nil { | ||
| 1181 | panic(err) | 1188 | panic(err) | ||
| 1182 | } | 1189 | } | ||
| 1190 | + | ||||
| 1183 | core.PuregoSafeRegister(&xShowAboutWindow, lib, "adw_show_about_window") | 1191 | core.PuregoSafeRegister(&xShowAboutWindow, lib, "adw_show_about_window") | ||
| 1184 | 1192 | ||||
| 1193 | + | core.PuregoSafeRegister(&xAboutWindowGLibType, lib, "adw_about_window_get_type") | |||
| 1194 | + | ||||
| 1185 | core.PuregoSafeRegister(&xNewAboutWindow, lib, "adw_about_window_new") | 1195 | core.PuregoSafeRegister(&xNewAboutWindow, lib, "adw_about_window_new") | ||
| 1186 | 1196 | ||||
| 1187 | core.PuregoSafeRegister(&xAboutWindowAddAcknowledgementSection, lib, "adw_about_window_add_acknowledgement_section") | 1197 | core.PuregoSafeRegister(&xAboutWindowAddAcknowledgementSection, lib, "adw_about_window_add_acknowledgement_section") | ||
M v4/adw/adw-action-row.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | "github.com/jwijenbergh/puregotk/v4/gtk" | 12 | "github.com/jwijenbergh/puregotk/v4/gtk" | ||
| 12 | ) | 13 | ) | ||
| 13 | 14 | ||||
| @@ -61,6 +62,12 @@ type ActionRow struct { | |||||
| 61 | PreferencesRow | 62 | PreferencesRow | ||
| 62 | } | 63 | } | ||
| 63 | 64 | ||||
| 65 | + | var xActionRowGLibType func() types.GType | |||
| 66 | + | ||||
| 67 | + | func ActionRowGLibType() types.GType { | |||
| 68 | + | return xActionRowGLibType() | |||
| 69 | + | } | |||
| 70 | + | ||||
| 64 | func ActionRowNewFromInternalPtr(ptr uintptr) *ActionRow { | 71 | func ActionRowNewFromInternalPtr(ptr uintptr) *ActionRow { | ||
| 65 | cls := &ActionRow{} | 72 | cls := &ActionRow{} | ||
| 66 | cls.Ptr = ptr | 73 | cls.Ptr = ptr | ||
| @@ -516,6 +523,8 @@ func init() { | |||||
| 516 | panic(err) | 523 | panic(err) | ||
| 517 | } | 524 | } | ||
| 518 | 525 | ||||
| 526 | + | core.PuregoSafeRegister(&xActionRowGLibType, lib, "adw_action_row_get_type") | |||
| 527 | + | ||||
| 519 | core.PuregoSafeRegister(&xNewActionRow, lib, "adw_action_row_new") | 528 | core.PuregoSafeRegister(&xNewActionRow, lib, "adw_action_row_new") | ||
| 520 | 529 | ||||
| 521 | core.PuregoSafeRegister(&xActionRowActivate, lib, "adw_action_row_activate") | 530 | core.PuregoSafeRegister(&xActionRowActivate, lib, "adw_action_row_activate") | ||
M v4/adw/adw-animation-target.go +25 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | // Prototype for animation targets based on user callbacks. | 14 | // Prototype for animation targets based on user callbacks. | ||
| @@ -39,6 +40,12 @@ type AnimationTarget struct { | |||||
| 39 | gobject.Object | 40 | gobject.Object | ||
| 40 | } | 41 | } | ||
| 41 | 42 | ||||
| 43 | + | var xAnimationTargetGLibType func() types.GType | |||
| 44 | + | ||||
| 45 | + | func AnimationTargetGLibType() types.GType { | |||
| 46 | + | return xAnimationTargetGLibType() | |||
| 47 | + | } | |||
| 48 | + | ||||
| 42 | func AnimationTargetNewFromInternalPtr(ptr uintptr) *AnimationTarget { | 49 | func AnimationTargetNewFromInternalPtr(ptr uintptr) *AnimationTarget { | ||
| 43 | cls := &AnimationTarget{} | 50 | cls := &AnimationTarget{} | ||
| 44 | cls.Ptr = ptr | 51 | cls.Ptr = ptr | ||
| @@ -59,6 +66,12 @@ type CallbackAnimationTarget struct { | |||||
| 59 | AnimationTarget | 66 | AnimationTarget | ||
| 60 | } | 67 | } | ||
| 61 | 68 | ||||
| 69 | + | var xCallbackAnimationTargetGLibType func() types.GType | |||
| 70 | + | ||||
| 71 | + | func CallbackAnimationTargetGLibType() types.GType { | |||
| 72 | + | return xCallbackAnimationTargetGLibType() | |||
| 73 | + | } | |||
| 74 | + | ||||
| 62 | func CallbackAnimationTargetNewFromInternalPtr(ptr uintptr) *CallbackAnimationTarget { | 75 | func CallbackAnimationTargetNewFromInternalPtr(ptr uintptr) *CallbackAnimationTarget { | ||
| 63 | cls := &CallbackAnimationTarget{} | 76 | cls := &CallbackAnimationTarget{} | ||
| 64 | cls.Ptr = ptr | 77 | cls.Ptr = ptr | ||
| @@ -96,6 +109,12 @@ type PropertyAnimationTarget struct { | |||||
| 96 | AnimationTarget | 109 | AnimationTarget | ||
| 97 | } | 110 | } | ||
| 98 | 111 | ||||
| 112 | + | var xPropertyAnimationTargetGLibType func() types.GType | |||
| 113 | + | ||||
| 114 | + | func PropertyAnimationTargetGLibType() types.GType { | |||
| 115 | + | return xPropertyAnimationTargetGLibType() | |||
| 116 | + | } | |||
| 117 | + | ||||
| 99 | func PropertyAnimationTargetNewFromInternalPtr(ptr uintptr) *PropertyAnimationTarget { | 118 | func PropertyAnimationTargetNewFromInternalPtr(ptr uintptr) *PropertyAnimationTarget { | ||
| 100 | cls := &PropertyAnimationTarget{} | 119 | cls := &PropertyAnimationTarget{} | ||
| 101 | cls.Ptr = ptr | 120 | cls.Ptr = ptr | ||
| @@ -188,8 +207,14 @@ func init() { | |||||
| 188 | panic(err) | 207 | panic(err) | ||
| 189 | } | 208 | } | ||
| 190 | 209 | ||||
| 210 | + | core.PuregoSafeRegister(&xAnimationTargetGLibType, lib, "adw_animation_target_get_type") | |||
| 211 | + | ||||
| 212 | + | core.PuregoSafeRegister(&xCallbackAnimationTargetGLibType, lib, "adw_callback_animation_target_get_type") | |||
| 213 | + | ||||
| 191 | core.PuregoSafeRegister(&xNewCallbackAnimationTarget, lib, "adw_callback_animation_target_new") | 214 | core.PuregoSafeRegister(&xNewCallbackAnimationTarget, lib, "adw_callback_animation_target_new") | ||
| 192 | 215 | ||||
| 216 | + | core.PuregoSafeRegister(&xPropertyAnimationTargetGLibType, lib, "adw_property_animation_target_get_type") | |||
| 217 | + | ||||
| 193 | core.PuregoSafeRegister(&xNewPropertyAnimationTarget, lib, "adw_property_animation_target_new") | 218 | core.PuregoSafeRegister(&xNewPropertyAnimationTarget, lib, "adw_property_animation_target_new") | ||
| 194 | core.PuregoSafeRegister(&xNewPropertyAnimationTargetForPspec, lib, "adw_property_animation_target_new_for_pspec") | 219 | core.PuregoSafeRegister(&xNewPropertyAnimationTargetForPspec, lib, "adw_property_animation_target_new_for_pspec") | ||
| 195 | 220 | ||||
M v4/adw/adw-animation-util.go +1 -0
| @@ -33,6 +33,7 @@ func init() { | |||||
| 33 | if err != nil { | 33 | if err != nil { | ||
| 34 | panic(err) | 34 | panic(err) | ||
| 35 | } | 35 | } | ||
| 36 | + | ||||
| 36 | core.PuregoSafeRegister(&xGetEnableAnimations, lib, "adw_get_enable_animations") | 37 | core.PuregoSafeRegister(&xGetEnableAnimations, lib, "adw_get_enable_animations") | ||
| 37 | core.PuregoSafeRegister(&xLerp, lib, "adw_lerp") | 38 | core.PuregoSafeRegister(&xLerp, lib, "adw_lerp") | ||
| 38 | 39 | ||||
M v4/adw/adw-animation.go +17 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | "github.com/jwijenbergh/puregotk/v4/gtk" | 12 | "github.com/jwijenbergh/puregotk/v4/gtk" | ||
| 12 | ) | 13 | ) | ||
| 13 | 14 | ||||
| @@ -32,6 +33,12 @@ const ( | |||||
| 32 | // [method@Animation.reset] and [method@Animation.skip]. | 33 | // [method@Animation.reset] and [method@Animation.skip]. | ||
| 33 | type AnimationState int | 34 | type AnimationState int | ||
| 34 | 35 | ||||
| 36 | + | var xAnimationStateGLibType func() types.GType | |||
| 37 | + | ||||
| 38 | + | func AnimationStateGLibType() types.GType { | |||
| 39 | + | return xAnimationStateGLibType() | |||
| 40 | + | } | |||
| 41 | + | ||||
| 35 | const ( | 42 | const ( | ||
| 36 | 43 | ||||
| 37 | // The animation hasn't started yet. | 44 | // The animation hasn't started yet. | ||
| @@ -97,6 +104,12 @@ type Animation struct { | |||||
| 97 | gobject.Object | 104 | gobject.Object | ||
| 98 | } | 105 | } | ||
| 99 | 106 | ||||
| 107 | + | var xAnimationGLibType func() types.GType | |||
| 108 | + | ||||
| 109 | + | func AnimationGLibType() types.GType { | |||
| 110 | + | return xAnimationGLibType() | |||
| 111 | + | } | |||
| 112 | + | ||||
| 100 | func AnimationNewFromInternalPtr(ptr uintptr) *Animation { | 113 | func AnimationNewFromInternalPtr(ptr uintptr) *Animation { | ||
| 101 | cls := &Animation{} | 114 | cls := &Animation{} | ||
| 102 | cls.Ptr = ptr | 115 | cls.Ptr = ptr | ||
| @@ -311,6 +324,10 @@ func init() { | |||||
| 311 | panic(err) | 324 | panic(err) | ||
| 312 | } | 325 | } | ||
| 313 | 326 | ||||
| 327 | + | core.PuregoSafeRegister(&xAnimationStateGLibType, lib, "adw_animation_state_get_type") | |||
| 328 | + | ||||
| 329 | + | core.PuregoSafeRegister(&xAnimationGLibType, lib, "adw_animation_get_type") | |||
| 330 | + | ||||
| 314 | core.PuregoSafeRegister(&xAnimationGetFollowEnableAnimationsSetting, lib, "adw_animation_get_follow_enable_animations_setting") | 331 | core.PuregoSafeRegister(&xAnimationGetFollowEnableAnimationsSetting, lib, "adw_animation_get_follow_enable_animations_setting") | ||
| 315 | core.PuregoSafeRegister(&xAnimationGetState, lib, "adw_animation_get_state") | 332 | core.PuregoSafeRegister(&xAnimationGetState, lib, "adw_animation_get_state") | ||
| 316 | core.PuregoSafeRegister(&xAnimationGetTarget, lib, "adw_animation_get_target") | 333 | core.PuregoSafeRegister(&xAnimationGetTarget, lib, "adw_animation_get_target") | ||
M v4/adw/adw-application-window.go +9 -0
| @@ -10,6 +10,7 @@ import ( | |||||
| 10 | "github.com/jwijenbergh/puregotk/v4/gio" | 10 | "github.com/jwijenbergh/puregotk/v4/gio" | ||
| 11 | "github.com/jwijenbergh/puregotk/v4/glib" | 11 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 12 | "github.com/jwijenbergh/puregotk/v4/gobject" | 12 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 13 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 13 | "github.com/jwijenbergh/puregotk/v4/gsk" | 14 | "github.com/jwijenbergh/puregotk/v4/gsk" | ||
| 14 | "github.com/jwijenbergh/puregotk/v4/gtk" | 15 | "github.com/jwijenbergh/puregotk/v4/gtk" | ||
| 15 | ) | 16 | ) | ||
| @@ -44,6 +45,12 @@ type ApplicationWindow struct { | |||||
| 44 | gtk.ApplicationWindow | 45 | gtk.ApplicationWindow | ||
| 45 | } | 46 | } | ||
| 46 | 47 | ||||
| 48 | + | var xApplicationWindowGLibType func() types.GType | |||
| 49 | + | ||||
| 50 | + | func ApplicationWindowGLibType() types.GType { | |||
| 51 | + | return xApplicationWindowGLibType() | |||
| 52 | + | } | |||
| 53 | + | ||||
| 47 | func ApplicationWindowNewFromInternalPtr(ptr uintptr) *ApplicationWindow { | 54 | func ApplicationWindowNewFromInternalPtr(ptr uintptr) *ApplicationWindow { | ||
| 48 | cls := &ApplicationWindow{} | 55 | cls := &ApplicationWindow{} | ||
| 49 | cls.Ptr = ptr | 56 | cls.Ptr = ptr | ||
| @@ -679,6 +686,8 @@ func init() { | |||||
| 679 | panic(err) | 686 | panic(err) | ||
| 680 | } | 687 | } | ||
| 681 | 688 | ||||
| 689 | + | core.PuregoSafeRegister(&xApplicationWindowGLibType, lib, "adw_application_window_get_type") | |||
| 690 | + | ||||
| 682 | core.PuregoSafeRegister(&xNewApplicationWindow, lib, "adw_application_window_new") | 691 | core.PuregoSafeRegister(&xNewApplicationWindow, lib, "adw_application_window_new") | ||
| 683 | 692 | ||||
| 684 | core.PuregoSafeRegister(&xApplicationWindowGetContent, lib, "adw_application_window_get_content") | 693 | core.PuregoSafeRegister(&xApplicationWindowGetContent, lib, "adw_application_window_get_content") | ||
M v4/adw/adw-application.go +9 -0
| @@ -9,6 +9,7 @@ import ( | |||||
| 9 | "github.com/jwijenbergh/puregotk/v4/gio" | 9 | "github.com/jwijenbergh/puregotk/v4/gio" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/glib" | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 12 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 12 | "github.com/jwijenbergh/puregotk/v4/gtk" | 13 | "github.com/jwijenbergh/puregotk/v4/gtk" | ||
| 13 | ) | 14 | ) | ||
| 14 | 15 | ||||
| @@ -52,6 +53,12 @@ type Application struct { | |||||
| 52 | gtk.Application | 53 | gtk.Application | ||
| 53 | } | 54 | } | ||
| 54 | 55 | ||||
| 56 | + | var xApplicationGLibType func() types.GType | |||
| 57 | + | ||||
| 58 | + | func ApplicationGLibType() types.GType { | |||
| 59 | + | return xApplicationGLibType() | |||
| 60 | + | } | |||
| 61 | + | ||||
| 55 | func ApplicationNewFromInternalPtr(ptr uintptr) *Application { | 62 | func ApplicationNewFromInternalPtr(ptr uintptr) *Application { | ||
| 56 | cls := &Application{} | 63 | cls := &Application{} | ||
| 57 | cls.Ptr = ptr | 64 | cls.Ptr = ptr | ||
| @@ -432,6 +439,8 @@ func init() { | |||||
| 432 | panic(err) | 439 | panic(err) | ||
| 433 | } | 440 | } | ||
| 434 | 441 | ||||
| 442 | + | core.PuregoSafeRegister(&xApplicationGLibType, lib, "adw_application_get_type") | |||
| 443 | + | ||||
| 435 | core.PuregoSafeRegister(&xNewApplication, lib, "adw_application_new") | 444 | core.PuregoSafeRegister(&xNewApplication, lib, "adw_application_new") | ||
| 436 | 445 | ||||
| 437 | core.PuregoSafeRegister(&xApplicationGetStyleManager, lib, "adw_application_get_style_manager") | 446 | core.PuregoSafeRegister(&xApplicationGetStyleManager, lib, "adw_application_get_style_manager") | ||
M v4/adw/adw-avatar.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/gdk" | 9 | "github.com/jwijenbergh/puregotk/v4/gdk" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | "github.com/jwijenbergh/puregotk/v4/gtk" | 12 | "github.com/jwijenbergh/puregotk/v4/gtk" | ||
| 12 | ) | 13 | ) | ||
| 13 | 14 | ||||
| @@ -48,6 +49,12 @@ type Avatar struct { | |||||
| 48 | gtk.Widget | 49 | gtk.Widget | ||
| 49 | } | 50 | } | ||
| 50 | 51 | ||||
| 52 | + | var xAvatarGLibType func() types.GType | |||
| 53 | + | ||||
| 54 | + | func AvatarGLibType() types.GType { | |||
| 55 | + | return xAvatarGLibType() | |||
| 56 | + | } | |||
| 57 | + | ||||
| 51 | func AvatarNewFromInternalPtr(ptr uintptr) *Avatar { | 58 | func AvatarNewFromInternalPtr(ptr uintptr) *Avatar { | ||
| 52 | cls := &Avatar{} | 59 | cls := &Avatar{} | ||
| 53 | cls.Ptr = ptr | 60 | cls.Ptr = ptr | ||
| @@ -353,6 +360,8 @@ func init() { | |||||
| 353 | panic(err) | 360 | panic(err) | ||
| 354 | } | 361 | } | ||
| 355 | 362 | ||||
| 363 | + | core.PuregoSafeRegister(&xAvatarGLibType, lib, "adw_avatar_get_type") | |||
| 364 | + | ||||
| 356 | core.PuregoSafeRegister(&xNewAvatar, lib, "adw_avatar_new") | 365 | core.PuregoSafeRegister(&xNewAvatar, lib, "adw_avatar_new") | ||
| 357 | 366 | ||||
| 358 | core.PuregoSafeRegister(&xAvatarDrawToTexture, lib, "adw_avatar_draw_to_texture") | 367 | core.PuregoSafeRegister(&xAvatarDrawToTexture, lib, "adw_avatar_draw_to_texture") | ||
M v4/adw/adw-banner.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | "github.com/jwijenbergh/puregotk/v4/gtk" | 12 | "github.com/jwijenbergh/puregotk/v4/gtk" | ||
| 12 | ) | 13 | ) | ||
| 13 | 14 | ||||
| @@ -47,6 +48,12 @@ type Banner struct { | |||||
| 47 | gtk.Widget | 48 | gtk.Widget | ||
| 48 | } | 49 | } | ||
| 49 | 50 | ||||
| 51 | + | var xBannerGLibType func() types.GType | |||
| 52 | + | ||||
| 53 | + | func BannerGLibType() types.GType { | |||
| 54 | + | return xBannerGLibType() | |||
| 55 | + | } | |||
| 56 | + | ||||
| 50 | func BannerNewFromInternalPtr(ptr uintptr) *Banner { | 57 | func BannerNewFromInternalPtr(ptr uintptr) *Banner { | ||
| 51 | cls := &Banner{} | 58 | cls := &Banner{} | ||
| 52 | cls.Ptr = ptr | 59 | cls.Ptr = ptr | ||
| @@ -413,6 +420,8 @@ func init() { | |||||
| 413 | panic(err) | 420 | panic(err) | ||
| 414 | } | 421 | } | ||
| 415 | 422 | ||||
| 423 | + | core.PuregoSafeRegister(&xBannerGLibType, lib, "adw_banner_get_type") | |||
| 424 | + | ||||
| 416 | core.PuregoSafeRegister(&xNewBanner, lib, "adw_banner_new") | 425 | core.PuregoSafeRegister(&xNewBanner, lib, "adw_banner_new") | ||
| 417 | 426 | ||||
| 418 | core.PuregoSafeRegister(&xBannerGetButtonLabel, lib, "adw_banner_get_button_label") | 427 | core.PuregoSafeRegister(&xBannerGetButtonLabel, lib, "adw_banner_get_button_label") | ||
M v4/adw/adw-bin.go +9 -0
| @@ -7,6 +7,7 @@ import ( | |||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 10 | "github.com/jwijenbergh/puregotk/v4/gtk" | 11 | "github.com/jwijenbergh/puregotk/v4/gtk" | ||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| @@ -36,6 +37,12 @@ type Bin struct { | |||||
| 36 | gtk.Widget | 37 | gtk.Widget | ||
| 37 | } | 38 | } | ||
| 38 | 39 | ||||
| 40 | + | var xBinGLibType func() types.GType | |||
| 41 | + | ||||
| 42 | + | func BinGLibType() types.GType { | |||
| 43 | + | return xBinGLibType() | |||
| 44 | + | } | |||
| 45 | + | ||||
| 39 | func BinNewFromInternalPtr(ptr uintptr) *Bin { | 46 | func BinNewFromInternalPtr(ptr uintptr) *Bin { | ||
| 40 | cls := &Bin{} | 47 | cls := &Bin{} | ||
| 41 | cls.Ptr = ptr | 48 | cls.Ptr = ptr | ||
| @@ -242,6 +249,8 @@ func init() { | |||||
| 242 | panic(err) | 249 | panic(err) | ||
| 243 | } | 250 | } | ||
| 244 | 251 | ||||
| 252 | + | core.PuregoSafeRegister(&xBinGLibType, lib, "adw_bin_get_type") | |||
| 253 | + | ||||
| 245 | core.PuregoSafeRegister(&xNewBin, lib, "adw_bin_new") | 254 | core.PuregoSafeRegister(&xNewBin, lib, "adw_bin_new") | ||
| 246 | 255 | ||||
| 247 | core.PuregoSafeRegister(&xBinGetChild, lib, "adw_bin_get_child") | 256 | core.PuregoSafeRegister(&xBinGetChild, lib, "adw_bin_get_child") | ||
M v4/adw/adw-button-content.go +9 -0
| @@ -7,6 +7,7 @@ import ( | |||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 10 | "github.com/jwijenbergh/puregotk/v4/gtk" | 11 | "github.com/jwijenbergh/puregotk/v4/gtk" | ||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| @@ -72,6 +73,12 @@ type ButtonContent struct { | |||||
| 72 | gtk.Widget | 73 | gtk.Widget | ||
| 73 | } | 74 | } | ||
| 74 | 75 | ||||
| 76 | + | var xButtonContentGLibType func() types.GType | |||
| 77 | + | ||||
| 78 | + | func ButtonContentGLibType() types.GType { | |||
| 79 | + | return xButtonContentGLibType() | |||
| 80 | + | } | |||
| 81 | + | ||||
| 75 | func ButtonContentNewFromInternalPtr(ptr uintptr) *ButtonContent { | 82 | func ButtonContentNewFromInternalPtr(ptr uintptr) *ButtonContent { | ||
| 76 | cls := &ButtonContent{} | 83 | cls := &ButtonContent{} | ||
| 77 | cls.Ptr = ptr | 84 | cls.Ptr = ptr | ||
| @@ -312,6 +319,8 @@ func init() { | |||||
| 312 | panic(err) | 319 | panic(err) | ||
| 313 | } | 320 | } | ||
| 314 | 321 | ||||
| 322 | + | core.PuregoSafeRegister(&xButtonContentGLibType, lib, "adw_button_content_get_type") | |||
| 323 | + | ||||
| 315 | core.PuregoSafeRegister(&xNewButtonContent, lib, "adw_button_content_new") | 324 | core.PuregoSafeRegister(&xNewButtonContent, lib, "adw_button_content_new") | ||
| 316 | 325 | ||||
| 317 | core.PuregoSafeRegister(&xButtonContentGetIconName, lib, "adw_button_content_get_icon_name") | 326 | core.PuregoSafeRegister(&xButtonContentGetIconName, lib, "adw_button_content_get_icon_name") | ||
M v4/adw/adw-carousel-indicator-dots.go +9 -0
| @@ -7,6 +7,7 @@ import ( | |||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 10 | "github.com/jwijenbergh/puregotk/v4/gtk" | 11 | "github.com/jwijenbergh/puregotk/v4/gtk" | ||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| @@ -42,6 +43,12 @@ type CarouselIndicatorDots struct { | |||||
| 42 | gtk.Widget | 43 | gtk.Widget | ||
| 43 | } | 44 | } | ||
| 44 | 45 | ||||
| 46 | + | var xCarouselIndicatorDotsGLibType func() types.GType | |||
| 47 | + | ||||
| 48 | + | func CarouselIndicatorDotsGLibType() types.GType { | |||
| 49 | + | return xCarouselIndicatorDotsGLibType() | |||
| 50 | + | } | |||
| 51 | + | ||||
| 45 | func CarouselIndicatorDotsNewFromInternalPtr(ptr uintptr) *CarouselIndicatorDots { | 52 | func CarouselIndicatorDotsNewFromInternalPtr(ptr uintptr) *CarouselIndicatorDots { | ||
| 46 | cls := &CarouselIndicatorDots{} | 53 | cls := &CarouselIndicatorDots{} | ||
| 47 | cls.Ptr = ptr | 54 | cls.Ptr = ptr | ||
| @@ -262,6 +269,8 @@ func init() { | |||||
| 262 | panic(err) | 269 | panic(err) | ||
| 263 | } | 270 | } | ||
| 264 | 271 | ||||
| 272 | + | core.PuregoSafeRegister(&xCarouselIndicatorDotsGLibType, lib, "adw_carousel_indicator_dots_get_type") | |||
| 273 | + | ||||
| 265 | core.PuregoSafeRegister(&xNewCarouselIndicatorDots, lib, "adw_carousel_indicator_dots_new") | 274 | core.PuregoSafeRegister(&xNewCarouselIndicatorDots, lib, "adw_carousel_indicator_dots_new") | ||
| 266 | 275 | ||||
| 267 | core.PuregoSafeRegister(&xCarouselIndicatorDotsGetCarousel, lib, "adw_carousel_indicator_dots_get_carousel") | 276 | core.PuregoSafeRegister(&xCarouselIndicatorDotsGetCarousel, lib, "adw_carousel_indicator_dots_get_carousel") | ||
M v4/adw/adw-carousel-indicator-lines.go +9 -0
| @@ -7,6 +7,7 @@ import ( | |||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 10 | "github.com/jwijenbergh/puregotk/v4/gtk" | 11 | "github.com/jwijenbergh/puregotk/v4/gtk" | ||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| @@ -41,6 +42,12 @@ type CarouselIndicatorLines struct { | |||||
| 41 | gtk.Widget | 42 | gtk.Widget | ||
| 42 | } | 43 | } | ||
| 43 | 44 | ||||
| 45 | + | var xCarouselIndicatorLinesGLibType func() types.GType | |||
| 46 | + | ||||
| 47 | + | func CarouselIndicatorLinesGLibType() types.GType { | |||
| 48 | + | return xCarouselIndicatorLinesGLibType() | |||
| 49 | + | } | |||
| 50 | + | ||||
| 44 | func CarouselIndicatorLinesNewFromInternalPtr(ptr uintptr) *CarouselIndicatorLines { | 51 | func CarouselIndicatorLinesNewFromInternalPtr(ptr uintptr) *CarouselIndicatorLines { | ||
| 45 | cls := &CarouselIndicatorLines{} | 52 | cls := &CarouselIndicatorLines{} | ||
| 46 | cls.Ptr = ptr | 53 | cls.Ptr = ptr | ||
| @@ -261,6 +268,8 @@ func init() { | |||||
| 261 | panic(err) | 268 | panic(err) | ||
| 262 | } | 269 | } | ||
| 263 | 270 | ||||
| 271 | + | core.PuregoSafeRegister(&xCarouselIndicatorLinesGLibType, lib, "adw_carousel_indicator_lines_get_type") | |||
| 272 | + | ||||
| 264 | core.PuregoSafeRegister(&xNewCarouselIndicatorLines, lib, "adw_carousel_indicator_lines_new") | 273 | core.PuregoSafeRegister(&xNewCarouselIndicatorLines, lib, "adw_carousel_indicator_lines_new") | ||
| 265 | 274 | ||||
| 266 | core.PuregoSafeRegister(&xCarouselIndicatorLinesGetCarousel, lib, "adw_carousel_indicator_lines_get_carousel") | 275 | core.PuregoSafeRegister(&xCarouselIndicatorLinesGetCarousel, lib, "adw_carousel_indicator_lines_get_carousel") | ||
M v4/adw/adw-carousel.go +9 -0
| @@ -9,6 +9,7 @@ import ( | |||||
| 9 | "github.com/jwijenbergh/puregotk/v4/gdk" | 9 | "github.com/jwijenbergh/puregotk/v4/gdk" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/glib" | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 12 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 12 | "github.com/jwijenbergh/puregotk/v4/gtk" | 13 | "github.com/jwijenbergh/puregotk/v4/gtk" | ||
| 13 | ) | 14 | ) | ||
| 14 | 15 | ||||
| @@ -42,6 +43,12 @@ type Carousel struct { | |||||
| 42 | gtk.Widget | 43 | gtk.Widget | ||
| 43 | } | 44 | } | ||
| 44 | 45 | ||||
| 46 | + | var xCarouselGLibType func() types.GType | |||
| 47 | + | ||||
| 48 | + | func CarouselGLibType() types.GType { | |||
| 49 | + | return xCarouselGLibType() | |||
| 50 | + | } | |||
| 51 | + | ||||
| 45 | func CarouselNewFromInternalPtr(ptr uintptr) *Carousel { | 52 | func CarouselNewFromInternalPtr(ptr uintptr) *Carousel { | ||
| 46 | cls := &Carousel{} | 53 | cls := &Carousel{} | ||
| 47 | cls.Ptr = ptr | 54 | cls.Ptr = ptr | ||
| @@ -551,6 +558,8 @@ func init() { | |||||
| 551 | panic(err) | 558 | panic(err) | ||
| 552 | } | 559 | } | ||
| 553 | 560 | ||||
| 561 | + | core.PuregoSafeRegister(&xCarouselGLibType, lib, "adw_carousel_get_type") | |||
| 562 | + | ||||
| 554 | core.PuregoSafeRegister(&xNewCarousel, lib, "adw_carousel_new") | 563 | core.PuregoSafeRegister(&xNewCarousel, lib, "adw_carousel_new") | ||
| 555 | 564 | ||||
| 556 | core.PuregoSafeRegister(&xCarouselAppend, lib, "adw_carousel_append") | 565 | core.PuregoSafeRegister(&xCarouselAppend, lib, "adw_carousel_append") | ||
M v4/adw/adw-clamp-layout.go +9 -0
| @@ -6,6 +6,7 @@ import ( | |||||
| 6 | 6 | ||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 9 | "github.com/jwijenbergh/puregotk/v4/gtk" | 10 | "github.com/jwijenbergh/puregotk/v4/gtk" | ||
| 10 | ) | 11 | ) | ||
| 11 | 12 | ||||
| @@ -47,6 +48,12 @@ type ClampLayout struct { | |||||
| 47 | gtk.LayoutManager | 48 | gtk.LayoutManager | ||
| 48 | } | 49 | } | ||
| 49 | 50 | ||||
| 51 | + | var xClampLayoutGLibType func() types.GType | |||
| 52 | + | ||||
| 53 | + | func ClampLayoutGLibType() types.GType { | |||
| 54 | + | return xClampLayoutGLibType() | |||
| 55 | + | } | |||
| 56 | + | ||||
| 50 | func ClampLayoutNewFromInternalPtr(ptr uintptr) *ClampLayout { | 57 | func ClampLayoutNewFromInternalPtr(ptr uintptr) *ClampLayout { | ||
| 51 | cls := &ClampLayout{} | 58 | cls := &ClampLayout{} | ||
| 52 | cls.Ptr = ptr | 59 | cls.Ptr = ptr | ||
| @@ -148,6 +155,8 @@ func init() { | |||||
| 148 | panic(err) | 155 | panic(err) | ||
| 149 | } | 156 | } | ||
| 150 | 157 | ||||
| 158 | + | core.PuregoSafeRegister(&xClampLayoutGLibType, lib, "adw_clamp_layout_get_type") | |||
| 159 | + | ||||
| 151 | core.PuregoSafeRegister(&xNewClampLayout, lib, "adw_clamp_layout_new") | 160 | core.PuregoSafeRegister(&xNewClampLayout, lib, "adw_clamp_layout_new") | ||
| 152 | 161 | ||||
| 153 | core.PuregoSafeRegister(&xClampLayoutGetMaximumSize, lib, "adw_clamp_layout_get_maximum_size") | 162 | core.PuregoSafeRegister(&xClampLayoutGetMaximumSize, lib, "adw_clamp_layout_get_maximum_size") | ||
M v4/adw/adw-clamp-scrollable.go +9 -0
| @@ -7,6 +7,7 @@ import ( | |||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 10 | "github.com/jwijenbergh/puregotk/v4/gtk" | 11 | "github.com/jwijenbergh/puregotk/v4/gtk" | ||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| @@ -29,6 +30,12 @@ type ClampScrollable struct { | |||||
| 29 | gtk.Widget | 30 | gtk.Widget | ||
| 30 | } | 31 | } | ||
| 31 | 32 | ||||
| 33 | + | var xClampScrollableGLibType func() types.GType | |||
| 34 | + | ||||
| 35 | + | func ClampScrollableGLibType() types.GType { | |||
| 36 | + | return xClampScrollableGLibType() | |||
| 37 | + | } | |||
| 38 | + | ||||
| 32 | func ClampScrollableNewFromInternalPtr(ptr uintptr) *ClampScrollable { | 39 | func ClampScrollableNewFromInternalPtr(ptr uintptr) *ClampScrollable { | ||
| 33 | cls := &ClampScrollable{} | 40 | cls := &ClampScrollable{} | ||
| 34 | cls.Ptr = ptr | 41 | cls.Ptr = ptr | ||
| @@ -390,6 +397,8 @@ func init() { | |||||
| 390 | panic(err) | 397 | panic(err) | ||
| 391 | } | 398 | } | ||
| 392 | 399 | ||||
| 400 | + | core.PuregoSafeRegister(&xClampScrollableGLibType, lib, "adw_clamp_scrollable_get_type") | |||
| 401 | + | ||||
| 393 | core.PuregoSafeRegister(&xNewClampScrollable, lib, "adw_clamp_scrollable_new") | 402 | core.PuregoSafeRegister(&xNewClampScrollable, lib, "adw_clamp_scrollable_new") | ||
| 394 | 403 | ||||
| 395 | core.PuregoSafeRegister(&xClampScrollableGetChild, lib, "adw_clamp_scrollable_get_child") | 404 | core.PuregoSafeRegister(&xClampScrollableGetChild, lib, "adw_clamp_scrollable_get_child") | ||
M v4/adw/adw-clamp.go +9 -0
| @@ -7,6 +7,7 @@ import ( | |||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 10 | "github.com/jwijenbergh/puregotk/v4/gtk" | 11 | "github.com/jwijenbergh/puregotk/v4/gtk" | ||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| @@ -52,6 +53,12 @@ type Clamp struct { | |||||
| 52 | gtk.Widget | 53 | gtk.Widget | ||
| 53 | } | 54 | } | ||
| 54 | 55 | ||||
| 56 | + | var xClampGLibType func() types.GType | |||
| 57 | + | ||||
| 58 | + | func ClampGLibType() types.GType { | |||
| 59 | + | return xClampGLibType() | |||
| 60 | + | } | |||
| 61 | + | ||||
| 55 | func ClampNewFromInternalPtr(ptr uintptr) *Clamp { | 62 | func ClampNewFromInternalPtr(ptr uintptr) *Clamp { | ||
| 56 | cls := &Clamp{} | 63 | cls := &Clamp{} | ||
| 57 | cls.Ptr = ptr | 64 | cls.Ptr = ptr | ||
| @@ -323,6 +330,8 @@ func init() { | |||||
| 323 | panic(err) | 330 | panic(err) | ||
| 324 | } | 331 | } | ||
| 325 | 332 | ||||
| 333 | + | core.PuregoSafeRegister(&xClampGLibType, lib, "adw_clamp_get_type") | |||
| 334 | + | ||||
| 326 | core.PuregoSafeRegister(&xNewClamp, lib, "adw_clamp_new") | 335 | core.PuregoSafeRegister(&xNewClamp, lib, "adw_clamp_new") | ||
| 327 | 336 | ||||
| 328 | core.PuregoSafeRegister(&xClampGetChild, lib, "adw_clamp_get_child") | 337 | core.PuregoSafeRegister(&xClampGetChild, lib, "adw_clamp_get_child") | ||
M v4/adw/adw-combo-row.go +9 -0
| @@ -9,6 +9,7 @@ import ( | |||||
| 9 | "github.com/jwijenbergh/puregotk/v4/gio" | 9 | "github.com/jwijenbergh/puregotk/v4/gio" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/glib" | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 12 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 12 | "github.com/jwijenbergh/puregotk/v4/gtk" | 13 | "github.com/jwijenbergh/puregotk/v4/gtk" | ||
| 13 | ) | 14 | ) | ||
| 14 | 15 | ||||
| @@ -77,6 +78,12 @@ type ComboRow struct { | |||||
| 77 | ActionRow | 78 | ActionRow | ||
| 78 | } | 79 | } | ||
| 79 | 80 | ||||
| 81 | + | var xComboRowGLibType func() types.GType | |||
| 82 | + | ||||
| 83 | + | func ComboRowGLibType() types.GType { | |||
| 84 | + | return xComboRowGLibType() | |||
| 85 | + | } | |||
| 86 | + | ||||
| 80 | func ComboRowNewFromInternalPtr(ptr uintptr) *ComboRow { | 87 | func ComboRowNewFromInternalPtr(ptr uintptr) *ComboRow { | ||
| 81 | cls := &ComboRow{} | 88 | cls := &ComboRow{} | ||
| 82 | cls.Ptr = ptr | 89 | cls.Ptr = ptr | ||
| @@ -516,6 +523,8 @@ func init() { | |||||
| 516 | panic(err) | 523 | panic(err) | ||
| 517 | } | 524 | } | ||
| 518 | 525 | ||||
| 526 | + | core.PuregoSafeRegister(&xComboRowGLibType, lib, "adw_combo_row_get_type") | |||
| 527 | + | ||||
| 519 | core.PuregoSafeRegister(&xNewComboRow, lib, "adw_combo_row_new") | 528 | core.PuregoSafeRegister(&xNewComboRow, lib, "adw_combo_row_new") | ||
| 520 | 529 | ||||
| 521 | core.PuregoSafeRegister(&xComboRowGetExpression, lib, "adw_combo_row_get_expression") | 530 | core.PuregoSafeRegister(&xComboRowGetExpression, lib, "adw_combo_row_get_expression") | ||
M v4/adw/adw-easing.go +10 -0
| @@ -4,6 +4,7 @@ package adw | |||||
| 4 | import ( | 4 | import ( | ||
| 5 | "github.com/jwijenbergh/purego" | 5 | "github.com/jwijenbergh/purego" | ||
| 6 | "github.com/jwijenbergh/puregotk/internal/core" | 6 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 7 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 7 | ) | 8 | ) | ||
| 8 | 9 | ||||
| 9 | // Describes the available easing functions for use with | 10 | // Describes the available easing functions for use with | ||
| @@ -12,6 +13,12 @@ import ( | |||||
| 12 | // New values may be added to this enumeration over time. | 13 | // New values may be added to this enumeration over time. | ||
| 13 | type Easing int | 14 | type Easing int | ||
| 14 | 15 | ||||
| 16 | + | var xEasingGLibType func() types.GType | |||
| 17 | + | ||||
| 18 | + | func EasingGLibType() types.GType { | |||
| 19 | + | return xEasingGLibType() | |||
| 20 | + | } | |||
| 21 | + | ||||
| 15 | const ( | 22 | const ( | ||
| 16 | 23 | ||||
| 17 | // Linear tweening. | 24 | // Linear tweening. | ||
| @@ -109,6 +116,9 @@ func init() { | |||||
| 109 | if err != nil { | 116 | if err != nil { | ||
| 110 | panic(err) | 117 | panic(err) | ||
| 111 | } | 118 | } | ||
| 119 | + | ||||
| 120 | + | core.PuregoSafeRegister(&xEasingGLibType, lib, "adw_easing_get_type") | |||
| 121 | + | ||||
| 112 | core.PuregoSafeRegister(&xEasingEase, lib, "adw_easing_ease") | 122 | core.PuregoSafeRegister(&xEasingEase, lib, "adw_easing_ease") | ||
| 113 | 123 | ||||
| 114 | } | 124 | } | ||
M v4/adw/adw-entry-row.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | "github.com/jwijenbergh/puregotk/v4/gtk" | 12 | "github.com/jwijenbergh/puregotk/v4/gtk" | ||
| 12 | "github.com/jwijenbergh/puregotk/v4/pango" | 13 | "github.com/jwijenbergh/puregotk/v4/pango" | ||
| 13 | ) | 14 | ) | ||
| @@ -60,6 +61,12 @@ type EntryRow struct { | |||||
| 60 | PreferencesRow | 61 | PreferencesRow | ||
| 61 | } | 62 | } | ||
| 62 | 63 | ||||
| 64 | + | var xEntryRowGLibType func() types.GType | |||
| 65 | + | ||||
| 66 | + | func EntryRowGLibType() types.GType { | |||
| 67 | + | return xEntryRowGLibType() | |||
| 68 | + | } | |||
| 69 | + | ||||
| 63 | func EntryRowNewFromInternalPtr(ptr uintptr) *EntryRow { | 70 | func EntryRowNewFromInternalPtr(ptr uintptr) *EntryRow { | ||
| 64 | cls := &EntryRow{} | 71 | cls := &EntryRow{} | ||
| 65 | cls.Ptr = ptr | 72 | cls.Ptr = ptr | ||
| @@ -772,6 +779,8 @@ func init() { | |||||
| 772 | panic(err) | 779 | panic(err) | ||
| 773 | } | 780 | } | ||
| 774 | 781 | ||||
| 782 | + | core.PuregoSafeRegister(&xEntryRowGLibType, lib, "adw_entry_row_get_type") | |||
| 783 | + | ||||
| 775 | core.PuregoSafeRegister(&xNewEntryRow, lib, "adw_entry_row_new") | 784 | core.PuregoSafeRegister(&xNewEntryRow, lib, "adw_entry_row_new") | ||
| 776 | 785 | ||||
| 777 | core.PuregoSafeRegister(&xEntryRowAddPrefix, lib, "adw_entry_row_add_prefix") | 786 | core.PuregoSafeRegister(&xEntryRowAddPrefix, lib, "adw_entry_row_add_prefix") | ||
M v4/adw/adw-enum-list-model.go +16 -0
| @@ -32,6 +32,12 @@ type EnumListItem struct { | |||||
| 32 | gobject.Object | 32 | gobject.Object | ||
| 33 | } | 33 | } | ||
| 34 | 34 | ||||
| 35 | + | var xEnumListItemGLibType func() types.GType | |||
| 36 | + | ||||
| 37 | + | func EnumListItemGLibType() types.GType { | |||
| 38 | + | return xEnumListItemGLibType() | |||
| 39 | + | } | |||
| 40 | + | ||||
| 35 | func EnumListItemNewFromInternalPtr(ptr uintptr) *EnumListItem { | 41 | func EnumListItemNewFromInternalPtr(ptr uintptr) *EnumListItem { | ||
| 36 | cls := &EnumListItem{} | 42 | cls := &EnumListItem{} | ||
| 37 | cls.Ptr = ptr | 43 | cls.Ptr = ptr | ||
| @@ -80,6 +86,12 @@ type EnumListModel struct { | |||||
| 80 | gobject.Object | 86 | gobject.Object | ||
| 81 | } | 87 | } | ||
| 82 | 88 | ||||
| 89 | + | var xEnumListModelGLibType func() types.GType | |||
| 90 | + | ||||
| 91 | + | func EnumListModelGLibType() types.GType { | |||
| 92 | + | return xEnumListModelGLibType() | |||
| 93 | + | } | |||
| 94 | + | ||||
| 83 | func EnumListModelNewFromInternalPtr(ptr uintptr) *EnumListModel { | 95 | func EnumListModelNewFromInternalPtr(ptr uintptr) *EnumListModel { | ||
| 84 | cls := &EnumListModel{} | 96 | cls := &EnumListModel{} | ||
| 85 | cls.Ptr = ptr | 97 | cls.Ptr = ptr | ||
| @@ -225,10 +237,14 @@ func init() { | |||||
| 225 | panic(err) | 237 | panic(err) | ||
| 226 | } | 238 | } | ||
| 227 | 239 | ||||
| 240 | + | core.PuregoSafeRegister(&xEnumListItemGLibType, lib, "adw_enum_list_item_get_type") | |||
| 241 | + | ||||
| 228 | core.PuregoSafeRegister(&xEnumListItemGetName, lib, "adw_enum_list_item_get_name") | 242 | core.PuregoSafeRegister(&xEnumListItemGetName, lib, "adw_enum_list_item_get_name") | ||
| 229 | core.PuregoSafeRegister(&xEnumListItemGetNick, lib, "adw_enum_list_item_get_nick") | 243 | core.PuregoSafeRegister(&xEnumListItemGetNick, lib, "adw_enum_list_item_get_nick") | ||
| 230 | core.PuregoSafeRegister(&xEnumListItemGetValue, lib, "adw_enum_list_item_get_value") | 244 | core.PuregoSafeRegister(&xEnumListItemGetValue, lib, "adw_enum_list_item_get_value") | ||
| 231 | 245 | ||||
| 246 | + | core.PuregoSafeRegister(&xEnumListModelGLibType, lib, "adw_enum_list_model_get_type") | |||
| 247 | + | ||||
| 232 | core.PuregoSafeRegister(&xNewEnumListModel, lib, "adw_enum_list_model_new") | 248 | core.PuregoSafeRegister(&xNewEnumListModel, lib, "adw_enum_list_model_new") | ||
| 233 | 249 | ||||
| 234 | core.PuregoSafeRegister(&xEnumListModelFindPosition, lib, "adw_enum_list_model_find_position") | 250 | core.PuregoSafeRegister(&xEnumListModelFindPosition, lib, "adw_enum_list_model_find_position") | ||
M v4/adw/adw-expander-row.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | "github.com/jwijenbergh/puregotk/v4/gtk" | 12 | "github.com/jwijenbergh/puregotk/v4/gtk" | ||
| 12 | ) | 13 | ) | ||
| 13 | 14 | ||||
| @@ -55,6 +56,12 @@ type ExpanderRow struct { | |||||
| 55 | PreferencesRow | 56 | PreferencesRow | ||
| 56 | } | 57 | } | ||
| 57 | 58 | ||||
| 59 | + | var xExpanderRowGLibType func() types.GType | |||
| 60 | + | ||||
| 61 | + | func ExpanderRowGLibType() types.GType { | |||
| 62 | + | return xExpanderRowGLibType() | |||
| 63 | + | } | |||
| 64 | + | ||||
| 58 | func ExpanderRowNewFromInternalPtr(ptr uintptr) *ExpanderRow { | 65 | func ExpanderRowNewFromInternalPtr(ptr uintptr) *ExpanderRow { | ||
| 59 | cls := &ExpanderRow{} | 66 | cls := &ExpanderRow{} | ||
| 60 | cls.Ptr = ptr | 67 | cls.Ptr = ptr | ||
| @@ -492,6 +499,8 @@ func init() { | |||||
| 492 | panic(err) | 499 | panic(err) | ||
| 493 | } | 500 | } | ||
| 494 | 501 | ||||
| 502 | + | core.PuregoSafeRegister(&xExpanderRowGLibType, lib, "adw_expander_row_get_type") | |||
| 503 | + | ||||
| 495 | core.PuregoSafeRegister(&xNewExpanderRow, lib, "adw_expander_row_new") | 504 | core.PuregoSafeRegister(&xNewExpanderRow, lib, "adw_expander_row_new") | ||
| 496 | 505 | ||||
| 497 | core.PuregoSafeRegister(&xExpanderRowAddAction, lib, "adw_expander_row_add_action") | 506 | core.PuregoSafeRegister(&xExpanderRowAddAction, lib, "adw_expander_row_add_action") | ||
M v4/adw/adw-flap.go +25 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/gdk" | 9 | "github.com/jwijenbergh/puregotk/v4/gdk" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | "github.com/jwijenbergh/puregotk/v4/gtk" | 12 | "github.com/jwijenbergh/puregotk/v4/gtk" | ||
| 12 | ) | 13 | ) | ||
| 13 | 14 | ||||
| @@ -22,6 +23,12 @@ func (x *FlapClass) GoPointer() uintptr { | |||||
| 22 | // Describes the possible folding behavior of a [class@Flap] widget. | 23 | // Describes the possible folding behavior of a [class@Flap] widget. | ||
| 23 | type FlapFoldPolicy int | 24 | type FlapFoldPolicy int | ||
| 24 | 25 | ||||
| 26 | + | var xFlapFoldPolicyGLibType func() types.GType | |||
| 27 | + | ||||
| 28 | + | func FlapFoldPolicyGLibType() types.GType { | |||
| 29 | + | return xFlapFoldPolicyGLibType() | |||
| 30 | + | } | |||
| 31 | + | ||||
| 25 | const ( | 32 | const ( | ||
| 26 | 33 | ||||
| 27 | // Disable folding, the flap cannot reach narrow | 34 | // Disable folding, the flap cannot reach narrow | ||
| @@ -43,6 +50,12 @@ const ( | |||||
| 43 | // New values may be added to this enum over time. | 50 | // New values may be added to this enum over time. | ||
| 44 | type FlapTransitionType int | 51 | type FlapTransitionType int | ||
| 45 | 52 | ||||
| 53 | + | var xFlapTransitionTypeGLibType func() types.GType | |||
| 54 | + | ||||
| 55 | + | func FlapTransitionTypeGLibType() types.GType { | |||
| 56 | + | return xFlapTransitionTypeGLibType() | |||
| 57 | + | } | |||
| 58 | + | ||||
| 46 | const ( | 59 | const ( | ||
| 47 | 60 | ||||
| 48 | // The flap slides over the content, which is | 61 | // The flap slides over the content, which is | ||
| @@ -122,6 +135,12 @@ type Flap struct { | |||||
| 122 | gtk.Widget | 135 | gtk.Widget | ||
| 123 | } | 136 | } | ||
| 124 | 137 | ||||
| 138 | + | var xFlapGLibType func() types.GType | |||
| 139 | + | ||||
| 140 | + | func FlapGLibType() types.GType { | |||
| 141 | + | return xFlapGLibType() | |||
| 142 | + | } | |||
| 143 | + | ||||
| 125 | func FlapNewFromInternalPtr(ptr uintptr) *Flap { | 144 | func FlapNewFromInternalPtr(ptr uintptr) *Flap { | ||
| 126 | cls := &Flap{} | 145 | cls := &Flap{} | ||
| 127 | cls.Ptr = ptr | 146 | cls.Ptr = ptr | ||
| @@ -707,6 +726,12 @@ func init() { | |||||
| 707 | panic(err) | 726 | panic(err) | ||
| 708 | } | 727 | } | ||
| 709 | 728 | ||||
| 729 | + | core.PuregoSafeRegister(&xFlapFoldPolicyGLibType, lib, "adw_flap_fold_policy_get_type") | |||
| 730 | + | ||||
| 731 | + | core.PuregoSafeRegister(&xFlapTransitionTypeGLibType, lib, "adw_flap_transition_type_get_type") | |||
| 732 | + | ||||
| 733 | + | core.PuregoSafeRegister(&xFlapGLibType, lib, "adw_flap_get_type") | |||
| 734 | + | ||||
| 710 | core.PuregoSafeRegister(&xNewFlap, lib, "adw_flap_new") | 735 | core.PuregoSafeRegister(&xNewFlap, lib, "adw_flap_new") | ||
| 711 | 736 | ||||
| 712 | core.PuregoSafeRegister(&xFlapGetContent, lib, "adw_flap_get_content") | 737 | core.PuregoSafeRegister(&xFlapGetContent, lib, "adw_flap_get_content") | ||
M v4/adw/adw-fold-threshold-policy.go +8 -0
| @@ -1,9 +1,17 @@ | |||||
| 1 | // Package adw was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT | 1 | // Package adw was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT | ||
| 2 | package adw | 2 | package adw | ||
| 3 | 3 | ||||
| 4 | + | import "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 5 | + | ||||
| 4 | // Determines when [class@Flap] and [class@Leaflet] will fold. | 6 | // Determines when [class@Flap] and [class@Leaflet] will fold. | ||
| 5 | type FoldThresholdPolicy int | 7 | type FoldThresholdPolicy int | ||
| 6 | 8 | ||||
| 9 | + | var xFoldThresholdPolicyGLibType func() types.GType | |||
| 10 | + | ||||
| 11 | + | func FoldThresholdPolicyGLibType() types.GType { | |||
| 12 | + | return xFoldThresholdPolicyGLibType() | |||
| 13 | + | } | |||
| 14 | + | ||||
| 7 | const ( | 15 | const ( | ||
| 8 | 16 | ||||
| 9 | // Folding is based on the minimum size | 17 | // Folding is based on the minimum size | ||
M v4/adw/adw-header-bar.go +17 -0
| @@ -7,6 +7,7 @@ import ( | |||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 10 | "github.com/jwijenbergh/puregotk/v4/gtk" | 11 | "github.com/jwijenbergh/puregotk/v4/gtk" | ||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| @@ -21,6 +22,12 @@ func (x *HeaderBarClass) GoPointer() uintptr { | |||||
| 21 | // Describes title centering behavior of a [class@HeaderBar] widget. | 22 | // Describes title centering behavior of a [class@HeaderBar] widget. | ||
| 22 | type CenteringPolicy int | 23 | type CenteringPolicy int | ||
| 23 | 24 | ||||
| 25 | + | var xCenteringPolicyGLibType func() types.GType | |||
| 26 | + | ||||
| 27 | + | func CenteringPolicyGLibType() types.GType { | |||
| 28 | + | return xCenteringPolicyGLibType() | |||
| 29 | + | } | |||
| 30 | + | ||||
| 24 | const ( | 31 | const ( | ||
| 25 | 32 | ||||
| 26 | // Keep the title centered when possible | 33 | // Keep the title centered when possible | ||
| @@ -125,6 +132,12 @@ type HeaderBar struct { | |||||
| 125 | gtk.Widget | 132 | gtk.Widget | ||
| 126 | } | 133 | } | ||
| 127 | 134 | ||||
| 135 | + | var xHeaderBarGLibType func() types.GType | |||
| 136 | + | ||||
| 137 | + | func HeaderBarGLibType() types.GType { | |||
| 138 | + | return xHeaderBarGLibType() | |||
| 139 | + | } | |||
| 140 | + | ||||
| 128 | func HeaderBarNewFromInternalPtr(ptr uintptr) *HeaderBar { | 141 | func HeaderBarNewFromInternalPtr(ptr uintptr) *HeaderBar { | ||
| 129 | cls := &HeaderBar{} | 142 | cls := &HeaderBar{} | ||
| 130 | cls.Ptr = ptr | 143 | cls.Ptr = ptr | ||
| @@ -473,6 +486,10 @@ func init() { | |||||
| 473 | panic(err) | 486 | panic(err) | ||
| 474 | } | 487 | } | ||
| 475 | 488 | ||||
| 489 | + | core.PuregoSafeRegister(&xCenteringPolicyGLibType, lib, "adw_centering_policy_get_type") | |||
| 490 | + | ||||
| 491 | + | core.PuregoSafeRegister(&xHeaderBarGLibType, lib, "adw_header_bar_get_type") | |||
| 492 | + | ||||
| 476 | core.PuregoSafeRegister(&xNewHeaderBar, lib, "adw_header_bar_new") | 493 | core.PuregoSafeRegister(&xNewHeaderBar, lib, "adw_header_bar_new") | ||
| 477 | 494 | ||||
| 478 | core.PuregoSafeRegister(&xHeaderBarGetCenteringPolicy, lib, "adw_header_bar_get_centering_policy") | 495 | core.PuregoSafeRegister(&xHeaderBarGetCenteringPolicy, lib, "adw_header_bar_get_centering_policy") | ||
M v4/adw/adw-leaflet.go +25 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/gdk" | 9 | "github.com/jwijenbergh/puregotk/v4/gdk" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | "github.com/jwijenbergh/puregotk/v4/gtk" | 12 | "github.com/jwijenbergh/puregotk/v4/gtk" | ||
| 12 | ) | 13 | ) | ||
| 13 | 14 | ||||
| @@ -32,6 +33,12 @@ func (x *LeafletPageClass) GoPointer() uintptr { | |||||
| 32 | // New values may be added to this enumeration over time. | 33 | // New values may be added to this enumeration over time. | ||
| 33 | type LeafletTransitionType int | 34 | type LeafletTransitionType int | ||
| 34 | 35 | ||||
| 36 | + | var xLeafletTransitionTypeGLibType func() types.GType | |||
| 37 | + | ||||
| 38 | + | func LeafletTransitionTypeGLibType() types.GType { | |||
| 39 | + | return xLeafletTransitionTypeGLibType() | |||
| 40 | + | } | |||
| 41 | + | ||||
| 35 | const ( | 42 | const ( | ||
| 36 | 43 | ||||
| 37 | // Cover the old page or uncover the new page, sliding from or towards the end according to orientation, text direction and children order | 44 | // Cover the old page or uncover the new page, sliding from or towards the end according to orientation, text direction and children order | ||
| @@ -81,6 +88,12 @@ type Leaflet struct { | |||||
| 81 | gtk.Widget | 88 | gtk.Widget | ||
| 82 | } | 89 | } | ||
| 83 | 90 | ||||
| 91 | + | var xLeafletGLibType func() types.GType | |||
| 92 | + | ||||
| 93 | + | func LeafletGLibType() types.GType { | |||
| 94 | + | return xLeafletGLibType() | |||
| 95 | + | } | |||
| 96 | + | ||||
| 84 | func LeafletNewFromInternalPtr(ptr uintptr) *Leaflet { | 97 | func LeafletNewFromInternalPtr(ptr uintptr) *Leaflet { | ||
| 85 | cls := &Leaflet{} | 98 | cls := &Leaflet{} | ||
| 86 | cls.Ptr = ptr | 99 | cls.Ptr = ptr | ||
| @@ -761,6 +774,12 @@ type LeafletPage struct { | |||||
| 761 | gobject.Object | 774 | gobject.Object | ||
| 762 | } | 775 | } | ||
| 763 | 776 | ||||
| 777 | + | var xLeafletPageGLibType func() types.GType | |||
| 778 | + | ||||
| 779 | + | func LeafletPageGLibType() types.GType { | |||
| 780 | + | return xLeafletPageGLibType() | |||
| 781 | + | } | |||
| 782 | + | ||||
| 764 | func LeafletPageNewFromInternalPtr(ptr uintptr) *LeafletPage { | 783 | func LeafletPageNewFromInternalPtr(ptr uintptr) *LeafletPage { | ||
| 765 | cls := &LeafletPage{} | 784 | cls := &LeafletPage{} | ||
| 766 | cls.Ptr = ptr | 785 | cls.Ptr = ptr | ||
| @@ -839,6 +858,10 @@ func init() { | |||||
| 839 | panic(err) | 858 | panic(err) | ||
| 840 | } | 859 | } | ||
| 841 | 860 | ||||
| 861 | + | core.PuregoSafeRegister(&xLeafletTransitionTypeGLibType, lib, "adw_leaflet_transition_type_get_type") | |||
| 862 | + | ||||
| 863 | + | core.PuregoSafeRegister(&xLeafletGLibType, lib, "adw_leaflet_get_type") | |||
| 864 | + | ||||
| 842 | core.PuregoSafeRegister(&xNewLeaflet, lib, "adw_leaflet_new") | 865 | core.PuregoSafeRegister(&xNewLeaflet, lib, "adw_leaflet_new") | ||
| 843 | 866 | ||||
| 844 | core.PuregoSafeRegister(&xLeafletAppend, lib, "adw_leaflet_append") | 867 | core.PuregoSafeRegister(&xLeafletAppend, lib, "adw_leaflet_append") | ||
| @@ -874,6 +897,8 @@ func init() { | |||||
| 874 | core.PuregoSafeRegister(&xLeafletSetVisibleChild, lib, "adw_leaflet_set_visible_child") | 897 | core.PuregoSafeRegister(&xLeafletSetVisibleChild, lib, "adw_leaflet_set_visible_child") | ||
| 875 | core.PuregoSafeRegister(&xLeafletSetVisibleChildName, lib, "adw_leaflet_set_visible_child_name") | 898 | core.PuregoSafeRegister(&xLeafletSetVisibleChildName, lib, "adw_leaflet_set_visible_child_name") | ||
| 876 | 899 | ||||
| 900 | + | core.PuregoSafeRegister(&xLeafletPageGLibType, lib, "adw_leaflet_page_get_type") | |||
| 901 | + | ||||
| 877 | core.PuregoSafeRegister(&xLeafletPageGetChild, lib, "adw_leaflet_page_get_child") | 902 | core.PuregoSafeRegister(&xLeafletPageGetChild, lib, "adw_leaflet_page_get_child") | ||
| 878 | core.PuregoSafeRegister(&xLeafletPageGetName, lib, "adw_leaflet_page_get_name") | 903 | core.PuregoSafeRegister(&xLeafletPageGetName, lib, "adw_leaflet_page_get_name") | ||
| 879 | core.PuregoSafeRegister(&xLeafletPageGetNavigatable, lib, "adw_leaflet_page_get_navigatable") | 904 | core.PuregoSafeRegister(&xLeafletPageGetNavigatable, lib, "adw_leaflet_page_get_navigatable") | ||
M v4/adw/adw-main.go +1 -0
| @@ -40,6 +40,7 @@ func init() { | |||||
| 40 | if err != nil { | 40 | if err != nil { | ||
| 41 | panic(err) | 41 | panic(err) | ||
| 42 | } | 42 | } | ||
| 43 | + | ||||
| 43 | core.PuregoSafeRegister(&xInit, lib, "adw_init") | 44 | core.PuregoSafeRegister(&xInit, lib, "adw_init") | ||
| 44 | core.PuregoSafeRegister(&xIsInitialized, lib, "adw_is_initialized") | 45 | core.PuregoSafeRegister(&xIsInitialized, lib, "adw_is_initialized") | ||
| 45 | 46 | ||||
M v4/adw/adw-message-dialog.go +17 -0
| @@ -10,6 +10,7 @@ import ( | |||||
| 10 | "github.com/jwijenbergh/puregotk/v4/gio" | 10 | "github.com/jwijenbergh/puregotk/v4/gio" | ||
| 11 | "github.com/jwijenbergh/puregotk/v4/glib" | 11 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 12 | "github.com/jwijenbergh/puregotk/v4/gobject" | 12 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 13 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 13 | "github.com/jwijenbergh/puregotk/v4/gsk" | 14 | "github.com/jwijenbergh/puregotk/v4/gsk" | ||
| 14 | "github.com/jwijenbergh/puregotk/v4/gtk" | 15 | "github.com/jwijenbergh/puregotk/v4/gtk" | ||
| 15 | ) | 16 | ) | ||
| @@ -29,6 +30,12 @@ func (x *MessageDialogClass) GoPointer() uintptr { | |||||
| 29 | // See [method@MessageDialog.set_response_appearance]. | 30 | // See [method@MessageDialog.set_response_appearance]. | ||
| 30 | type ResponseAppearance int | 31 | type ResponseAppearance int | ||
| 31 | 32 | ||||
| 33 | + | var xResponseAppearanceGLibType func() types.GType | |||
| 34 | + | ||||
| 35 | + | func ResponseAppearanceGLibType() types.GType { | |||
| 36 | + | return xResponseAppearanceGLibType() | |||
| 37 | + | } | |||
| 38 | + | ||||
| 32 | const ( | 39 | const ( | ||
| 33 | 40 | ||||
| 34 | // the default appearance. | 41 | // the default appearance. | ||
| @@ -186,6 +193,12 @@ type MessageDialog struct { | |||||
| 186 | gtk.Window | 193 | gtk.Window | ||
| 187 | } | 194 | } | ||
| 188 | 195 | ||||
| 196 | + | var xMessageDialogGLibType func() types.GType | |||
| 197 | + | ||||
| 198 | + | func MessageDialogGLibType() types.GType { | |||
| 199 | + | return xMessageDialogGLibType() | |||
| 200 | + | } | |||
| 201 | + | ||||
| 189 | func MessageDialogNewFromInternalPtr(ptr uintptr) *MessageDialog { | 202 | func MessageDialogNewFromInternalPtr(ptr uintptr) *MessageDialog { | ||
| 190 | cls := &MessageDialog{} | 203 | cls := &MessageDialog{} | ||
| 191 | cls.Ptr = ptr | 204 | cls.Ptr = ptr | ||
| @@ -903,6 +916,10 @@ func init() { | |||||
| 903 | panic(err) | 916 | panic(err) | ||
| 904 | } | 917 | } | ||
| 905 | 918 | ||||
| 919 | + | core.PuregoSafeRegister(&xResponseAppearanceGLibType, lib, "adw_response_appearance_get_type") | |||
| 920 | + | ||||
| 921 | + | core.PuregoSafeRegister(&xMessageDialogGLibType, lib, "adw_message_dialog_get_type") | |||
| 922 | + | ||||
| 906 | core.PuregoSafeRegister(&xNewMessageDialog, lib, "adw_message_dialog_new") | 923 | core.PuregoSafeRegister(&xNewMessageDialog, lib, "adw_message_dialog_new") | ||
| 907 | 924 | ||||
| 908 | core.PuregoSafeRegister(&xMessageDialogAddResponse, lib, "adw_message_dialog_add_response") | 925 | core.PuregoSafeRegister(&xMessageDialogAddResponse, lib, "adw_message_dialog_add_response") | ||
M v4/adw/adw-navigation-direction.go +8 -0
| @@ -1,9 +1,17 @@ | |||||
| 1 | // Package adw was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT | 1 | // Package adw was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT | ||
| 2 | package adw | 2 | package adw | ||
| 3 | 3 | ||||
| 4 | + | import "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 5 | + | ||||
| 4 | // Describes the direction of a swipe navigation gesture. | 6 | // Describes the direction of a swipe navigation gesture. | ||
| 5 | type NavigationDirection int | 7 | type NavigationDirection int | ||
| 6 | 8 | ||||
| 9 | + | var xNavigationDirectionGLibType func() types.GType | |||
| 10 | + | ||||
| 11 | + | func NavigationDirectionGLibType() types.GType { | |||
| 12 | + | return xNavigationDirectionGLibType() | |||
| 13 | + | } | |||
| 14 | + | ||||
| 7 | const ( | 15 | const ( | ||
| 8 | 16 | ||||
| 9 | // Corresponds to start or top, depending on orientation and text direction | 17 | // Corresponds to start or top, depending on orientation and text direction | ||
M v4/adw/adw-password-entry-row.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | "github.com/jwijenbergh/puregotk/v4/gtk" | 12 | "github.com/jwijenbergh/puregotk/v4/gtk" | ||
| 12 | ) | 13 | ) | ||
| 13 | 14 | ||||
| @@ -44,6 +45,12 @@ type PasswordEntryRow struct { | |||||
| 44 | EntryRow | 45 | EntryRow | ||
| 45 | } | 46 | } | ||
| 46 | 47 | ||||
| 48 | + | var xPasswordEntryRowGLibType func() types.GType | |||
| 49 | + | ||||
| 50 | + | func PasswordEntryRowGLibType() types.GType { | |||
| 51 | + | return xPasswordEntryRowGLibType() | |||
| 52 | + | } | |||
| 53 | + | ||||
| 47 | func PasswordEntryRowNewFromInternalPtr(ptr uintptr) *PasswordEntryRow { | 54 | func PasswordEntryRowNewFromInternalPtr(ptr uintptr) *PasswordEntryRow { | ||
| 48 | cls := &PasswordEntryRow{} | 55 | cls := &PasswordEntryRow{} | ||
| 49 | cls.Ptr = ptr | 56 | cls.Ptr = ptr | ||
| @@ -549,6 +556,8 @@ func init() { | |||||
| 549 | panic(err) | 556 | panic(err) | ||
| 550 | } | 557 | } | ||
| 551 | 558 | ||||
| 559 | + | core.PuregoSafeRegister(&xPasswordEntryRowGLibType, lib, "adw_password_entry_row_get_type") | |||
| 560 | + | ||||
| 552 | core.PuregoSafeRegister(&xNewPasswordEntryRow, lib, "adw_password_entry_row_new") | 561 | core.PuregoSafeRegister(&xNewPasswordEntryRow, lib, "adw_password_entry_row_new") | ||
| 553 | 562 | ||||
| 554 | } | 563 | } | ||
M v4/adw/adw-preferences-group.go +9 -0
| @@ -7,6 +7,7 @@ import ( | |||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 10 | "github.com/jwijenbergh/puregotk/v4/gtk" | 11 | "github.com/jwijenbergh/puregotk/v4/gtk" | ||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| @@ -57,6 +58,12 @@ type PreferencesGroup struct { | |||||
| 57 | gtk.Widget | 58 | gtk.Widget | ||
| 58 | } | 59 | } | ||
| 59 | 60 | ||||
| 61 | + | var xPreferencesGroupGLibType func() types.GType | |||
| 62 | + | ||||
| 63 | + | func PreferencesGroupGLibType() types.GType { | |||
| 64 | + | return xPreferencesGroupGLibType() | |||
| 65 | + | } | |||
| 66 | + | ||||
| 60 | func PreferencesGroupNewFromInternalPtr(ptr uintptr) *PreferencesGroup { | 67 | func PreferencesGroupNewFromInternalPtr(ptr uintptr) *PreferencesGroup { | ||
| 61 | cls := &PreferencesGroup{} | 68 | cls := &PreferencesGroup{} | ||
| 62 | cls.Ptr = ptr | 69 | cls.Ptr = ptr | ||
| @@ -321,6 +328,8 @@ func init() { | |||||
| 321 | panic(err) | 328 | panic(err) | ||
| 322 | } | 329 | } | ||
| 323 | 330 | ||||
| 331 | + | core.PuregoSafeRegister(&xPreferencesGroupGLibType, lib, "adw_preferences_group_get_type") | |||
| 332 | + | ||||
| 324 | core.PuregoSafeRegister(&xNewPreferencesGroup, lib, "adw_preferences_group_new") | 333 | core.PuregoSafeRegister(&xNewPreferencesGroup, lib, "adw_preferences_group_new") | ||
| 325 | 334 | ||||
| 326 | core.PuregoSafeRegister(&xPreferencesGroupAdd, lib, "adw_preferences_group_add") | 335 | core.PuregoSafeRegister(&xPreferencesGroupAdd, lib, "adw_preferences_group_add") | ||
M v4/adw/adw-preferences-page.go +9 -0
| @@ -7,6 +7,7 @@ import ( | |||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 10 | "github.com/jwijenbergh/puregotk/v4/gtk" | 11 | "github.com/jwijenbergh/puregotk/v4/gtk" | ||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| @@ -43,6 +44,12 @@ type PreferencesPage struct { | |||||
| 43 | gtk.Widget | 44 | gtk.Widget | ||
| 44 | } | 45 | } | ||
| 45 | 46 | ||||
| 47 | + | var xPreferencesPageGLibType func() types.GType | |||
| 48 | + | ||||
| 49 | + | func PreferencesPageGLibType() types.GType { | |||
| 50 | + | return xPreferencesPageGLibType() | |||
| 51 | + | } | |||
| 52 | + | ||||
| 46 | func PreferencesPageNewFromInternalPtr(ptr uintptr) *PreferencesPage { | 53 | func PreferencesPageNewFromInternalPtr(ptr uintptr) *PreferencesPage { | ||
| 47 | cls := &PreferencesPage{} | 54 | cls := &PreferencesPage{} | ||
| 48 | cls.Ptr = ptr | 55 | cls.Ptr = ptr | ||
| @@ -322,6 +329,8 @@ func init() { | |||||
| 322 | panic(err) | 329 | panic(err) | ||
| 323 | } | 330 | } | ||
| 324 | 331 | ||||
| 332 | + | core.PuregoSafeRegister(&xPreferencesPageGLibType, lib, "adw_preferences_page_get_type") | |||
| 333 | + | ||||
| 325 | core.PuregoSafeRegister(&xNewPreferencesPage, lib, "adw_preferences_page_new") | 334 | core.PuregoSafeRegister(&xNewPreferencesPage, lib, "adw_preferences_page_new") | ||
| 326 | 335 | ||||
| 327 | core.PuregoSafeRegister(&xPreferencesPageAdd, lib, "adw_preferences_page_add") | 336 | core.PuregoSafeRegister(&xPreferencesPageAdd, lib, "adw_preferences_page_add") | ||
M v4/adw/adw-preferences-row.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | "github.com/jwijenbergh/puregotk/v4/gtk" | 12 | "github.com/jwijenbergh/puregotk/v4/gtk" | ||
| 12 | ) | 13 | ) | ||
| 13 | 14 | ||||
| @@ -34,6 +35,12 @@ type PreferencesRow struct { | |||||
| 34 | gtk.ListBoxRow | 35 | gtk.ListBoxRow | ||
| 35 | } | 36 | } | ||
| 36 | 37 | ||||
| 38 | + | var xPreferencesRowGLibType func() types.GType | |||
| 39 | + | ||||
| 40 | + | func PreferencesRowGLibType() types.GType { | |||
| 41 | + | return xPreferencesRowGLibType() | |||
| 42 | + | } | |||
| 43 | + | ||||
| 37 | func PreferencesRowNewFromInternalPtr(ptr uintptr) *PreferencesRow { | 44 | func PreferencesRowNewFromInternalPtr(ptr uintptr) *PreferencesRow { | ||
| 38 | cls := &PreferencesRow{} | 45 | cls := &PreferencesRow{} | ||
| 39 | cls.Ptr = ptr | 46 | cls.Ptr = ptr | ||
| @@ -378,6 +385,8 @@ func init() { | |||||
| 378 | panic(err) | 385 | panic(err) | ||
| 379 | } | 386 | } | ||
| 380 | 387 | ||||
| 388 | + | core.PuregoSafeRegister(&xPreferencesRowGLibType, lib, "adw_preferences_row_get_type") | |||
| 389 | + | ||||
| 381 | core.PuregoSafeRegister(&xNewPreferencesRow, lib, "adw_preferences_row_new") | 390 | core.PuregoSafeRegister(&xNewPreferencesRow, lib, "adw_preferences_row_new") | ||
| 382 | 391 | ||||
| 383 | core.PuregoSafeRegister(&xPreferencesRowGetTitle, lib, "adw_preferences_row_get_title") | 392 | core.PuregoSafeRegister(&xPreferencesRowGetTitle, lib, "adw_preferences_row_get_title") | ||
M v4/adw/adw-preferences-window.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/gdk" | 9 | "github.com/jwijenbergh/puregotk/v4/gdk" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | "github.com/jwijenbergh/puregotk/v4/gsk" | 12 | "github.com/jwijenbergh/puregotk/v4/gsk" | ||
| 12 | "github.com/jwijenbergh/puregotk/v4/gtk" | 13 | "github.com/jwijenbergh/puregotk/v4/gtk" | ||
| 13 | ) | 14 | ) | ||
| @@ -42,6 +43,12 @@ type PreferencesWindow struct { | |||||
| 42 | Window | 43 | Window | ||
| 43 | } | 44 | } | ||
| 44 | 45 | ||||
| 46 | + | var xPreferencesWindowGLibType func() types.GType | |||
| 47 | + | ||||
| 48 | + | func PreferencesWindowGLibType() types.GType { | |||
| 49 | + | return xPreferencesWindowGLibType() | |||
| 50 | + | } | |||
| 51 | + | ||||
| 45 | func PreferencesWindowNewFromInternalPtr(ptr uintptr) *PreferencesWindow { | 52 | func PreferencesWindowNewFromInternalPtr(ptr uintptr) *PreferencesWindow { | ||
| 46 | cls := &PreferencesWindow{} | 53 | cls := &PreferencesWindow{} | ||
| 47 | cls.Ptr = ptr | 54 | cls.Ptr = ptr | ||
| @@ -474,6 +481,8 @@ func init() { | |||||
| 474 | panic(err) | 481 | panic(err) | ||
| 475 | } | 482 | } | ||
| 476 | 483 | ||||
| 484 | + | core.PuregoSafeRegister(&xPreferencesWindowGLibType, lib, "adw_preferences_window_get_type") | |||
| 485 | + | ||||
| 477 | core.PuregoSafeRegister(&xNewPreferencesWindow, lib, "adw_preferences_window_new") | 486 | core.PuregoSafeRegister(&xNewPreferencesWindow, lib, "adw_preferences_window_new") | ||
| 478 | 487 | ||||
| 479 | core.PuregoSafeRegister(&xPreferencesWindowAdd, lib, "adw_preferences_window_add") | 488 | core.PuregoSafeRegister(&xPreferencesWindowAdd, lib, "adw_preferences_window_add") | ||
M v4/adw/adw-split-button.go +9 -0
| @@ -9,6 +9,7 @@ import ( | |||||
| 9 | "github.com/jwijenbergh/puregotk/v4/gio" | 9 | "github.com/jwijenbergh/puregotk/v4/gio" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/glib" | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 12 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 12 | "github.com/jwijenbergh/puregotk/v4/gtk" | 13 | "github.com/jwijenbergh/puregotk/v4/gtk" | ||
| 13 | ) | 14 | ) | ||
| 14 | 15 | ||||
| @@ -64,6 +65,12 @@ type SplitButton struct { | |||||
| 64 | gtk.Widget | 65 | gtk.Widget | ||
| 65 | } | 66 | } | ||
| 66 | 67 | ||||
| 68 | + | var xSplitButtonGLibType func() types.GType | |||
| 69 | + | ||||
| 70 | + | func SplitButtonGLibType() types.GType { | |||
| 71 | + | return xSplitButtonGLibType() | |||
| 72 | + | } | |||
| 73 | + | ||||
| 67 | func SplitButtonNewFromInternalPtr(ptr uintptr) *SplitButton { | 74 | func SplitButtonNewFromInternalPtr(ptr uintptr) *SplitButton { | ||
| 68 | cls := &SplitButton{} | 75 | cls := &SplitButton{} | ||
| 69 | cls.Ptr = ptr | 76 | cls.Ptr = ptr | ||
| @@ -590,6 +597,8 @@ func init() { | |||||
| 590 | panic(err) | 597 | panic(err) | ||
| 591 | } | 598 | } | ||
| 592 | 599 | ||||
| 600 | + | core.PuregoSafeRegister(&xSplitButtonGLibType, lib, "adw_split_button_get_type") | |||
| 601 | + | ||||
| 593 | core.PuregoSafeRegister(&xNewSplitButton, lib, "adw_split_button_new") | 602 | core.PuregoSafeRegister(&xNewSplitButton, lib, "adw_split_button_new") | ||
| 594 | 603 | ||||
| 595 | core.PuregoSafeRegister(&xSplitButtonGetChild, lib, "adw_split_button_get_child") | 604 | core.PuregoSafeRegister(&xSplitButtonGetChild, lib, "adw_split_button_get_child") | ||
M v4/adw/adw-spring-animation.go +9 -0
| @@ -7,6 +7,7 @@ import ( | |||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 10 | "github.com/jwijenbergh/puregotk/v4/gtk" | 11 | "github.com/jwijenbergh/puregotk/v4/gtk" | ||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| @@ -52,6 +53,12 @@ type SpringAnimation struct { | |||||
| 52 | Animation | 53 | Animation | ||
| 53 | } | 54 | } | ||
| 54 | 55 | ||||
| 56 | + | var xSpringAnimationGLibType func() types.GType | |||
| 57 | + | ||||
| 58 | + | func SpringAnimationGLibType() types.GType { | |||
| 59 | + | return xSpringAnimationGLibType() | |||
| 60 | + | } | |||
| 61 | + | ||||
| 55 | func SpringAnimationNewFromInternalPtr(ptr uintptr) *SpringAnimation { | 62 | func SpringAnimationNewFromInternalPtr(ptr uintptr) *SpringAnimation { | ||
| 56 | cls := &SpringAnimation{} | 63 | cls := &SpringAnimation{} | ||
| 57 | cls.Ptr = ptr | 64 | cls.Ptr = ptr | ||
| @@ -273,6 +280,8 @@ func init() { | |||||
| 273 | panic(err) | 280 | panic(err) | ||
| 274 | } | 281 | } | ||
| 275 | 282 | ||||
| 283 | + | core.PuregoSafeRegister(&xSpringAnimationGLibType, lib, "adw_spring_animation_get_type") | |||
| 284 | + | ||||
| 276 | core.PuregoSafeRegister(&xNewSpringAnimation, lib, "adw_spring_animation_new") | 285 | core.PuregoSafeRegister(&xNewSpringAnimation, lib, "adw_spring_animation_new") | ||
| 277 | 286 | ||||
| 278 | core.PuregoSafeRegister(&xSpringAnimationCalculateValue, lib, "adw_spring_animation_calculate_value") | 287 | core.PuregoSafeRegister(&xSpringAnimationCalculateValue, lib, "adw_spring_animation_calculate_value") | ||
M v4/adw/adw-spring-params.go +9 -0
| @@ -6,6 +6,7 @@ import ( | |||||
| 6 | 6 | ||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 9 | ) | 10 | ) | ||
| 10 | 11 | ||||
| 11 | // Physical parameters of a spring for [class@SpringAnimation]. | 12 | // Physical parameters of a spring for [class@SpringAnimation]. | ||
| @@ -41,6 +42,12 @@ import ( | |||||
| 41 | type SpringParams struct { | 42 | type SpringParams struct { | ||
| 42 | } | 43 | } | ||
| 43 | 44 | ||||
| 45 | + | var xSpringParamsGLibType func() types.GType | |||
| 46 | + | ||||
| 47 | + | func SpringParamsGLibType() types.GType { | |||
| 48 | + | return xSpringParamsGLibType() | |||
| 49 | + | } | |||
| 50 | + | ||||
| 44 | func (x *SpringParams) GoPointer() uintptr { | 51 | func (x *SpringParams) GoPointer() uintptr { | ||
| 45 | return uintptr(unsafe.Pointer(x)) | 52 | return uintptr(unsafe.Pointer(x)) | ||
| 46 | } | 53 | } | ||
| @@ -142,6 +149,8 @@ func init() { | |||||
| 142 | panic(err) | 149 | panic(err) | ||
| 143 | } | 150 | } | ||
| 144 | 151 | ||||
| 152 | + | core.PuregoSafeRegister(&xSpringParamsGLibType, lib, "adw_spring_params_get_type") | |||
| 153 | + | ||||
| 145 | core.PuregoSafeRegister(&xNewSpringParams, lib, "adw_spring_params_new") | 154 | core.PuregoSafeRegister(&xNewSpringParams, lib, "adw_spring_params_new") | ||
| 146 | core.PuregoSafeRegister(&xNewSpringParamsFull, lib, "adw_spring_params_new_full") | 155 | core.PuregoSafeRegister(&xNewSpringParamsFull, lib, "adw_spring_params_new_full") | ||
| 147 | 156 | ||||
M v4/adw/adw-squeezer.go +25 -0
| @@ -7,6 +7,7 @@ import ( | |||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 10 | "github.com/jwijenbergh/puregotk/v4/gtk" | 11 | "github.com/jwijenbergh/puregotk/v4/gtk" | ||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| @@ -29,6 +30,12 @@ func (x *SqueezerPageClass) GoPointer() uintptr { | |||||
| 29 | // Describes the possible transitions in a [class@Squeezer] widget. | 30 | // Describes the possible transitions in a [class@Squeezer] widget. | ||
| 30 | type SqueezerTransitionType int | 31 | type SqueezerTransitionType int | ||
| 31 | 32 | ||||
| 33 | + | var xSqueezerTransitionTypeGLibType func() types.GType | |||
| 34 | + | ||||
| 35 | + | func SqueezerTransitionTypeGLibType() types.GType { | |||
| 36 | + | return xSqueezerTransitionTypeGLibType() | |||
| 37 | + | } | |||
| 38 | + | ||||
| 32 | const ( | 39 | const ( | ||
| 33 | 40 | ||||
| 34 | // No transition | 41 | // No transition | ||
| @@ -67,6 +74,12 @@ type Squeezer struct { | |||||
| 67 | gtk.Widget | 74 | gtk.Widget | ||
| 68 | } | 75 | } | ||
| 69 | 76 | ||||
| 77 | + | var xSqueezerGLibType func() types.GType | |||
| 78 | + | ||||
| 79 | + | func SqueezerGLibType() types.GType { | |||
| 80 | + | return xSqueezerGLibType() | |||
| 81 | + | } | |||
| 82 | + | ||||
| 70 | func SqueezerNewFromInternalPtr(ptr uintptr) *Squeezer { | 83 | func SqueezerNewFromInternalPtr(ptr uintptr) *Squeezer { | ||
| 71 | cls := &Squeezer{} | 84 | cls := &Squeezer{} | ||
| 72 | cls.Ptr = ptr | 85 | cls.Ptr = ptr | ||
| @@ -530,6 +543,12 @@ type SqueezerPage struct { | |||||
| 530 | gobject.Object | 543 | gobject.Object | ||
| 531 | } | 544 | } | ||
| 532 | 545 | ||||
| 546 | + | var xSqueezerPageGLibType func() types.GType | |||
| 547 | + | ||||
| 548 | + | func SqueezerPageGLibType() types.GType { | |||
| 549 | + | return xSqueezerPageGLibType() | |||
| 550 | + | } | |||
| 551 | + | ||||
| 533 | func SqueezerPageNewFromInternalPtr(ptr uintptr) *SqueezerPage { | 552 | func SqueezerPageNewFromInternalPtr(ptr uintptr) *SqueezerPage { | ||
| 534 | cls := &SqueezerPage{} | 553 | cls := &SqueezerPage{} | ||
| 535 | cls.Ptr = ptr | 554 | cls.Ptr = ptr | ||
| @@ -594,6 +613,10 @@ func init() { | |||||
| 594 | panic(err) | 613 | panic(err) | ||
| 595 | } | 614 | } | ||
| 596 | 615 | ||||
| 616 | + | core.PuregoSafeRegister(&xSqueezerTransitionTypeGLibType, lib, "adw_squeezer_transition_type_get_type") | |||
| 617 | + | ||||
| 618 | + | core.PuregoSafeRegister(&xSqueezerGLibType, lib, "adw_squeezer_get_type") | |||
| 619 | + | ||||
| 597 | core.PuregoSafeRegister(&xNewSqueezer, lib, "adw_squeezer_new") | 620 | core.PuregoSafeRegister(&xNewSqueezer, lib, "adw_squeezer_new") | ||
| 598 | 621 | ||||
| 599 | core.PuregoSafeRegister(&xSqueezerAdd, lib, "adw_squeezer_add") | 622 | core.PuregoSafeRegister(&xSqueezerAdd, lib, "adw_squeezer_add") | ||
| @@ -619,6 +642,8 @@ func init() { | |||||
| 619 | core.PuregoSafeRegister(&xSqueezerSetXalign, lib, "adw_squeezer_set_xalign") | 642 | core.PuregoSafeRegister(&xSqueezerSetXalign, lib, "adw_squeezer_set_xalign") | ||
| 620 | core.PuregoSafeRegister(&xSqueezerSetYalign, lib, "adw_squeezer_set_yalign") | 643 | core.PuregoSafeRegister(&xSqueezerSetYalign, lib, "adw_squeezer_set_yalign") | ||
| 621 | 644 | ||||
| 645 | + | core.PuregoSafeRegister(&xSqueezerPageGLibType, lib, "adw_squeezer_page_get_type") | |||
| 646 | + | ||||
| 622 | core.PuregoSafeRegister(&xSqueezerPageGetChild, lib, "adw_squeezer_page_get_child") | 647 | core.PuregoSafeRegister(&xSqueezerPageGetChild, lib, "adw_squeezer_page_get_child") | ||
| 623 | core.PuregoSafeRegister(&xSqueezerPageGetEnabled, lib, "adw_squeezer_page_get_enabled") | 648 | core.PuregoSafeRegister(&xSqueezerPageGetEnabled, lib, "adw_squeezer_page_get_enabled") | ||
| 624 | core.PuregoSafeRegister(&xSqueezerPageSetEnabled, lib, "adw_squeezer_page_set_enabled") | 649 | core.PuregoSafeRegister(&xSqueezerPageSetEnabled, lib, "adw_squeezer_page_set_enabled") | ||
M v4/adw/adw-status-page.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/gdk" | 9 | "github.com/jwijenbergh/puregotk/v4/gdk" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | "github.com/jwijenbergh/puregotk/v4/gtk" | 12 | "github.com/jwijenbergh/puregotk/v4/gtk" | ||
| 12 | ) | 13 | ) | ||
| 13 | 14 | ||||
| @@ -42,6 +43,12 @@ type StatusPage struct { | |||||
| 42 | gtk.Widget | 43 | gtk.Widget | ||
| 43 | } | 44 | } | ||
| 44 | 45 | ||||
| 46 | + | var xStatusPageGLibType func() types.GType | |||
| 47 | + | ||||
| 48 | + | func StatusPageGLibType() types.GType { | |||
| 49 | + | return xStatusPageGLibType() | |||
| 50 | + | } | |||
| 51 | + | ||||
| 45 | func StatusPageNewFromInternalPtr(ptr uintptr) *StatusPage { | 52 | func StatusPageNewFromInternalPtr(ptr uintptr) *StatusPage { | ||
| 46 | cls := &StatusPage{} | 53 | cls := &StatusPage{} | ||
| 47 | cls.Ptr = ptr | 54 | cls.Ptr = ptr | ||
| @@ -336,6 +343,8 @@ func init() { | |||||
| 336 | panic(err) | 343 | panic(err) | ||
| 337 | } | 344 | } | ||
| 338 | 345 | ||||
| 346 | + | core.PuregoSafeRegister(&xStatusPageGLibType, lib, "adw_status_page_get_type") | |||
| 347 | + | ||||
| 339 | core.PuregoSafeRegister(&xNewStatusPage, lib, "adw_status_page_new") | 348 | core.PuregoSafeRegister(&xNewStatusPage, lib, "adw_status_page_new") | ||
| 340 | 349 | ||||
| 341 | core.PuregoSafeRegister(&xStatusPageGetChild, lib, "adw_status_page_get_child") | 350 | core.PuregoSafeRegister(&xStatusPageGetChild, lib, "adw_status_page_get_child") | ||
M v4/adw/adw-style-manager.go +17 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/gdk" | 9 | "github.com/jwijenbergh/puregotk/v4/gdk" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | type StyleManagerClass struct { | 14 | type StyleManagerClass struct { | ||
| @@ -21,6 +22,12 @@ func (x *StyleManagerClass) GoPointer() uintptr { | |||||
| 21 | // Application color schemes for [property@StyleManager:color-scheme]. | 22 | // Application color schemes for [property@StyleManager:color-scheme]. | ||
| 22 | type ColorScheme int | 23 | type ColorScheme int | ||
| 23 | 24 | ||||
| 25 | + | var xColorSchemeGLibType func() types.GType | |||
| 26 | + | ||||
| 27 | + | func ColorSchemeGLibType() types.GType { | |||
| 28 | + | return xColorSchemeGLibType() | |||
| 29 | + | } | |||
| 30 | + | ||||
| 24 | const ( | 31 | const ( | ||
| 25 | 32 | ||||
| 26 | // Inherit the parent color-scheme. When set on the | 33 | // Inherit the parent color-scheme. When set on the | ||
| @@ -51,6 +58,12 @@ type StyleManager struct { | |||||
| 51 | gobject.Object | 58 | gobject.Object | ||
| 52 | } | 59 | } | ||
| 53 | 60 | ||||
| 61 | + | var xStyleManagerGLibType func() types.GType | |||
| 62 | + | ||||
| 63 | + | func StyleManagerGLibType() types.GType { | |||
| 64 | + | return xStyleManagerGLibType() | |||
| 65 | + | } | |||
| 66 | + | ||||
| 54 | func StyleManagerNewFromInternalPtr(ptr uintptr) *StyleManager { | 67 | func StyleManagerNewFromInternalPtr(ptr uintptr) *StyleManager { | ||
| 55 | cls := &StyleManager{} | 68 | cls := &StyleManager{} | ||
| 56 | cls.Ptr = ptr | 69 | cls.Ptr = ptr | ||
| @@ -219,6 +232,10 @@ func init() { | |||||
| 219 | panic(err) | 232 | panic(err) | ||
| 220 | } | 233 | } | ||
| 221 | 234 | ||||
| 235 | + | core.PuregoSafeRegister(&xColorSchemeGLibType, lib, "adw_color_scheme_get_type") | |||
| 236 | + | ||||
| 237 | + | core.PuregoSafeRegister(&xStyleManagerGLibType, lib, "adw_style_manager_get_type") | |||
| 238 | + | ||||
| 222 | core.PuregoSafeRegister(&xStyleManagerGetColorScheme, lib, "adw_style_manager_get_color_scheme") | 239 | core.PuregoSafeRegister(&xStyleManagerGetColorScheme, lib, "adw_style_manager_get_color_scheme") | ||
| 223 | core.PuregoSafeRegister(&xStyleManagerGetDark, lib, "adw_style_manager_get_dark") | 240 | core.PuregoSafeRegister(&xStyleManagerGetDark, lib, "adw_style_manager_get_dark") | ||
| 224 | core.PuregoSafeRegister(&xStyleManagerGetDisplay, lib, "adw_style_manager_get_display") | 241 | core.PuregoSafeRegister(&xStyleManagerGetDisplay, lib, "adw_style_manager_get_display") | ||
M v4/adw/adw-swipe-tracker.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | "github.com/jwijenbergh/puregotk/v4/gtk" | 12 | "github.com/jwijenbergh/puregotk/v4/gtk" | ||
| 12 | ) | 13 | ) | ||
| 13 | 14 | ||||
| @@ -33,6 +34,12 @@ type SwipeTracker struct { | |||||
| 33 | gobject.Object | 34 | gobject.Object | ||
| 34 | } | 35 | } | ||
| 35 | 36 | ||||
| 37 | + | var xSwipeTrackerGLibType func() types.GType | |||
| 38 | + | ||||
| 39 | + | func SwipeTrackerGLibType() types.GType { | |||
| 40 | + | return xSwipeTrackerGLibType() | |||
| 41 | + | } | |||
| 42 | + | ||||
| 36 | func SwipeTrackerNewFromInternalPtr(ptr uintptr) *SwipeTracker { | 43 | func SwipeTrackerNewFromInternalPtr(ptr uintptr) *SwipeTracker { | ||
| 37 | cls := &SwipeTracker{} | 44 | cls := &SwipeTracker{} | ||
| 38 | cls.Ptr = ptr | 45 | cls.Ptr = ptr | ||
| @@ -282,6 +289,8 @@ func init() { | |||||
| 282 | panic(err) | 289 | panic(err) | ||
| 283 | } | 290 | } | ||
| 284 | 291 | ||||
| 292 | + | core.PuregoSafeRegister(&xSwipeTrackerGLibType, lib, "adw_swipe_tracker_get_type") | |||
| 293 | + | ||||
| 285 | core.PuregoSafeRegister(&xNewSwipeTracker, lib, "adw_swipe_tracker_new") | 294 | core.PuregoSafeRegister(&xNewSwipeTracker, lib, "adw_swipe_tracker_new") | ||
| 286 | 295 | ||||
| 287 | core.PuregoSafeRegister(&xSwipeTrackerGetAllowLongSwipes, lib, "adw_swipe_tracker_get_allow_long_swipes") | 296 | core.PuregoSafeRegister(&xSwipeTrackerGetAllowLongSwipes, lib, "adw_swipe_tracker_get_allow_long_swipes") | ||
M v4/adw/adw-swipeable.go +10 -0
| @@ -7,6 +7,7 @@ import ( | |||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/gdk" | 9 | "github.com/jwijenbergh/puregotk/v4/gdk" | ||
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 10 | ) | 11 | ) | ||
| 11 | 12 | ||||
| 12 | // An interface for swipeable widgets. | 13 | // An interface for swipeable widgets. | ||
| @@ -34,6 +35,13 @@ type Swipeable interface { | |||||
| 34 | GetSnapPoints(NSnapPointsVar int) []float64 | 35 | GetSnapPoints(NSnapPointsVar int) []float64 | ||
| 35 | GetSwipeArea(NavigationDirectionVar NavigationDirection, IsDragVar bool, RectVar *gdk.Rectangle) | 36 | GetSwipeArea(NavigationDirectionVar NavigationDirection, IsDragVar bool, RectVar *gdk.Rectangle) | ||
| 36 | } | 37 | } | ||
| 38 | + | ||||
| 39 | + | var xSwipeableGLibType func() types.GType | |||
| 40 | + | ||||
| 41 | + | func SwipeableGLibType() types.GType { | |||
| 42 | + | return xSwipeableGLibType() | |||
| 43 | + | } | |||
| 44 | + | ||||
| 37 | type SwipeableBase struct { | 45 | type SwipeableBase struct { | ||
| 38 | Ptr uintptr | 46 | Ptr uintptr | ||
| 39 | } | 47 | } | ||
| @@ -106,6 +114,8 @@ func init() { | |||||
| 106 | panic(err) | 114 | panic(err) | ||
| 107 | } | 115 | } | ||
| 108 | 116 | ||||
| 117 | + | core.PuregoSafeRegister(&xSwipeableGLibType, lib, "adw_swipeable_get_type") | |||
| 118 | + | ||||
| 109 | core.PuregoSafeRegister(&XAdwSwipeableGetCancelProgress, lib, "adw_swipeable_get_cancel_progress") | 119 | core.PuregoSafeRegister(&XAdwSwipeableGetCancelProgress, lib, "adw_swipeable_get_cancel_progress") | ||
| 110 | core.PuregoSafeRegister(&XAdwSwipeableGetDistance, lib, "adw_swipeable_get_distance") | 120 | core.PuregoSafeRegister(&XAdwSwipeableGetDistance, lib, "adw_swipeable_get_distance") | ||
| 111 | core.PuregoSafeRegister(&XAdwSwipeableGetProgress, lib, "adw_swipeable_get_progress") | 121 | core.PuregoSafeRegister(&XAdwSwipeableGetProgress, lib, "adw_swipeable_get_progress") | ||
M v4/adw/adw-tab-bar.go +8 -0
| @@ -47,6 +47,12 @@ type TabBar struct { | |||||
| 47 | gtk.Widget | 47 | gtk.Widget | ||
| 48 | } | 48 | } | ||
| 49 | 49 | ||||
| 50 | + | var xTabBarGLibType func() types.GType | |||
| 51 | + | ||||
| 52 | + | func TabBarGLibType() types.GType { | |||
| 53 | + | return xTabBarGLibType() | |||
| 54 | + | } | |||
| 55 | + | ||||
| 50 | func TabBarNewFromInternalPtr(ptr uintptr) *TabBar { | 56 | func TabBarNewFromInternalPtr(ptr uintptr) *TabBar { | ||
| 51 | cls := &TabBar{} | 57 | cls := &TabBar{} | ||
| 52 | cls.Ptr = ptr | 58 | cls.Ptr = ptr | ||
| @@ -484,6 +490,8 @@ func init() { | |||||
| 484 | panic(err) | 490 | panic(err) | ||
| 485 | } | 491 | } | ||
| 486 | 492 | ||||
| 493 | + | core.PuregoSafeRegister(&xTabBarGLibType, lib, "adw_tab_bar_get_type") | |||
| 494 | + | ||||
| 487 | core.PuregoSafeRegister(&xNewTabBar, lib, "adw_tab_bar_new") | 495 | core.PuregoSafeRegister(&xNewTabBar, lib, "adw_tab_bar_new") | ||
| 488 | 496 | ||||
| 489 | core.PuregoSafeRegister(&xTabBarGetAutohide, lib, "adw_tab_bar_get_autohide") | 497 | core.PuregoSafeRegister(&xTabBarGetAutohide, lib, "adw_tab_bar_get_autohide") | ||
M v4/adw/adw-tab-button.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | "github.com/jwijenbergh/puregotk/v4/gtk" | 12 | "github.com/jwijenbergh/puregotk/v4/gtk" | ||
| 12 | ) | 13 | ) | ||
| 13 | 14 | ||||
| @@ -55,6 +56,12 @@ type TabButton struct { | |||||
| 55 | gtk.Widget | 56 | gtk.Widget | ||
| 56 | } | 57 | } | ||
| 57 | 58 | ||||
| 59 | + | var xTabButtonGLibType func() types.GType | |||
| 60 | + | ||||
| 61 | + | func TabButtonGLibType() types.GType { | |||
| 62 | + | return xTabButtonGLibType() | |||
| 63 | + | } | |||
| 64 | + | ||||
| 58 | func TabButtonNewFromInternalPtr(ptr uintptr) *TabButton { | 65 | func TabButtonNewFromInternalPtr(ptr uintptr) *TabButton { | ||
| 59 | cls := &TabButton{} | 66 | cls := &TabButton{} | ||
| 60 | cls.Ptr = ptr | 67 | cls.Ptr = ptr | ||
| @@ -387,6 +394,8 @@ func init() { | |||||
| 387 | panic(err) | 394 | panic(err) | ||
| 388 | } | 395 | } | ||
| 389 | 396 | ||||
| 397 | + | core.PuregoSafeRegister(&xTabButtonGLibType, lib, "adw_tab_button_get_type") | |||
| 398 | + | ||||
| 390 | core.PuregoSafeRegister(&xNewTabButton, lib, "adw_tab_button_new") | 399 | core.PuregoSafeRegister(&xNewTabButton, lib, "adw_tab_button_new") | ||
| 391 | 400 | ||||
| 392 | core.PuregoSafeRegister(&xTabButtonGetView, lib, "adw_tab_button_get_view") | 401 | core.PuregoSafeRegister(&xTabButtonGetView, lib, "adw_tab_button_get_view") | ||
M v4/adw/adw-tab-overview.go +8 -0
| @@ -84,6 +84,12 @@ type TabOverview struct { | |||||
| 84 | gtk.Widget | 84 | gtk.Widget | ||
| 85 | } | 85 | } | ||
| 86 | 86 | ||||
| 87 | + | var xTabOverviewGLibType func() types.GType | |||
| 88 | + | ||||
| 89 | + | func TabOverviewGLibType() types.GType { | |||
| 90 | + | return xTabOverviewGLibType() | |||
| 91 | + | } | |||
| 92 | + | ||||
| 87 | func TabOverviewNewFromInternalPtr(ptr uintptr) *TabOverview { | 93 | func TabOverviewNewFromInternalPtr(ptr uintptr) *TabOverview { | ||
| 88 | cls := &TabOverview{} | 94 | cls := &TabOverview{} | ||
| 89 | cls.Ptr = ptr | 95 | cls.Ptr = ptr | ||
| @@ -603,6 +609,8 @@ func init() { | |||||
| 603 | panic(err) | 609 | panic(err) | ||
| 604 | } | 610 | } | ||
| 605 | 611 | ||||
| 612 | + | core.PuregoSafeRegister(&xTabOverviewGLibType, lib, "adw_tab_overview_get_type") | |||
| 613 | + | ||||
| 606 | core.PuregoSafeRegister(&xNewTabOverview, lib, "adw_tab_overview_new") | 614 | core.PuregoSafeRegister(&xNewTabOverview, lib, "adw_tab_overview_new") | ||
| 607 | 615 | ||||
| 608 | core.PuregoSafeRegister(&xTabOverviewGetChild, lib, "adw_tab_overview_get_child") | 616 | core.PuregoSafeRegister(&xTabOverviewGetChild, lib, "adw_tab_overview_get_child") | ||
M v4/adw/adw-tab-view.go +25 -0
| @@ -9,6 +9,7 @@ import ( | |||||
| 9 | "github.com/jwijenbergh/puregotk/v4/gio" | 9 | "github.com/jwijenbergh/puregotk/v4/gio" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/glib" | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 12 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 12 | "github.com/jwijenbergh/puregotk/v4/gtk" | 13 | "github.com/jwijenbergh/puregotk/v4/gtk" | ||
| 13 | ) | 14 | ) | ||
| 14 | 15 | ||||
| @@ -37,6 +38,12 @@ func (x *TabViewClass) GoPointer() uintptr { | |||||
| 37 | // New values may be added to this enumeration over time. | 38 | // New values may be added to this enumeration over time. | ||
| 38 | type TabViewShortcuts int | 39 | type TabViewShortcuts int | ||
| 39 | 40 | ||||
| 41 | + | var xTabViewShortcutsGLibType func() types.GType | |||
| 42 | + | ||||
| 43 | + | func TabViewShortcutsGLibType() types.GType { | |||
| 44 | + | return xTabViewShortcutsGLibType() | |||
| 45 | + | } | |||
| 46 | + | ||||
| 40 | const ( | 47 | const ( | ||
| 41 | 48 | ||||
| 42 | // No shortcuts | 49 | // No shortcuts | ||
| @@ -79,6 +86,12 @@ type TabPage struct { | |||||
| 79 | gobject.Object | 86 | gobject.Object | ||
| 80 | } | 87 | } | ||
| 81 | 88 | ||||
| 89 | + | var xTabPageGLibType func() types.GType | |||
| 90 | + | ||||
| 91 | + | func TabPageGLibType() types.GType { | |||
| 92 | + | return xTabPageGLibType() | |||
| 93 | + | } | |||
| 94 | + | ||||
| 82 | func TabPageNewFromInternalPtr(ptr uintptr) *TabPage { | 95 | func TabPageNewFromInternalPtr(ptr uintptr) *TabPage { | ||
| 83 | cls := &TabPage{} | 96 | cls := &TabPage{} | ||
| 84 | cls.Ptr = ptr | 97 | cls.Ptr = ptr | ||
| @@ -667,6 +680,12 @@ type TabView struct { | |||||
| 667 | gtk.Widget | 680 | gtk.Widget | ||
| 668 | } | 681 | } | ||
| 669 | 682 | ||||
| 683 | + | var xTabViewGLibType func() types.GType | |||
| 684 | + | ||||
| 685 | + | func TabViewGLibType() types.GType { | |||
| 686 | + | return xTabViewGLibType() | |||
| 687 | + | } | |||
| 688 | + | ||||
| 670 | func TabViewNewFromInternalPtr(ptr uintptr) *TabView { | 689 | func TabViewNewFromInternalPtr(ptr uintptr) *TabView { | ||
| 671 | cls := &TabView{} | 690 | cls := &TabView{} | ||
| 672 | cls.Ptr = ptr | 691 | cls.Ptr = ptr | ||
| @@ -1614,6 +1633,10 @@ func init() { | |||||
| 1614 | panic(err) | 1633 | panic(err) | ||
| 1615 | } | 1634 | } | ||
| 1616 | 1635 | ||||
| 1636 | + | core.PuregoSafeRegister(&xTabViewShortcutsGLibType, lib, "adw_tab_view_shortcuts_get_type") | |||
| 1637 | + | ||||
| 1638 | + | core.PuregoSafeRegister(&xTabPageGLibType, lib, "adw_tab_page_get_type") | |||
| 1639 | + | ||||
| 1617 | core.PuregoSafeRegister(&xTabPageGetChild, lib, "adw_tab_page_get_child") | 1640 | core.PuregoSafeRegister(&xTabPageGetChild, lib, "adw_tab_page_get_child") | ||
| 1618 | core.PuregoSafeRegister(&xTabPageGetIcon, lib, "adw_tab_page_get_icon") | 1641 | core.PuregoSafeRegister(&xTabPageGetIcon, lib, "adw_tab_page_get_icon") | ||
| 1619 | core.PuregoSafeRegister(&xTabPageGetIndicatorActivatable, lib, "adw_tab_page_get_indicator_activatable") | 1642 | core.PuregoSafeRegister(&xTabPageGetIndicatorActivatable, lib, "adw_tab_page_get_indicator_activatable") | ||
| @@ -1644,6 +1667,8 @@ func init() { | |||||
| 1644 | core.PuregoSafeRegister(&xTabPageSetTitle, lib, "adw_tab_page_set_title") | 1667 | core.PuregoSafeRegister(&xTabPageSetTitle, lib, "adw_tab_page_set_title") | ||
| 1645 | core.PuregoSafeRegister(&xTabPageSetTooltip, lib, "adw_tab_page_set_tooltip") | 1668 | core.PuregoSafeRegister(&xTabPageSetTooltip, lib, "adw_tab_page_set_tooltip") | ||
| 1646 | 1669 | ||||
| 1670 | + | core.PuregoSafeRegister(&xTabViewGLibType, lib, "adw_tab_view_get_type") | |||
| 1671 | + | ||||
| 1647 | core.PuregoSafeRegister(&xNewTabView, lib, "adw_tab_view_new") | 1672 | core.PuregoSafeRegister(&xNewTabView, lib, "adw_tab_view_new") | ||
| 1648 | 1673 | ||||
| 1649 | core.PuregoSafeRegister(&xTabViewAddPage, lib, "adw_tab_view_add_page") | 1674 | core.PuregoSafeRegister(&xTabViewAddPage, lib, "adw_tab_view_add_page") | ||
M v4/adw/adw-timed-animation.go +9 -0
| @@ -7,6 +7,7 @@ import ( | |||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 10 | "github.com/jwijenbergh/puregotk/v4/gtk" | 11 | "github.com/jwijenbergh/puregotk/v4/gtk" | ||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| @@ -37,6 +38,12 @@ type TimedAnimation struct { | |||||
| 37 | Animation | 38 | Animation | ||
| 38 | } | 39 | } | ||
| 39 | 40 | ||||
| 41 | + | var xTimedAnimationGLibType func() types.GType | |||
| 42 | + | ||||
| 43 | + | func TimedAnimationGLibType() types.GType { | |||
| 44 | + | return xTimedAnimationGLibType() | |||
| 45 | + | } | |||
| 46 | + | ||||
| 40 | func TimedAnimationNewFromInternalPtr(ptr uintptr) *TimedAnimation { | 47 | func TimedAnimationNewFromInternalPtr(ptr uintptr) *TimedAnimation { | ||
| 41 | cls := &TimedAnimation{} | 48 | cls := &TimedAnimation{} | ||
| 42 | cls.Ptr = ptr | 49 | cls.Ptr = ptr | ||
| @@ -219,6 +226,8 @@ func init() { | |||||
| 219 | panic(err) | 226 | panic(err) | ||
| 220 | } | 227 | } | ||
| 221 | 228 | ||||
| 229 | + | core.PuregoSafeRegister(&xTimedAnimationGLibType, lib, "adw_timed_animation_get_type") | |||
| 230 | + | ||||
| 222 | core.PuregoSafeRegister(&xNewTimedAnimation, lib, "adw_timed_animation_new") | 231 | core.PuregoSafeRegister(&xNewTimedAnimation, lib, "adw_timed_animation_new") | ||
| 223 | 232 | ||||
| 224 | core.PuregoSafeRegister(&xTimedAnimationGetAlternate, lib, "adw_timed_animation_get_alternate") | 233 | core.PuregoSafeRegister(&xTimedAnimationGetAlternate, lib, "adw_timed_animation_get_alternate") | ||
M v4/adw/adw-toast-overlay.go +9 -0
| @@ -7,6 +7,7 @@ import ( | |||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 10 | "github.com/jwijenbergh/puregotk/v4/gtk" | 11 | "github.com/jwijenbergh/puregotk/v4/gtk" | ||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| @@ -65,6 +66,12 @@ type ToastOverlay struct { | |||||
| 65 | gtk.Widget | 66 | gtk.Widget | ||
| 66 | } | 67 | } | ||
| 67 | 68 | ||||
| 69 | + | var xToastOverlayGLibType func() types.GType | |||
| 70 | + | ||||
| 71 | + | func ToastOverlayGLibType() types.GType { | |||
| 72 | + | return xToastOverlayGLibType() | |||
| 73 | + | } | |||
| 74 | + | ||||
| 68 | func ToastOverlayNewFromInternalPtr(ptr uintptr) *ToastOverlay { | 75 | func ToastOverlayNewFromInternalPtr(ptr uintptr) *ToastOverlay { | ||
| 69 | cls := &ToastOverlay{} | 76 | cls := &ToastOverlay{} | ||
| 70 | cls.Ptr = ptr | 77 | cls.Ptr = ptr | ||
| @@ -289,6 +296,8 @@ func init() { | |||||
| 289 | panic(err) | 296 | panic(err) | ||
| 290 | } | 297 | } | ||
| 291 | 298 | ||||
| 299 | + | core.PuregoSafeRegister(&xToastOverlayGLibType, lib, "adw_toast_overlay_get_type") | |||
| 300 | + | ||||
| 292 | core.PuregoSafeRegister(&xNewToastOverlay, lib, "adw_toast_overlay_new") | 301 | core.PuregoSafeRegister(&xNewToastOverlay, lib, "adw_toast_overlay_new") | ||
| 293 | 302 | ||||
| 294 | core.PuregoSafeRegister(&xToastOverlayAddToast, lib, "adw_toast_overlay_add_toast") | 303 | core.PuregoSafeRegister(&xToastOverlayAddToast, lib, "adw_toast_overlay_add_toast") | ||
M v4/adw/adw-toast.go +17 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | "github.com/jwijenbergh/puregotk/v4/gtk" | 12 | "github.com/jwijenbergh/puregotk/v4/gtk" | ||
| 12 | ) | 13 | ) | ||
| 13 | 14 | ||||
| @@ -22,6 +23,12 @@ func (x *ToastClass) GoPointer() uintptr { | |||||
| 22 | // [class@Toast] behavior when another toast is already displayed. | 23 | // [class@Toast] behavior when another toast is already displayed. | ||
| 23 | type ToastPriority int | 24 | type ToastPriority int | ||
| 24 | 25 | ||||
| 26 | + | var xToastPriorityGLibType func() types.GType | |||
| 27 | + | ||||
| 28 | + | func ToastPriorityGLibType() types.GType { | |||
| 29 | + | return xToastPriorityGLibType() | |||
| 30 | + | } | |||
| 31 | + | ||||
| 25 | const ( | 32 | const ( | ||
| 26 | 33 | ||||
| 27 | // the toast will be queued if another toast is | 34 | // the toast will be queued if another toast is | ||
| @@ -167,6 +174,12 @@ type Toast struct { | |||||
| 167 | gobject.Object | 174 | gobject.Object | ||
| 168 | } | 175 | } | ||
| 169 | 176 | ||||
| 177 | + | var xToastGLibType func() types.GType | |||
| 178 | + | ||||
| 179 | + | func ToastGLibType() types.GType { | |||
| 180 | + | return xToastGLibType() | |||
| 181 | + | } | |||
| 182 | + | ||||
| 170 | func ToastNewFromInternalPtr(ptr uintptr) *Toast { | 183 | func ToastNewFromInternalPtr(ptr uintptr) *Toast { | ||
| 171 | cls := &Toast{} | 184 | cls := &Toast{} | ||
| 172 | cls.Ptr = ptr | 185 | cls.Ptr = ptr | ||
| @@ -485,6 +498,10 @@ func init() { | |||||
| 485 | panic(err) | 498 | panic(err) | ||
| 486 | } | 499 | } | ||
| 487 | 500 | ||||
| 501 | + | core.PuregoSafeRegister(&xToastPriorityGLibType, lib, "adw_toast_priority_get_type") | |||
| 502 | + | ||||
| 503 | + | core.PuregoSafeRegister(&xToastGLibType, lib, "adw_toast_get_type") | |||
| 504 | + | ||||
| 488 | core.PuregoSafeRegister(&xNewToast, lib, "adw_toast_new") | 505 | core.PuregoSafeRegister(&xNewToast, lib, "adw_toast_new") | ||
| 489 | core.PuregoSafeRegister(&xNewToastFormat, lib, "adw_toast_new_format") | 506 | core.PuregoSafeRegister(&xNewToastFormat, lib, "adw_toast_new_format") | ||
| 490 | 507 | ||||
M v4/adw/adw-version.go +1 -0
| @@ -71,6 +71,7 @@ func init() { | |||||
| 71 | if err != nil { | 71 | if err != nil { | ||
| 72 | panic(err) | 72 | panic(err) | ||
| 73 | } | 73 | } | ||
| 74 | + | ||||
| 74 | core.PuregoSafeRegister(&xGetMajorVersion, lib, "adw_get_major_version") | 75 | core.PuregoSafeRegister(&xGetMajorVersion, lib, "adw_get_major_version") | ||
| 75 | core.PuregoSafeRegister(&xGetMicroVersion, lib, "adw_get_micro_version") | 76 | core.PuregoSafeRegister(&xGetMicroVersion, lib, "adw_get_micro_version") | ||
| 76 | core.PuregoSafeRegister(&xGetMinorVersion, lib, "adw_get_minor_version") | 77 | core.PuregoSafeRegister(&xGetMinorVersion, lib, "adw_get_minor_version") | ||
M v4/adw/adw-view-stack.go +17 -0
| @@ -7,6 +7,7 @@ import ( | |||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 10 | "github.com/jwijenbergh/puregotk/v4/gtk" | 11 | "github.com/jwijenbergh/puregotk/v4/gtk" | ||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| @@ -86,6 +87,12 @@ type ViewStack struct { | |||||
| 86 | gtk.Widget | 87 | gtk.Widget | ||
| 87 | } | 88 | } | ||
| 88 | 89 | ||||
| 90 | + | var xViewStackGLibType func() types.GType | |||
| 91 | + | ||||
| 92 | + | func ViewStackGLibType() types.GType { | |||
| 93 | + | return xViewStackGLibType() | |||
| 94 | + | } | |||
| 95 | + | ||||
| 89 | func ViewStackNewFromInternalPtr(ptr uintptr) *ViewStack { | 96 | func ViewStackNewFromInternalPtr(ptr uintptr) *ViewStack { | ||
| 90 | cls := &ViewStack{} | 97 | cls := &ViewStack{} | ||
| 91 | cls.Ptr = ptr | 98 | cls.Ptr = ptr | ||
| @@ -498,6 +505,12 @@ type ViewStackPage struct { | |||||
| 498 | gobject.Object | 505 | gobject.Object | ||
| 499 | } | 506 | } | ||
| 500 | 507 | ||||
| 508 | + | var xViewStackPageGLibType func() types.GType | |||
| 509 | + | ||||
| 510 | + | func ViewStackPageGLibType() types.GType { | |||
| 511 | + | return xViewStackPageGLibType() | |||
| 512 | + | } | |||
| 513 | + | ||||
| 501 | func ViewStackPageNewFromInternalPtr(ptr uintptr) *ViewStackPage { | 514 | func ViewStackPageNewFromInternalPtr(ptr uintptr) *ViewStackPage { | ||
| 502 | cls := &ViewStackPage{} | 515 | cls := &ViewStackPage{} | ||
| 503 | cls.Ptr = ptr | 516 | cls.Ptr = ptr | ||
| @@ -807,6 +820,8 @@ func init() { | |||||
| 807 | panic(err) | 820 | panic(err) | ||
| 808 | } | 821 | } | ||
| 809 | 822 | ||||
| 823 | + | core.PuregoSafeRegister(&xViewStackGLibType, lib, "adw_view_stack_get_type") | |||
| 824 | + | ||||
| 810 | core.PuregoSafeRegister(&xNewViewStack, lib, "adw_view_stack_new") | 825 | core.PuregoSafeRegister(&xNewViewStack, lib, "adw_view_stack_new") | ||
| 811 | 826 | ||||
| 812 | core.PuregoSafeRegister(&xViewStackAdd, lib, "adw_view_stack_add") | 827 | core.PuregoSafeRegister(&xViewStackAdd, lib, "adw_view_stack_add") | ||
| @@ -826,6 +841,8 @@ func init() { | |||||
| 826 | core.PuregoSafeRegister(&xViewStackSetVisibleChild, lib, "adw_view_stack_set_visible_child") | 841 | core.PuregoSafeRegister(&xViewStackSetVisibleChild, lib, "adw_view_stack_set_visible_child") | ||
| 827 | core.PuregoSafeRegister(&xViewStackSetVisibleChildName, lib, "adw_view_stack_set_visible_child_name") | 842 | core.PuregoSafeRegister(&xViewStackSetVisibleChildName, lib, "adw_view_stack_set_visible_child_name") | ||
| 828 | 843 | ||||
| 844 | + | core.PuregoSafeRegister(&xViewStackPageGLibType, lib, "adw_view_stack_page_get_type") | |||
| 845 | + | ||||
| 829 | core.PuregoSafeRegister(&xViewStackPageGetBadgeNumber, lib, "adw_view_stack_page_get_badge_number") | 846 | core.PuregoSafeRegister(&xViewStackPageGetBadgeNumber, lib, "adw_view_stack_page_get_badge_number") | ||
| 830 | core.PuregoSafeRegister(&xViewStackPageGetChild, lib, "adw_view_stack_page_get_child") | 847 | core.PuregoSafeRegister(&xViewStackPageGetChild, lib, "adw_view_stack_page_get_child") | ||
| 831 | core.PuregoSafeRegister(&xViewStackPageGetIconName, lib, "adw_view_stack_page_get_icon_name") | 848 | core.PuregoSafeRegister(&xViewStackPageGetIconName, lib, "adw_view_stack_page_get_icon_name") | ||
M v4/adw/adw-view-switcher-bar.go +9 -0
| @@ -7,6 +7,7 @@ import ( | |||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 10 | "github.com/jwijenbergh/puregotk/v4/gtk" | 11 | "github.com/jwijenbergh/puregotk/v4/gtk" | ||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| @@ -80,6 +81,12 @@ type ViewSwitcherBar struct { | |||||
| 80 | gtk.Widget | 81 | gtk.Widget | ||
| 81 | } | 82 | } | ||
| 82 | 83 | ||||
| 84 | + | var xViewSwitcherBarGLibType func() types.GType | |||
| 85 | + | ||||
| 86 | + | func ViewSwitcherBarGLibType() types.GType { | |||
| 87 | + | return xViewSwitcherBarGLibType() | |||
| 88 | + | } | |||
| 89 | + | ||||
| 83 | func ViewSwitcherBarNewFromInternalPtr(ptr uintptr) *ViewSwitcherBar { | 90 | func ViewSwitcherBarNewFromInternalPtr(ptr uintptr) *ViewSwitcherBar { | ||
| 84 | cls := &ViewSwitcherBar{} | 91 | cls := &ViewSwitcherBar{} | ||
| 85 | cls.Ptr = ptr | 92 | cls.Ptr = ptr | ||
| @@ -304,6 +311,8 @@ func init() { | |||||
| 304 | panic(err) | 311 | panic(err) | ||
| 305 | } | 312 | } | ||
| 306 | 313 | ||||
| 314 | + | core.PuregoSafeRegister(&xViewSwitcherBarGLibType, lib, "adw_view_switcher_bar_get_type") | |||
| 315 | + | ||||
| 307 | core.PuregoSafeRegister(&xNewViewSwitcherBar, lib, "adw_view_switcher_bar_new") | 316 | core.PuregoSafeRegister(&xNewViewSwitcherBar, lib, "adw_view_switcher_bar_new") | ||
| 308 | 317 | ||||
| 309 | core.PuregoSafeRegister(&xViewSwitcherBarGetReveal, lib, "adw_view_switcher_bar_get_reveal") | 318 | core.PuregoSafeRegister(&xViewSwitcherBarGetReveal, lib, "adw_view_switcher_bar_get_reveal") | ||
M v4/adw/adw-view-switcher-title.go +9 -0
| @@ -7,6 +7,7 @@ import ( | |||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 10 | "github.com/jwijenbergh/puregotk/v4/gtk" | 11 | "github.com/jwijenbergh/puregotk/v4/gtk" | ||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| @@ -86,6 +87,12 @@ type ViewSwitcherTitle struct { | |||||
| 86 | gtk.Widget | 87 | gtk.Widget | ||
| 87 | } | 88 | } | ||
| 88 | 89 | ||||
| 90 | + | var xViewSwitcherTitleGLibType func() types.GType | |||
| 91 | + | ||||
| 92 | + | func ViewSwitcherTitleGLibType() types.GType { | |||
| 93 | + | return xViewSwitcherTitleGLibType() | |||
| 94 | + | } | |||
| 95 | + | ||||
| 89 | func ViewSwitcherTitleNewFromInternalPtr(ptr uintptr) *ViewSwitcherTitle { | 96 | func ViewSwitcherTitleNewFromInternalPtr(ptr uintptr) *ViewSwitcherTitle { | ||
| 90 | cls := &ViewSwitcherTitle{} | 97 | cls := &ViewSwitcherTitle{} | ||
| 91 | cls.Ptr = ptr | 98 | cls.Ptr = ptr | ||
| @@ -370,6 +377,8 @@ func init() { | |||||
| 370 | panic(err) | 377 | panic(err) | ||
| 371 | } | 378 | } | ||
| 372 | 379 | ||||
| 380 | + | core.PuregoSafeRegister(&xViewSwitcherTitleGLibType, lib, "adw_view_switcher_title_get_type") | |||
| 381 | + | ||||
| 373 | core.PuregoSafeRegister(&xNewViewSwitcherTitle, lib, "adw_view_switcher_title_new") | 382 | core.PuregoSafeRegister(&xNewViewSwitcherTitle, lib, "adw_view_switcher_title_new") | ||
| 374 | 383 | ||||
| 375 | core.PuregoSafeRegister(&xViewSwitcherTitleGetStack, lib, "adw_view_switcher_title_get_stack") | 384 | core.PuregoSafeRegister(&xViewSwitcherTitleGetStack, lib, "adw_view_switcher_title_get_stack") | ||
M v4/adw/adw-view-switcher.go +17 -0
| @@ -7,6 +7,7 @@ import ( | |||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 10 | "github.com/jwijenbergh/puregotk/v4/gtk" | 11 | "github.com/jwijenbergh/puregotk/v4/gtk" | ||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| @@ -21,6 +22,12 @@ func (x *ViewSwitcherClass) GoPointer() uintptr { | |||||
| 21 | // Describes the adaptive modes of [class@ViewSwitcher]. | 22 | // Describes the adaptive modes of [class@ViewSwitcher]. | ||
| 22 | type ViewSwitcherPolicy int | 23 | type ViewSwitcherPolicy int | ||
| 23 | 24 | ||||
| 25 | + | var xViewSwitcherPolicyGLibType func() types.GType | |||
| 26 | + | ||||
| 27 | + | func ViewSwitcherPolicyGLibType() types.GType { | |||
| 28 | + | return xViewSwitcherPolicyGLibType() | |||
| 29 | + | } | |||
| 30 | + | ||||
| 24 | const ( | 31 | const ( | ||
| 25 | 32 | ||||
| 26 | // Force the narrow mode | 33 | // Force the narrow mode | ||
| @@ -62,6 +69,12 @@ type ViewSwitcher struct { | |||||
| 62 | gtk.Widget | 69 | gtk.Widget | ||
| 63 | } | 70 | } | ||
| 64 | 71 | ||||
| 72 | + | var xViewSwitcherGLibType func() types.GType | |||
| 73 | + | ||||
| 74 | + | func ViewSwitcherGLibType() types.GType { | |||
| 75 | + | return xViewSwitcherGLibType() | |||
| 76 | + | } | |||
| 77 | + | ||||
| 65 | func ViewSwitcherNewFromInternalPtr(ptr uintptr) *ViewSwitcher { | 78 | func ViewSwitcherNewFromInternalPtr(ptr uintptr) *ViewSwitcher { | ||
| 66 | cls := &ViewSwitcher{} | 79 | cls := &ViewSwitcher{} | ||
| 67 | cls.Ptr = ptr | 80 | cls.Ptr = ptr | ||
| @@ -286,6 +299,10 @@ func init() { | |||||
| 286 | panic(err) | 299 | panic(err) | ||
| 287 | } | 300 | } | ||
| 288 | 301 | ||||
| 302 | + | core.PuregoSafeRegister(&xViewSwitcherPolicyGLibType, lib, "adw_view_switcher_policy_get_type") | |||
| 303 | + | ||||
| 304 | + | core.PuregoSafeRegister(&xViewSwitcherGLibType, lib, "adw_view_switcher_get_type") | |||
| 305 | + | ||||
| 289 | core.PuregoSafeRegister(&xNewViewSwitcher, lib, "adw_view_switcher_new") | 306 | core.PuregoSafeRegister(&xNewViewSwitcher, lib, "adw_view_switcher_new") | ||
| 290 | 307 | ||||
| 291 | core.PuregoSafeRegister(&xViewSwitcherGetPolicy, lib, "adw_view_switcher_get_policy") | 308 | core.PuregoSafeRegister(&xViewSwitcherGetPolicy, lib, "adw_view_switcher_get_policy") | ||
M v4/adw/adw-window-title.go +9 -0
| @@ -7,6 +7,7 @@ import ( | |||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 10 | "github.com/jwijenbergh/puregotk/v4/gtk" | 11 | "github.com/jwijenbergh/puregotk/v4/gtk" | ||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| @@ -37,6 +38,12 @@ type WindowTitle struct { | |||||
| 37 | gtk.Widget | 38 | gtk.Widget | ||
| 38 | } | 39 | } | ||
| 39 | 40 | ||||
| 41 | + | var xWindowTitleGLibType func() types.GType | |||
| 42 | + | ||||
| 43 | + | func WindowTitleGLibType() types.GType { | |||
| 44 | + | return xWindowTitleGLibType() | |||
| 45 | + | } | |||
| 46 | + | ||||
| 40 | func WindowTitleNewFromInternalPtr(ptr uintptr) *WindowTitle { | 47 | func WindowTitleNewFromInternalPtr(ptr uintptr) *WindowTitle { | ||
| 41 | cls := &WindowTitle{} | 48 | cls := &WindowTitle{} | ||
| 42 | cls.Ptr = ptr | 49 | cls.Ptr = ptr | ||
| @@ -258,6 +265,8 @@ func init() { | |||||
| 258 | panic(err) | 265 | panic(err) | ||
| 259 | } | 266 | } | ||
| 260 | 267 | ||||
| 268 | + | core.PuregoSafeRegister(&xWindowTitleGLibType, lib, "adw_window_title_get_type") | |||
| 269 | + | ||||
| 261 | core.PuregoSafeRegister(&xNewWindowTitle, lib, "adw_window_title_new") | 270 | core.PuregoSafeRegister(&xNewWindowTitle, lib, "adw_window_title_new") | ||
| 262 | 271 | ||||
| 263 | core.PuregoSafeRegister(&xWindowTitleGetSubtitle, lib, "adw_window_title_get_subtitle") | 272 | core.PuregoSafeRegister(&xWindowTitleGetSubtitle, lib, "adw_window_title_get_subtitle") | ||
M v4/adw/adw-window.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/gdk" | 9 | "github.com/jwijenbergh/puregotk/v4/gdk" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | "github.com/jwijenbergh/puregotk/v4/gsk" | 12 | "github.com/jwijenbergh/puregotk/v4/gsk" | ||
| 12 | "github.com/jwijenbergh/puregotk/v4/gtk" | 13 | "github.com/jwijenbergh/puregotk/v4/gtk" | ||
| 13 | ) | 14 | ) | ||
| @@ -59,6 +60,12 @@ type Window struct { | |||||
| 59 | gtk.Window | 60 | gtk.Window | ||
| 60 | } | 61 | } | ||
| 61 | 62 | ||||
| 63 | + | var xWindowGLibType func() types.GType | |||
| 64 | + | ||||
| 65 | + | func WindowGLibType() types.GType { | |||
| 66 | + | return xWindowGLibType() | |||
| 67 | + | } | |||
| 68 | + | ||||
| 62 | func WindowNewFromInternalPtr(ptr uintptr) *Window { | 69 | func WindowNewFromInternalPtr(ptr uintptr) *Window { | ||
| 63 | cls := &Window{} | 70 | cls := &Window{} | ||
| 64 | cls.Ptr = ptr | 71 | cls.Ptr = ptr | ||
| @@ -376,6 +383,8 @@ func init() { | |||||
| 376 | panic(err) | 383 | panic(err) | ||
| 377 | } | 384 | } | ||
| 378 | 385 | ||||
| 386 | + | core.PuregoSafeRegister(&xWindowGLibType, lib, "adw_window_get_type") | |||
| 387 | + | ||||
| 379 | core.PuregoSafeRegister(&xNewWindow, lib, "adw_window_new") | 388 | core.PuregoSafeRegister(&xNewWindow, lib, "adw_window_new") | ||
| 380 | 389 | ||||
| 381 | core.PuregoSafeRegister(&xWindowGetContent, lib, "adw_window_get_content") | 390 | core.PuregoSafeRegister(&xWindowGetContent, lib, "adw_window_get_content") | ||
M v4/cairo/main.go +258 -0
| @@ -6,11 +6,18 @@ import ( | |||||
| 6 | 6 | ||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 9 | ) | 10 | ) | ||
| 10 | 11 | ||||
| 11 | type Context struct { | 12 | type Context struct { | ||
| 12 | } | 13 | } | ||
| 13 | 14 | ||||
| 15 | + | var xContextGLibType func() types.GType | |||
| 16 | + | ||||
| 17 | + | func ContextGLibType() types.GType { | |||
| 18 | + | return xContextGLibType() | |||
| 19 | + | } | |||
| 20 | + | ||||
| 14 | func (x *Context) GoPointer() uintptr { | 21 | func (x *Context) GoPointer() uintptr { | ||
| 15 | return uintptr(unsafe.Pointer(x)) | 22 | return uintptr(unsafe.Pointer(x)) | ||
| 16 | } | 23 | } | ||
| @@ -18,6 +25,12 @@ func (x *Context) GoPointer() uintptr { | |||||
| 18 | type Device struct { | 25 | type Device struct { | ||
| 19 | } | 26 | } | ||
| 20 | 27 | ||||
| 28 | + | var xDeviceGLibType func() types.GType | |||
| 29 | + | ||||
| 30 | + | func DeviceGLibType() types.GType { | |||
| 31 | + | return xDeviceGLibType() | |||
| 32 | + | } | |||
| 33 | + | ||||
| 21 | func (x *Device) GoPointer() uintptr { | 34 | func (x *Device) GoPointer() uintptr { | ||
| 22 | return uintptr(unsafe.Pointer(x)) | 35 | return uintptr(unsafe.Pointer(x)) | ||
| 23 | } | 36 | } | ||
| @@ -25,6 +38,12 @@ func (x *Device) GoPointer() uintptr { | |||||
| 25 | type Surface struct { | 38 | type Surface struct { | ||
| 26 | } | 39 | } | ||
| 27 | 40 | ||||
| 41 | + | var xSurfaceGLibType func() types.GType | |||
| 42 | + | ||||
| 43 | + | func SurfaceGLibType() types.GType { | |||
| 44 | + | return xSurfaceGLibType() | |||
| 45 | + | } | |||
| 46 | + | ||||
| 28 | func (x *Surface) GoPointer() uintptr { | 47 | func (x *Surface) GoPointer() uintptr { | ||
| 29 | return uintptr(unsafe.Pointer(x)) | 48 | return uintptr(unsafe.Pointer(x)) | ||
| 30 | } | 49 | } | ||
| @@ -39,6 +58,12 @@ func (x *Matrix) GoPointer() uintptr { | |||||
| 39 | type Pattern struct { | 58 | type Pattern struct { | ||
| 40 | } | 59 | } | ||
| 41 | 60 | ||||
| 61 | + | var xPatternGLibType func() types.GType | |||
| 62 | + | ||||
| 63 | + | func PatternGLibType() types.GType { | |||
| 64 | + | return xPatternGLibType() | |||
| 65 | + | } | |||
| 66 | + | ||||
| 42 | func (x *Pattern) GoPointer() uintptr { | 67 | func (x *Pattern) GoPointer() uintptr { | ||
| 43 | return uintptr(unsafe.Pointer(x)) | 68 | return uintptr(unsafe.Pointer(x)) | ||
| 44 | } | 69 | } | ||
| @@ -46,6 +71,12 @@ func (x *Pattern) GoPointer() uintptr { | |||||
| 46 | type Region struct { | 71 | type Region struct { | ||
| 47 | } | 72 | } | ||
| 48 | 73 | ||||
| 74 | + | var xRegionGLibType func() types.GType | |||
| 75 | + | ||||
| 76 | + | func RegionGLibType() types.GType { | |||
| 77 | + | return xRegionGLibType() | |||
| 78 | + | } | |||
| 79 | + | ||||
| 49 | func (x *Region) GoPointer() uintptr { | 80 | func (x *Region) GoPointer() uintptr { | ||
| 50 | return uintptr(unsafe.Pointer(x)) | 81 | return uintptr(unsafe.Pointer(x)) | ||
| 51 | } | 82 | } | ||
| @@ -53,6 +84,12 @@ func (x *Region) GoPointer() uintptr { | |||||
| 53 | type FontOptions struct { | 84 | type FontOptions struct { | ||
| 54 | } | 85 | } | ||
| 55 | 86 | ||||
| 87 | + | var xFontOptionsGLibType func() types.GType | |||
| 88 | + | ||||
| 89 | + | func FontOptionsGLibType() types.GType { | |||
| 90 | + | return xFontOptionsGLibType() | |||
| 91 | + | } | |||
| 92 | + | ||||
| 56 | func (x *FontOptions) GoPointer() uintptr { | 93 | func (x *FontOptions) GoPointer() uintptr { | ||
| 57 | return uintptr(unsafe.Pointer(x)) | 94 | return uintptr(unsafe.Pointer(x)) | ||
| 58 | } | 95 | } | ||
| @@ -60,6 +97,12 @@ func (x *FontOptions) GoPointer() uintptr { | |||||
| 60 | type FontFace struct { | 97 | type FontFace struct { | ||
| 61 | } | 98 | } | ||
| 62 | 99 | ||||
| 100 | + | var xFontFaceGLibType func() types.GType | |||
| 101 | + | ||||
| 102 | + | func FontFaceGLibType() types.GType { | |||
| 103 | + | return xFontFaceGLibType() | |||
| 104 | + | } | |||
| 105 | + | ||||
| 63 | func (x *FontFace) GoPointer() uintptr { | 106 | func (x *FontFace) GoPointer() uintptr { | ||
| 64 | return uintptr(unsafe.Pointer(x)) | 107 | return uintptr(unsafe.Pointer(x)) | ||
| 65 | } | 108 | } | ||
| @@ -67,6 +110,12 @@ func (x *FontFace) GoPointer() uintptr { | |||||
| 67 | type ScaledFont struct { | 110 | type ScaledFont struct { | ||
| 68 | } | 111 | } | ||
| 69 | 112 | ||||
| 113 | + | var xScaledFontGLibType func() types.GType | |||
| 114 | + | ||||
| 115 | + | func ScaledFontGLibType() types.GType { | |||
| 116 | + | return xScaledFontGLibType() | |||
| 117 | + | } | |||
| 118 | + | ||||
| 70 | func (x *ScaledFont) GoPointer() uintptr { | 119 | func (x *ScaledFont) GoPointer() uintptr { | ||
| 71 | return uintptr(unsafe.Pointer(x)) | 120 | return uintptr(unsafe.Pointer(x)) | ||
| 72 | } | 121 | } | ||
| @@ -88,6 +137,12 @@ type Rectangle struct { | |||||
| 88 | Height float64 | 137 | Height float64 | ||
| 89 | } | 138 | } | ||
| 90 | 139 | ||||
| 140 | + | var xRectangleGLibType func() types.GType | |||
| 141 | + | ||||
| 142 | + | func RectangleGLibType() types.GType { | |||
| 143 | + | return xRectangleGLibType() | |||
| 144 | + | } | |||
| 145 | + | ||||
| 91 | func (x *Rectangle) GoPointer() uintptr { | 146 | func (x *Rectangle) GoPointer() uintptr { | ||
| 92 | return uintptr(unsafe.Pointer(x)) | 147 | return uintptr(unsafe.Pointer(x)) | ||
| 93 | } | 148 | } | ||
| @@ -102,12 +157,24 @@ type RectangleInt struct { | |||||
| 102 | Height int32 | 157 | Height int32 | ||
| 103 | } | 158 | } | ||
| 104 | 159 | ||||
| 160 | + | var xRectangleIntGLibType func() types.GType | |||
| 161 | + | ||||
| 162 | + | func RectangleIntGLibType() types.GType { | |||
| 163 | + | return xRectangleIntGLibType() | |||
| 164 | + | } | |||
| 165 | + | ||||
| 105 | func (x *RectangleInt) GoPointer() uintptr { | 166 | func (x *RectangleInt) GoPointer() uintptr { | ||
| 106 | return uintptr(unsafe.Pointer(x)) | 167 | return uintptr(unsafe.Pointer(x)) | ||
| 107 | } | 168 | } | ||
| 108 | 169 | ||||
| 109 | type Status int | 170 | type Status int | ||
| 110 | 171 | ||||
| 172 | + | var xStatusGLibType func() types.GType | |||
| 173 | + | ||||
| 174 | + | func StatusGLibType() types.GType { | |||
| 175 | + | return xStatusGLibType() | |||
| 176 | + | } | |||
| 177 | + | ||||
| 111 | const ( | 178 | const ( | ||
| 112 | StatusSuccessValue Status = 0 | 179 | StatusSuccessValue Status = 0 | ||
| 113 | 180 | ||||
| @@ -190,6 +257,12 @@ const ( | |||||
| 190 | 257 | ||||
| 191 | type Content int | 258 | type Content int | ||
| 192 | 259 | ||||
| 260 | + | var xContentGLibType func() types.GType | |||
| 261 | + | ||||
| 262 | + | func ContentGLibType() types.GType { | |||
| 263 | + | return xContentGLibType() | |||
| 264 | + | } | |||
| 265 | + | ||||
| 193 | const ( | 266 | const ( | ||
| 194 | ContentColorValue Content = 4096 | 267 | ContentColorValue Content = 4096 | ||
| 195 | 268 | ||||
| @@ -200,6 +273,12 @@ const ( | |||||
| 200 | 273 | ||||
| 201 | type Operator int | 274 | type Operator int | ||
| 202 | 275 | ||||
| 276 | + | var xOperatorGLibType func() types.GType | |||
| 277 | + | ||||
| 278 | + | func OperatorGLibType() types.GType { | |||
| 279 | + | return xOperatorGLibType() | |||
| 280 | + | } | |||
| 281 | + | ||||
| 203 | const ( | 282 | const ( | ||
| 204 | OperatorClearValue Operator = 0 | 283 | OperatorClearValue Operator = 0 | ||
| 205 | 284 | ||||
| @@ -262,6 +341,12 @@ const ( | |||||
| 262 | 341 | ||||
| 263 | type Antialias int | 342 | type Antialias int | ||
| 264 | 343 | ||||
| 344 | + | var xAntialiasGLibType func() types.GType | |||
| 345 | + | ||||
| 346 | + | func AntialiasGLibType() types.GType { | |||
| 347 | + | return xAntialiasGLibType() | |||
| 348 | + | } | |||
| 349 | + | ||||
| 265 | const ( | 350 | const ( | ||
| 266 | AntialiasDefaultValue Antialias = 0 | 351 | AntialiasDefaultValue Antialias = 0 | ||
| 267 | 352 | ||||
| @@ -280,6 +365,12 @@ const ( | |||||
| 280 | 365 | ||||
| 281 | type FillRule int | 366 | type FillRule int | ||
| 282 | 367 | ||||
| 368 | + | var xFillRuleGLibType func() types.GType | |||
| 369 | + | ||||
| 370 | + | func FillRuleGLibType() types.GType { | |||
| 371 | + | return xFillRuleGLibType() | |||
| 372 | + | } | |||
| 373 | + | ||||
| 283 | const ( | 374 | const ( | ||
| 284 | FillRuleWindingValue FillRule = 0 | 375 | FillRuleWindingValue FillRule = 0 | ||
| 285 | 376 | ||||
| @@ -288,6 +379,12 @@ const ( | |||||
| 288 | 379 | ||||
| 289 | type LineCap int | 380 | type LineCap int | ||
| 290 | 381 | ||||
| 382 | + | var xLineCapGLibType func() types.GType | |||
| 383 | + | ||||
| 384 | + | func LineCapGLibType() types.GType { | |||
| 385 | + | return xLineCapGLibType() | |||
| 386 | + | } | |||
| 387 | + | ||||
| 291 | const ( | 388 | const ( | ||
| 292 | LineCapButtValue LineCap = 0 | 389 | LineCapButtValue LineCap = 0 | ||
| 293 | 390 | ||||
| @@ -298,6 +395,12 @@ const ( | |||||
| 298 | 395 | ||||
| 299 | type LineJoin int | 396 | type LineJoin int | ||
| 300 | 397 | ||||
| 398 | + | var xLineJoinGLibType func() types.GType | |||
| 399 | + | ||||
| 400 | + | func LineJoinGLibType() types.GType { | |||
| 401 | + | return xLineJoinGLibType() | |||
| 402 | + | } | |||
| 403 | + | ||||
| 301 | const ( | 404 | const ( | ||
| 302 | LineJoinMiterValue LineJoin = 0 | 405 | LineJoinMiterValue LineJoin = 0 | ||
| 303 | 406 | ||||
| @@ -308,12 +411,24 @@ const ( | |||||
| 308 | 411 | ||||
| 309 | type TextClusterFlags int | 412 | type TextClusterFlags int | ||
| 310 | 413 | ||||
| 414 | + | var xTextClusterFlagsGLibType func() types.GType | |||
| 415 | + | ||||
| 416 | + | func TextClusterFlagsGLibType() types.GType { | |||
| 417 | + | return xTextClusterFlagsGLibType() | |||
| 418 | + | } | |||
| 419 | + | ||||
| 311 | const ( | 420 | const ( | ||
| 312 | TextClusterFlagBackwardValue TextClusterFlags = 1 | 421 | TextClusterFlagBackwardValue TextClusterFlags = 1 | ||
| 313 | ) | 422 | ) | ||
| 314 | 423 | ||||
| 315 | type FontSlant int | 424 | type FontSlant int | ||
| 316 | 425 | ||||
| 426 | + | var xFontSlantGLibType func() types.GType | |||
| 427 | + | ||||
| 428 | + | func FontSlantGLibType() types.GType { | |||
| 429 | + | return xFontSlantGLibType() | |||
| 430 | + | } | |||
| 431 | + | ||||
| 317 | const ( | 432 | const ( | ||
| 318 | FontSlantNormalValue FontSlant = 0 | 433 | FontSlantNormalValue FontSlant = 0 | ||
| 319 | 434 | ||||
| @@ -324,6 +439,12 @@ const ( | |||||
| 324 | 439 | ||||
| 325 | type FontWeight int | 440 | type FontWeight int | ||
| 326 | 441 | ||||
| 442 | + | var xFontWeightGLibType func() types.GType | |||
| 443 | + | ||||
| 444 | + | func FontWeightGLibType() types.GType { | |||
| 445 | + | return xFontWeightGLibType() | |||
| 446 | + | } | |||
| 447 | + | ||||
| 327 | const ( | 448 | const ( | ||
| 328 | FontWeightNormalValue FontWeight = 0 | 449 | FontWeightNormalValue FontWeight = 0 | ||
| 329 | 450 | ||||
| @@ -332,6 +453,12 @@ const ( | |||||
| 332 | 453 | ||||
| 333 | type SubpixelOrder int | 454 | type SubpixelOrder int | ||
| 334 | 455 | ||||
| 456 | + | var xSubpixelOrderGLibType func() types.GType | |||
| 457 | + | ||||
| 458 | + | func SubpixelOrderGLibType() types.GType { | |||
| 459 | + | return xSubpixelOrderGLibType() | |||
| 460 | + | } | |||
| 461 | + | ||||
| 335 | const ( | 462 | const ( | ||
| 336 | SubpixelOrderDefaultValue SubpixelOrder = 0 | 463 | SubpixelOrderDefaultValue SubpixelOrder = 0 | ||
| 337 | 464 | ||||
| @@ -346,6 +473,12 @@ const ( | |||||
| 346 | 473 | ||||
| 347 | type HintStyle int | 474 | type HintStyle int | ||
| 348 | 475 | ||||
| 476 | + | var xHintStyleGLibType func() types.GType | |||
| 477 | + | ||||
| 478 | + | func HintStyleGLibType() types.GType { | |||
| 479 | + | return xHintStyleGLibType() | |||
| 480 | + | } | |||
| 481 | + | ||||
| 349 | const ( | 482 | const ( | ||
| 350 | HintStyleDefaultValue HintStyle = 0 | 483 | HintStyleDefaultValue HintStyle = 0 | ||
| 351 | 484 | ||||
| @@ -360,6 +493,12 @@ const ( | |||||
| 360 | 493 | ||||
| 361 | type HintMetrics int | 494 | type HintMetrics int | ||
| 362 | 495 | ||||
| 496 | + | var xHintMetricsGLibType func() types.GType | |||
| 497 | + | ||||
| 498 | + | func HintMetricsGLibType() types.GType { | |||
| 499 | + | return xHintMetricsGLibType() | |||
| 500 | + | } | |||
| 501 | + | ||||
| 363 | const ( | 502 | const ( | ||
| 364 | HintMetricsDefaultValue HintMetrics = 0 | 503 | HintMetricsDefaultValue HintMetrics = 0 | ||
| 365 | 504 | ||||
| @@ -370,6 +509,12 @@ const ( | |||||
| 370 | 509 | ||||
| 371 | type FontType int | 510 | type FontType int | ||
| 372 | 511 | ||||
| 512 | + | var xFontTypeGLibType func() types.GType | |||
| 513 | + | ||||
| 514 | + | func FontTypeGLibType() types.GType { | |||
| 515 | + | return xFontTypeGLibType() | |||
| 516 | + | } | |||
| 517 | + | ||||
| 373 | const ( | 518 | const ( | ||
| 374 | FontTypeToyValue FontType = 0 | 519 | FontTypeToyValue FontType = 0 | ||
| 375 | 520 | ||||
| @@ -384,6 +529,12 @@ const ( | |||||
| 384 | 529 | ||||
| 385 | type PathDataType int | 530 | type PathDataType int | ||
| 386 | 531 | ||||
| 532 | + | var xPathDataTypeGLibType func() types.GType | |||
| 533 | + | ||||
| 534 | + | func PathDataTypeGLibType() types.GType { | |||
| 535 | + | return xPathDataTypeGLibType() | |||
| 536 | + | } | |||
| 537 | + | ||||
| 387 | const ( | 538 | const ( | ||
| 388 | PathMoveToValue PathDataType = 0 | 539 | PathMoveToValue PathDataType = 0 | ||
| 389 | 540 | ||||
| @@ -396,6 +547,12 @@ const ( | |||||
| 396 | 547 | ||||
| 397 | type DeviceType int | 548 | type DeviceType int | ||
| 398 | 549 | ||||
| 550 | + | var xDeviceTypeGLibType func() types.GType | |||
| 551 | + | ||||
| 552 | + | func DeviceTypeGLibType() types.GType { | |||
| 553 | + | return xDeviceTypeGLibType() | |||
| 554 | + | } | |||
| 555 | + | ||||
| 399 | const ( | 556 | const ( | ||
| 400 | DeviceTypeDrmValue DeviceType = 0 | 557 | DeviceTypeDrmValue DeviceType = 0 | ||
| 401 | 558 | ||||
| @@ -418,6 +575,12 @@ const ( | |||||
| 418 | 575 | ||||
| 419 | type SurfaceType int | 576 | type SurfaceType int | ||
| 420 | 577 | ||||
| 578 | + | var xSurfaceTypeGLibType func() types.GType | |||
| 579 | + | ||||
| 580 | + | func SurfaceTypeGLibType() types.GType { | |||
| 581 | + | return xSurfaceTypeGLibType() | |||
| 582 | + | } | |||
| 583 | + | ||||
| 421 | const ( | 584 | const ( | ||
| 422 | SurfaceTypeImageValue SurfaceType = 0 | 585 | SurfaceTypeImageValue SurfaceType = 0 | ||
| 423 | 586 | ||||
| @@ -472,6 +635,12 @@ const ( | |||||
| 472 | 635 | ||||
| 473 | type Format int | 636 | type Format int | ||
| 474 | 637 | ||||
| 638 | + | var xFormatGLibType func() types.GType | |||
| 639 | + | ||||
| 640 | + | func FormatGLibType() types.GType { | |||
| 641 | + | return xFormatGLibType() | |||
| 642 | + | } | |||
| 643 | + | ||||
| 475 | const ( | 644 | const ( | ||
| 476 | FormatInvalidValue Format = -1 | 645 | FormatInvalidValue Format = -1 | ||
| 477 | 646 | ||||
| @@ -490,6 +659,12 @@ const ( | |||||
| 490 | 659 | ||||
| 491 | type PatternType int | 660 | type PatternType int | ||
| 492 | 661 | ||||
| 662 | + | var xPatternTypeGLibType func() types.GType | |||
| 663 | + | ||||
| 664 | + | func PatternTypeGLibType() types.GType { | |||
| 665 | + | return xPatternTypeGLibType() | |||
| 666 | + | } | |||
| 667 | + | ||||
| 493 | const ( | 668 | const ( | ||
| 494 | PatternTypeSolidValue PatternType = 0 | 669 | PatternTypeSolidValue PatternType = 0 | ||
| 495 | 670 | ||||
| @@ -506,6 +681,12 @@ const ( | |||||
| 506 | 681 | ||||
| 507 | type Extend int | 682 | type Extend int | ||
| 508 | 683 | ||||
| 684 | + | var xExtendGLibType func() types.GType | |||
| 685 | + | ||||
| 686 | + | func ExtendGLibType() types.GType { | |||
| 687 | + | return xExtendGLibType() | |||
| 688 | + | } | |||
| 689 | + | ||||
| 509 | const ( | 690 | const ( | ||
| 510 | ExtendNoneValue Extend = 0 | 691 | ExtendNoneValue Extend = 0 | ||
| 511 | 692 | ||||
| @@ -518,6 +699,12 @@ const ( | |||||
| 518 | 699 | ||||
| 519 | type Filter int | 700 | type Filter int | ||
| 520 | 701 | ||||
| 702 | + | var xFilterGLibType func() types.GType | |||
| 703 | + | ||||
| 704 | + | func FilterGLibType() types.GType { | |||
| 705 | + | return xFilterGLibType() | |||
| 706 | + | } | |||
| 707 | + | ||||
| 521 | const ( | 708 | const ( | ||
| 522 | FilterFastValue Filter = 0 | 709 | FilterFastValue Filter = 0 | ||
| 523 | 710 | ||||
| @@ -534,6 +721,12 @@ const ( | |||||
| 534 | 721 | ||||
| 535 | type RegionOverlap int | 722 | type RegionOverlap int | ||
| 536 | 723 | ||||
| 724 | + | var xRegionOverlapGLibType func() types.GType | |||
| 725 | + | ||||
| 726 | + | func RegionOverlapGLibType() types.GType { | |||
| 727 | + | return xRegionOverlapGLibType() | |||
| 728 | + | } | |||
| 729 | + | ||||
| 537 | const ( | 730 | const ( | ||
| 538 | RegionOverlapInValue RegionOverlap = 0 | 731 | RegionOverlapInValue RegionOverlap = 0 | ||
| 539 | 732 | ||||
| @@ -555,6 +748,71 @@ func init() { | |||||
| 555 | if err != nil { | 748 | if err != nil { | ||
| 556 | panic(err) | 749 | panic(err) | ||
| 557 | } | 750 | } | ||
| 751 | + | ||||
| 752 | + | core.PuregoSafeRegister(&xStatusGLibType, lib, "cairo_gobject_status_get_type") | |||
| 753 | + | ||||
| 754 | + | core.PuregoSafeRegister(&xContentGLibType, lib, "cairo_gobject_content_get_type") | |||
| 755 | + | ||||
| 756 | + | core.PuregoSafeRegister(&xOperatorGLibType, lib, "cairo_gobject_operator_get_type") | |||
| 757 | + | ||||
| 758 | + | core.PuregoSafeRegister(&xAntialiasGLibType, lib, "cairo_gobject_antialias_get_type") | |||
| 759 | + | ||||
| 760 | + | core.PuregoSafeRegister(&xFillRuleGLibType, lib, "cairo_gobject_fill_rule_get_type") | |||
| 761 | + | ||||
| 762 | + | core.PuregoSafeRegister(&xLineCapGLibType, lib, "cairo_gobject_line_cap_get_type") | |||
| 763 | + | ||||
| 764 | + | core.PuregoSafeRegister(&xLineJoinGLibType, lib, "cairo_gobject_line_join_get_type") | |||
| 765 | + | ||||
| 766 | + | core.PuregoSafeRegister(&xTextClusterFlagsGLibType, lib, "cairo_gobject_text_cluster_flags_get_type") | |||
| 767 | + | ||||
| 768 | + | core.PuregoSafeRegister(&xFontSlantGLibType, lib, "cairo_gobject_font_slant_get_type") | |||
| 769 | + | ||||
| 770 | + | core.PuregoSafeRegister(&xFontWeightGLibType, lib, "cairo_gobject_font_weight_get_type") | |||
| 771 | + | ||||
| 772 | + | core.PuregoSafeRegister(&xSubpixelOrderGLibType, lib, "cairo_gobject_subpixel_order_get_type") | |||
| 773 | + | ||||
| 774 | + | core.PuregoSafeRegister(&xHintStyleGLibType, lib, "cairo_gobject_hint_style_get_type") | |||
| 775 | + | ||||
| 776 | + | core.PuregoSafeRegister(&xHintMetricsGLibType, lib, "cairo_gobject_hint_metrics_get_type") | |||
| 777 | + | ||||
| 778 | + | core.PuregoSafeRegister(&xFontTypeGLibType, lib, "cairo_gobject_font_type_get_type") | |||
| 779 | + | ||||
| 780 | + | core.PuregoSafeRegister(&xPathDataTypeGLibType, lib, "cairo_gobject_path_data_type_get_type") | |||
| 781 | + | ||||
| 782 | + | core.PuregoSafeRegister(&xDeviceTypeGLibType, lib, "cairo_gobject_device_type_get_type") | |||
| 783 | + | ||||
| 784 | + | core.PuregoSafeRegister(&xSurfaceTypeGLibType, lib, "cairo_gobject_surface_type_get_type") | |||
| 785 | + | ||||
| 786 | + | core.PuregoSafeRegister(&xFormatGLibType, lib, "cairo_gobject_format_get_type") | |||
| 787 | + | ||||
| 788 | + | core.PuregoSafeRegister(&xPatternTypeGLibType, lib, "cairo_gobject_pattern_type_get_type") | |||
| 789 | + | ||||
| 790 | + | core.PuregoSafeRegister(&xExtendGLibType, lib, "cairo_gobject_extend_get_type") | |||
| 791 | + | ||||
| 792 | + | core.PuregoSafeRegister(&xFilterGLibType, lib, "cairo_gobject_filter_get_type") | |||
| 793 | + | ||||
| 794 | + | core.PuregoSafeRegister(&xRegionOverlapGLibType, lib, "cairo_gobject_region_overlap_get_type") | |||
| 795 | + | ||||
| 558 | core.PuregoSafeRegister(&xImageSurfaceCreate, lib, "cairo_image_surface_create") | 796 | core.PuregoSafeRegister(&xImageSurfaceCreate, lib, "cairo_image_surface_create") | ||
| 559 | 797 | ||||
| 798 | + | core.PuregoSafeRegister(&xContextGLibType, lib, "cairo_gobject_context_get_type") | |||
| 799 | + | ||||
| 800 | + | core.PuregoSafeRegister(&xDeviceGLibType, lib, "cairo_gobject_device_get_type") | |||
| 801 | + | ||||
| 802 | + | core.PuregoSafeRegister(&xSurfaceGLibType, lib, "cairo_gobject_surface_get_type") | |||
| 803 | + | ||||
| 804 | + | core.PuregoSafeRegister(&xPatternGLibType, lib, "cairo_gobject_pattern_get_type") | |||
| 805 | + | ||||
| 806 | + | core.PuregoSafeRegister(&xRegionGLibType, lib, "cairo_gobject_region_get_type") | |||
| 807 | + | ||||
| 808 | + | core.PuregoSafeRegister(&xFontOptionsGLibType, lib, "cairo_gobject_font_options_get_type") | |||
| 809 | + | ||||
| 810 | + | core.PuregoSafeRegister(&xFontFaceGLibType, lib, "cairo_gobject_font_face_get_type") | |||
| 811 | + | ||||
| 812 | + | core.PuregoSafeRegister(&xScaledFontGLibType, lib, "cairo_gobject_scaled_font_get_type") | |||
| 813 | + | ||||
| 814 | + | core.PuregoSafeRegister(&xRectangleGLibType, lib, "cairo_gobject_rectangle_get_type") | |||
| 815 | + | ||||
| 816 | + | core.PuregoSafeRegister(&xRectangleIntGLibType, lib, "cairo_gobject_rectangle_int_get_type") | |||
| 817 | + | ||||
| 560 | } | 818 | } | ||
M v4/gdk/gdkapplaunchcontext.go +9 -0
| @@ -6,6 +6,7 @@ import ( | |||||
| 6 | "github.com/jwijenbergh/puregotk/internal/core" | 6 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 7 | "github.com/jwijenbergh/puregotk/v4/gio" | 7 | "github.com/jwijenbergh/puregotk/v4/gio" | ||
| 8 | "github.com/jwijenbergh/puregotk/v4/gobject" | 8 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 9 | ) | 10 | ) | ||
| 10 | 11 | ||||
| 11 | // `GdkAppLaunchContext` handles launching an application in a graphical context. | 12 | // `GdkAppLaunchContext` handles launching an application in a graphical context. | ||
| @@ -32,6 +33,12 @@ type AppLaunchContext struct { | |||||
| 32 | gio.AppLaunchContext | 33 | gio.AppLaunchContext | ||
| 33 | } | 34 | } | ||
| 34 | 35 | ||||
| 36 | + | var xAppLaunchContextGLibType func() types.GType | |||
| 37 | + | ||||
| 38 | + | func AppLaunchContextGLibType() types.GType { | |||
| 39 | + | return xAppLaunchContextGLibType() | |||
| 40 | + | } | |||
| 41 | + | ||||
| 35 | func AppLaunchContextNewFromInternalPtr(ptr uintptr) *AppLaunchContext { | 42 | func AppLaunchContextNewFromInternalPtr(ptr uintptr) *AppLaunchContext { | ||
| 36 | cls := &AppLaunchContext{} | 43 | cls := &AppLaunchContext{} | ||
| 37 | cls.Ptr = ptr | 44 | cls.Ptr = ptr | ||
| @@ -139,6 +146,8 @@ func init() { | |||||
| 139 | panic(err) | 146 | panic(err) | ||
| 140 | } | 147 | } | ||
| 141 | 148 | ||||
| 149 | + | core.PuregoSafeRegister(&xAppLaunchContextGLibType, lib, "gdk_app_launch_context_get_type") | |||
| 150 | + | ||||
| 142 | core.PuregoSafeRegister(&xAppLaunchContextGetDisplay, lib, "gdk_app_launch_context_get_display") | 151 | core.PuregoSafeRegister(&xAppLaunchContextGetDisplay, lib, "gdk_app_launch_context_get_display") | ||
| 143 | core.PuregoSafeRegister(&xAppLaunchContextSetDesktop, lib, "gdk_app_launch_context_set_desktop") | 152 | core.PuregoSafeRegister(&xAppLaunchContextSetDesktop, lib, "gdk_app_launch_context_set_desktop") | ||
| 144 | core.PuregoSafeRegister(&xAppLaunchContextSetIcon, lib, "gdk_app_launch_context_set_icon") | 153 | core.PuregoSafeRegister(&xAppLaunchContextSetIcon, lib, "gdk_app_launch_context_set_icon") | ||
M v4/gdk/gdkcairo.go +1 -0
| @@ -91,6 +91,7 @@ func init() { | |||||
| 91 | if err != nil { | 91 | if err != nil { | ||
| 92 | panic(err) | 92 | panic(err) | ||
| 93 | } | 93 | } | ||
| 94 | + | ||||
| 94 | core.PuregoSafeRegister(&xCairoDrawFromGl, lib, "gdk_cairo_draw_from_gl") | 95 | core.PuregoSafeRegister(&xCairoDrawFromGl, lib, "gdk_cairo_draw_from_gl") | ||
| 95 | core.PuregoSafeRegister(&xCairoRectangle, lib, "gdk_cairo_rectangle") | 96 | core.PuregoSafeRegister(&xCairoRectangle, lib, "gdk_cairo_rectangle") | ||
| 96 | core.PuregoSafeRegister(&xCairoRegion, lib, "gdk_cairo_region") | 97 | core.PuregoSafeRegister(&xCairoRegion, lib, "gdk_cairo_region") | ||
M v4/gdk/gdkcairocontext.go +9 -0
| @@ -5,6 +5,7 @@ import ( | |||||
| 5 | "github.com/jwijenbergh/purego" | 5 | "github.com/jwijenbergh/purego" | ||
| 6 | "github.com/jwijenbergh/puregotk/internal/core" | 6 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 7 | "github.com/jwijenbergh/puregotk/v4/cairo" | 7 | "github.com/jwijenbergh/puregotk/v4/cairo" | ||
| 8 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 8 | ) | 9 | ) | ||
| 9 | 10 | ||||
| 10 | // `GdkCairoContext` is an object representing the platform-specific | 11 | // `GdkCairoContext` is an object representing the platform-specific | ||
| @@ -17,6 +18,12 @@ type CairoContext struct { | |||||
| 17 | DrawContext | 18 | DrawContext | ||
| 18 | } | 19 | } | ||
| 19 | 20 | ||||
| 21 | + | var xCairoContextGLibType func() types.GType | |||
| 22 | + | ||||
| 23 | + | func CairoContextGLibType() types.GType { | |||
| 24 | + | return xCairoContextGLibType() | |||
| 25 | + | } | |||
| 26 | + | ||||
| 20 | func CairoContextNewFromInternalPtr(ptr uintptr) *CairoContext { | 27 | func CairoContextNewFromInternalPtr(ptr uintptr) *CairoContext { | ||
| 21 | cls := &CairoContext{} | 28 | cls := &CairoContext{} | ||
| 22 | cls.Ptr = ptr | 29 | cls.Ptr = ptr | ||
| @@ -53,6 +60,8 @@ func init() { | |||||
| 53 | panic(err) | 60 | panic(err) | ||
| 54 | } | 61 | } | ||
| 55 | 62 | ||||
| 63 | + | core.PuregoSafeRegister(&xCairoContextGLibType, lib, "gdk_cairo_context_get_type") | |||
| 64 | + | ||||
| 56 | core.PuregoSafeRegister(&xCairoContextCairoCreate, lib, "gdk_cairo_context_cairo_create") | 65 | core.PuregoSafeRegister(&xCairoContextCairoCreate, lib, "gdk_cairo_context_cairo_create") | ||
| 57 | 66 | ||||
| 58 | } | 67 | } | ||
M v4/gdk/gdkclipboard.go +8 -0
| @@ -33,6 +33,12 @@ type Clipboard struct { | |||||
| 33 | gobject.Object | 33 | gobject.Object | ||
| 34 | } | 34 | } | ||
| 35 | 35 | ||||
| 36 | + | var xClipboardGLibType func() types.GType | |||
| 37 | + | ||||
| 38 | + | func ClipboardGLibType() types.GType { | |||
| 39 | + | return xClipboardGLibType() | |||
| 40 | + | } | |||
| 41 | + | ||||
| 36 | func ClipboardNewFromInternalPtr(ptr uintptr) *Clipboard { | 42 | func ClipboardNewFromInternalPtr(ptr uintptr) *Clipboard { | ||
| 37 | cls := &Clipboard{} | 43 | cls := &Clipboard{} | ||
| 38 | cls.Ptr = ptr | 44 | cls.Ptr = ptr | ||
| @@ -389,6 +395,8 @@ func init() { | |||||
| 389 | panic(err) | 395 | panic(err) | ||
| 390 | } | 396 | } | ||
| 391 | 397 | ||||
| 398 | + | core.PuregoSafeRegister(&xClipboardGLibType, lib, "gdk_clipboard_get_type") | |||
| 399 | + | ||||
| 392 | core.PuregoSafeRegister(&xClipboardGetContent, lib, "gdk_clipboard_get_content") | 400 | core.PuregoSafeRegister(&xClipboardGetContent, lib, "gdk_clipboard_get_content") | ||
| 393 | core.PuregoSafeRegister(&xClipboardGetDisplay, lib, "gdk_clipboard_get_display") | 401 | core.PuregoSafeRegister(&xClipboardGetDisplay, lib, "gdk_clipboard_get_display") | ||
| 394 | core.PuregoSafeRegister(&xClipboardGetFormats, lib, "gdk_clipboard_get_formats") | 402 | core.PuregoSafeRegister(&xClipboardGetFormats, lib, "gdk_clipboard_get_formats") | ||
M v4/gdk/gdkcontentdeserializer.go +9 -0
| @@ -70,6 +70,12 @@ type ContentDeserializer struct { | |||||
| 70 | gobject.Object | 70 | gobject.Object | ||
| 71 | } | 71 | } | ||
| 72 | 72 | ||||
| 73 | + | var xContentDeserializerGLibType func() types.GType | |||
| 74 | + | ||||
| 75 | + | func ContentDeserializerGLibType() types.GType { | |||
| 76 | + | return xContentDeserializerGLibType() | |||
| 77 | + | } | |||
| 78 | + | ||||
| 73 | func ContentDeserializerNewFromInternalPtr(ptr uintptr) *ContentDeserializer { | 79 | func ContentDeserializerNewFromInternalPtr(ptr uintptr) *ContentDeserializer { | ||
| 74 | cls := &ContentDeserializer{} | 80 | cls := &ContentDeserializer{} | ||
| 75 | cls.Ptr = ptr | 81 | cls.Ptr = ptr | ||
| @@ -257,10 +263,13 @@ func init() { | |||||
| 257 | if err != nil { | 263 | if err != nil { | ||
| 258 | panic(err) | 264 | panic(err) | ||
| 259 | } | 265 | } | ||
| 266 | + | ||||
| 260 | core.PuregoSafeRegister(&xContentDeserializeAsync, lib, "gdk_content_deserialize_async") | 267 | core.PuregoSafeRegister(&xContentDeserializeAsync, lib, "gdk_content_deserialize_async") | ||
| 261 | core.PuregoSafeRegister(&xContentDeserializeFinish, lib, "gdk_content_deserialize_finish") | 268 | core.PuregoSafeRegister(&xContentDeserializeFinish, lib, "gdk_content_deserialize_finish") | ||
| 262 | core.PuregoSafeRegister(&xContentRegisterDeserializer, lib, "gdk_content_register_deserializer") | 269 | core.PuregoSafeRegister(&xContentRegisterDeserializer, lib, "gdk_content_register_deserializer") | ||
| 263 | 270 | ||||
| 271 | + | core.PuregoSafeRegister(&xContentDeserializerGLibType, lib, "gdk_content_deserializer_get_type") | |||
| 272 | + | ||||
| 264 | core.PuregoSafeRegister(&xContentDeserializerGetCancellable, lib, "gdk_content_deserializer_get_cancellable") | 273 | core.PuregoSafeRegister(&xContentDeserializerGetCancellable, lib, "gdk_content_deserializer_get_cancellable") | ||
| 265 | core.PuregoSafeRegister(&xContentDeserializerGetGtype, lib, "gdk_content_deserializer_get_gtype") | 274 | core.PuregoSafeRegister(&xContentDeserializerGetGtype, lib, "gdk_content_deserializer_get_gtype") | ||
| 266 | core.PuregoSafeRegister(&xContentDeserializerGetInputStream, lib, "gdk_content_deserializer_get_input_stream") | 275 | core.PuregoSafeRegister(&xContentDeserializerGetInputStream, lib, "gdk_content_deserializer_get_input_stream") | ||
M v4/gdk/gdkcontentformats.go +17 -0
| @@ -15,6 +15,12 @@ import ( | |||||
| 15 | type ContentFormatsBuilder struct { | 15 | type ContentFormatsBuilder struct { | ||
| 16 | } | 16 | } | ||
| 17 | 17 | ||||
| 18 | + | var xContentFormatsBuilderGLibType func() types.GType | |||
| 19 | + | ||||
| 20 | + | func ContentFormatsBuilderGLibType() types.GType { | |||
| 21 | + | return xContentFormatsBuilderGLibType() | |||
| 22 | + | } | |||
| 23 | + | ||||
| 18 | func (x *ContentFormatsBuilder) GoPointer() uintptr { | 24 | func (x *ContentFormatsBuilder) GoPointer() uintptr { | ||
| 19 | return uintptr(unsafe.Pointer(x)) | 25 | return uintptr(unsafe.Pointer(x)) | ||
| 20 | } | 26 | } | ||
| @@ -109,6 +115,12 @@ func (x *ContentFormatsBuilder) Unref() { | |||||
| 109 | type FileList struct { | 115 | type FileList struct { | ||
| 110 | } | 116 | } | ||
| 111 | 117 | ||||
| 118 | + | var xFileListGLibType func() types.GType | |||
| 119 | + | ||||
| 120 | + | func FileListGLibType() types.GType { | |||
| 121 | + | return xFileListGLibType() | |||
| 122 | + | } | |||
| 123 | + | ||||
| 112 | func (x *FileList) GoPointer() uintptr { | 124 | func (x *FileList) GoPointer() uintptr { | ||
| 113 | return uintptr(unsafe.Pointer(x)) | 125 | return uintptr(unsafe.Pointer(x)) | ||
| 114 | } | 126 | } | ||
| @@ -180,9 +192,12 @@ func init() { | |||||
| 180 | if err != nil { | 192 | if err != nil { | ||
| 181 | panic(err) | 193 | panic(err) | ||
| 182 | } | 194 | } | ||
| 195 | + | ||||
| 183 | core.PuregoSafeRegister(&xContentFormatsParse, lib, "gdk_content_formats_parse") | 196 | core.PuregoSafeRegister(&xContentFormatsParse, lib, "gdk_content_formats_parse") | ||
| 184 | core.PuregoSafeRegister(&xInternMimeType, lib, "gdk_intern_mime_type") | 197 | core.PuregoSafeRegister(&xInternMimeType, lib, "gdk_intern_mime_type") | ||
| 185 | 198 | ||||
| 199 | + | core.PuregoSafeRegister(&xContentFormatsBuilderGLibType, lib, "gdk_content_formats_builder_get_type") | |||
| 200 | + | ||||
| 186 | core.PuregoSafeRegister(&xNewContentFormatsBuilder, lib, "gdk_content_formats_builder_new") | 201 | core.PuregoSafeRegister(&xNewContentFormatsBuilder, lib, "gdk_content_formats_builder_new") | ||
| 187 | 202 | ||||
| 188 | core.PuregoSafeRegister(&xContentFormatsBuilderAddFormats, lib, "gdk_content_formats_builder_add_formats") | 203 | core.PuregoSafeRegister(&xContentFormatsBuilderAddFormats, lib, "gdk_content_formats_builder_add_formats") | ||
| @@ -193,6 +208,8 @@ func init() { | |||||
| 193 | core.PuregoSafeRegister(&xContentFormatsBuilderToFormats, lib, "gdk_content_formats_builder_to_formats") | 208 | core.PuregoSafeRegister(&xContentFormatsBuilderToFormats, lib, "gdk_content_formats_builder_to_formats") | ||
| 194 | core.PuregoSafeRegister(&xContentFormatsBuilderUnref, lib, "gdk_content_formats_builder_unref") | 209 | core.PuregoSafeRegister(&xContentFormatsBuilderUnref, lib, "gdk_content_formats_builder_unref") | ||
| 195 | 210 | ||||
| 211 | + | core.PuregoSafeRegister(&xFileListGLibType, lib, "gdk_file_list_get_type") | |||
| 212 | + | ||||
| 196 | core.PuregoSafeRegister(&xNewFileListFromArray, lib, "gdk_file_list_new_from_array") | 213 | core.PuregoSafeRegister(&xNewFileListFromArray, lib, "gdk_file_list_new_from_array") | ||
| 197 | core.PuregoSafeRegister(&xNewFileListFromList, lib, "gdk_file_list_new_from_list") | 214 | core.PuregoSafeRegister(&xNewFileListFromList, lib, "gdk_file_list_new_from_list") | ||
| 198 | 215 | ||||
M v4/gdk/gdkcontentprovider.go +8 -0
| @@ -36,6 +36,12 @@ type ContentProvider struct { | |||||
| 36 | gobject.Object | 36 | gobject.Object | ||
| 37 | } | 37 | } | ||
| 38 | 38 | ||||
| 39 | + | var xContentProviderGLibType func() types.GType | |||
| 40 | + | ||||
| 41 | + | func ContentProviderGLibType() types.GType { | |||
| 42 | + | return xContentProviderGLibType() | |||
| 43 | + | } | |||
| 44 | + | ||||
| 39 | func ContentProviderNewFromInternalPtr(ptr uintptr) *ContentProvider { | 45 | func ContentProviderNewFromInternalPtr(ptr uintptr) *ContentProvider { | ||
| 40 | cls := &ContentProvider{} | 46 | cls := &ContentProvider{} | ||
| 41 | cls.Ptr = ptr | 47 | cls.Ptr = ptr | ||
| @@ -249,6 +255,8 @@ func init() { | |||||
| 249 | panic(err) | 255 | panic(err) | ||
| 250 | } | 256 | } | ||
| 251 | 257 | ||||
| 258 | + | core.PuregoSafeRegister(&xContentProviderGLibType, lib, "gdk_content_provider_get_type") | |||
| 259 | + | ||||
| 252 | core.PuregoSafeRegister(&xNewContentProviderForBytes, lib, "gdk_content_provider_new_for_bytes") | 260 | core.PuregoSafeRegister(&xNewContentProviderForBytes, lib, "gdk_content_provider_new_for_bytes") | ||
| 253 | core.PuregoSafeRegister(&xNewContentProviderForValue, lib, "gdk_content_provider_new_for_value") | 261 | core.PuregoSafeRegister(&xNewContentProviderForValue, lib, "gdk_content_provider_new_for_value") | ||
| 254 | core.PuregoSafeRegister(&xNewContentProviderTyped, lib, "gdk_content_provider_new_typed") | 262 | core.PuregoSafeRegister(&xNewContentProviderTyped, lib, "gdk_content_provider_new_typed") | ||
M v4/gdk/gdkcontentserializer.go +9 -0
| @@ -71,6 +71,12 @@ type ContentSerializer struct { | |||||
| 71 | gobject.Object | 71 | gobject.Object | ||
| 72 | } | 72 | } | ||
| 73 | 73 | ||||
| 74 | + | var xContentSerializerGLibType func() types.GType | |||
| 75 | + | ||||
| 76 | + | func ContentSerializerGLibType() types.GType { | |||
| 77 | + | return xContentSerializerGLibType() | |||
| 78 | + | } | |||
| 79 | + | ||||
| 74 | func ContentSerializerNewFromInternalPtr(ptr uintptr) *ContentSerializer { | 80 | func ContentSerializerNewFromInternalPtr(ptr uintptr) *ContentSerializer { | ||
| 75 | cls := &ContentSerializer{} | 81 | cls := &ContentSerializer{} | ||
| 76 | cls.Ptr = ptr | 82 | cls.Ptr = ptr | ||
| @@ -258,10 +264,13 @@ func init() { | |||||
| 258 | if err != nil { | 264 | if err != nil { | ||
| 259 | panic(err) | 265 | panic(err) | ||
| 260 | } | 266 | } | ||
| 267 | + | ||||
| 261 | core.PuregoSafeRegister(&xContentRegisterSerializer, lib, "gdk_content_register_serializer") | 268 | core.PuregoSafeRegister(&xContentRegisterSerializer, lib, "gdk_content_register_serializer") | ||
| 262 | core.PuregoSafeRegister(&xContentSerializeAsync, lib, "gdk_content_serialize_async") | 269 | core.PuregoSafeRegister(&xContentSerializeAsync, lib, "gdk_content_serialize_async") | ||
| 263 | core.PuregoSafeRegister(&xContentSerializeFinish, lib, "gdk_content_serialize_finish") | 270 | core.PuregoSafeRegister(&xContentSerializeFinish, lib, "gdk_content_serialize_finish") | ||
| 264 | 271 | ||||
| 272 | + | core.PuregoSafeRegister(&xContentSerializerGLibType, lib, "gdk_content_serializer_get_type") | |||
| 273 | + | ||||
| 265 | core.PuregoSafeRegister(&xContentSerializerGetCancellable, lib, "gdk_content_serializer_get_cancellable") | 274 | core.PuregoSafeRegister(&xContentSerializerGetCancellable, lib, "gdk_content_serializer_get_cancellable") | ||
| 266 | core.PuregoSafeRegister(&xContentSerializerGetGtype, lib, "gdk_content_serializer_get_gtype") | 275 | core.PuregoSafeRegister(&xContentSerializerGetGtype, lib, "gdk_content_serializer_get_gtype") | ||
| 267 | core.PuregoSafeRegister(&xContentSerializerGetMimeType, lib, "gdk_content_serializer_get_mime_type") | 276 | core.PuregoSafeRegister(&xContentSerializerGetMimeType, lib, "gdk_content_serializer_get_mime_type") | ||
M v4/gdk/gdkcursor.go +9 -0
| @@ -5,6 +5,7 @@ import ( | |||||
| 5 | "github.com/jwijenbergh/purego" | 5 | "github.com/jwijenbergh/purego" | ||
| 6 | "github.com/jwijenbergh/puregotk/internal/core" | 6 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 7 | "github.com/jwijenbergh/puregotk/v4/gobject" | 7 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 8 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 8 | ) | 9 | ) | ||
| 9 | 10 | ||||
| 10 | // `GdkCursor` is used to create and destroy cursors. | 11 | // `GdkCursor` is used to create and destroy cursors. | ||
| @@ -44,6 +45,12 @@ type Cursor struct { | |||||
| 44 | gobject.Object | 45 | gobject.Object | ||
| 45 | } | 46 | } | ||
| 46 | 47 | ||||
| 48 | + | var xCursorGLibType func() types.GType | |||
| 49 | + | ||||
| 50 | + | func CursorGLibType() types.GType { | |||
| 51 | + | return xCursorGLibType() | |||
| 52 | + | } | |||
| 53 | + | ||||
| 47 | func CursorNewFromInternalPtr(ptr uintptr) *Cursor { | 54 | func CursorNewFromInternalPtr(ptr uintptr) *Cursor { | ||
| 48 | cls := &Cursor{} | 55 | cls := &Cursor{} | ||
| 49 | cls.Ptr = ptr | 56 | cls.Ptr = ptr | ||
| @@ -195,6 +202,8 @@ func init() { | |||||
| 195 | panic(err) | 202 | panic(err) | ||
| 196 | } | 203 | } | ||
| 197 | 204 | ||||
| 205 | + | core.PuregoSafeRegister(&xCursorGLibType, lib, "gdk_cursor_get_type") | |||
| 206 | + | ||||
| 198 | core.PuregoSafeRegister(&xNewCursorFromName, lib, "gdk_cursor_new_from_name") | 207 | core.PuregoSafeRegister(&xNewCursorFromName, lib, "gdk_cursor_new_from_name") | ||
| 199 | core.PuregoSafeRegister(&xNewCursorFromTexture, lib, "gdk_cursor_new_from_texture") | 208 | core.PuregoSafeRegister(&xNewCursorFromTexture, lib, "gdk_cursor_new_from_texture") | ||
| 200 | 209 | ||||
M v4/gdk/gdkdevice.go +17 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | "github.com/jwijenbergh/puregotk/v4/pango" | 12 | "github.com/jwijenbergh/puregotk/v4/pango" | ||
| 12 | ) | 13 | ) | ||
| 13 | 14 | ||||
| @@ -32,6 +33,12 @@ func (x *TimeCoord) GoPointer() uintptr { | |||||
| 32 | // An enumeration describing the type of an input device in general terms. | 33 | // An enumeration describing the type of an input device in general terms. | ||
| 33 | type InputSource int | 34 | type InputSource int | ||
| 34 | 35 | ||||
| 36 | + | var xInputSourceGLibType func() types.GType | |||
| 37 | + | ||||
| 38 | + | func InputSourceGLibType() types.GType { | |||
| 39 | + | return xInputSourceGLibType() | |||
| 40 | + | } | |||
| 41 | + | ||||
| 35 | const ( | 42 | const ( | ||
| 36 | 43 | ||||
| 37 | // the device is a mouse. (This will be reported for the core | 44 | // the device is a mouse. (This will be reported for the core | ||
| @@ -63,6 +70,12 @@ type Device struct { | |||||
| 63 | gobject.Object | 70 | gobject.Object | ||
| 64 | } | 71 | } | ||
| 65 | 72 | ||||
| 73 | + | var xDeviceGLibType func() types.GType | |||
| 74 | + | ||||
| 75 | + | func DeviceGLibType() types.GType { | |||
| 76 | + | return xDeviceGLibType() | |||
| 77 | + | } | |||
| 78 | + | ||||
| 66 | func DeviceNewFromInternalPtr(ptr uintptr) *Device { | 79 | func DeviceNewFromInternalPtr(ptr uintptr) *Device { | ||
| 67 | cls := &Device{} | 80 | cls := &Device{} | ||
| 68 | cls.Ptr = ptr | 81 | cls.Ptr = ptr | ||
| @@ -373,6 +386,10 @@ func init() { | |||||
| 373 | panic(err) | 386 | panic(err) | ||
| 374 | } | 387 | } | ||
| 375 | 388 | ||||
| 389 | + | core.PuregoSafeRegister(&xInputSourceGLibType, lib, "gdk_input_source_get_type") | |||
| 390 | + | ||||
| 391 | + | core.PuregoSafeRegister(&xDeviceGLibType, lib, "gdk_device_get_type") | |||
| 392 | + | ||||
| 376 | core.PuregoSafeRegister(&xDeviceGetCapsLockState, lib, "gdk_device_get_caps_lock_state") | 393 | core.PuregoSafeRegister(&xDeviceGetCapsLockState, lib, "gdk_device_get_caps_lock_state") | ||
| 377 | core.PuregoSafeRegister(&xDeviceGetDeviceTool, lib, "gdk_device_get_device_tool") | 394 | core.PuregoSafeRegister(&xDeviceGetDeviceTool, lib, "gdk_device_get_device_tool") | ||
| 378 | core.PuregoSafeRegister(&xDeviceGetDirection, lib, "gdk_device_get_direction") | 395 | core.PuregoSafeRegister(&xDeviceGetDirection, lib, "gdk_device_get_direction") | ||
M v4/gdk/gdkdevicepad.go +18 -0
| @@ -6,6 +6,7 @@ import ( | |||||
| 6 | 6 | ||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 9 | ) | 10 | ) | ||
| 10 | 11 | ||||
| 11 | type DevicePadInterface struct { | 12 | type DevicePadInterface struct { | ||
| @@ -40,6 +41,13 @@ type DevicePad interface { | |||||
| 40 | GetNFeatures(FeatureVar DevicePadFeature) int | 41 | GetNFeatures(FeatureVar DevicePadFeature) int | ||
| 41 | GetNGroups() int | 42 | GetNGroups() int | ||
| 42 | } | 43 | } | ||
| 44 | + | ||||
| 45 | + | var xDevicePadGLibType func() types.GType | |||
| 46 | + | ||||
| 47 | + | func DevicePadGLibType() types.GType { | |||
| 48 | + | return xDevicePadGLibType() | |||
| 49 | + | } | |||
| 50 | + | ||||
| 43 | type DevicePadBase struct { | 51 | type DevicePadBase struct { | ||
| 44 | Ptr uintptr | 52 | Ptr uintptr | ||
| 45 | } | 53 | } | ||
| @@ -94,6 +102,12 @@ var XGdkDevicePadGetNGroups func(uintptr) int | |||||
| 94 | // A pad feature. | 102 | // A pad feature. | ||
| 95 | type DevicePadFeature int | 103 | type DevicePadFeature int | ||
| 96 | 104 | ||||
| 105 | + | var xDevicePadFeatureGLibType func() types.GType | |||
| 106 | + | ||||
| 107 | + | func DevicePadFeatureGLibType() types.GType { | |||
| 108 | + | return xDevicePadFeatureGLibType() | |||
| 109 | + | } | |||
| 110 | + | ||||
| 97 | const ( | 111 | const ( | ||
| 98 | 112 | ||||
| 99 | // a button | 113 | // a button | ||
| @@ -110,6 +124,10 @@ func init() { | |||||
| 110 | panic(err) | 124 | panic(err) | ||
| 111 | } | 125 | } | ||
| 112 | 126 | ||||
| 127 | + | core.PuregoSafeRegister(&xDevicePadFeatureGLibType, lib, "gdk_device_pad_feature_get_type") | |||
| 128 | + | ||||
| 129 | + | core.PuregoSafeRegister(&xDevicePadGLibType, lib, "gdk_device_pad_get_type") | |||
| 130 | + | ||||
| 113 | core.PuregoSafeRegister(&XGdkDevicePadGetFeatureGroup, lib, "gdk_device_pad_get_feature_group") | 131 | core.PuregoSafeRegister(&XGdkDevicePadGetFeatureGroup, lib, "gdk_device_pad_get_feature_group") | ||
| 114 | core.PuregoSafeRegister(&XGdkDevicePadGetGroupNModes, lib, "gdk_device_pad_get_group_n_modes") | 132 | core.PuregoSafeRegister(&XGdkDevicePadGetGroupNModes, lib, "gdk_device_pad_get_group_n_modes") | ||
| 115 | core.PuregoSafeRegister(&XGdkDevicePadGetNFeatures, lib, "gdk_device_pad_get_n_features") | 133 | core.PuregoSafeRegister(&XGdkDevicePadGetNFeatures, lib, "gdk_device_pad_get_n_features") | ||
M v4/gdk/gdkdevicetool.go +17 -0
| @@ -5,12 +5,19 @@ import ( | |||||
| 5 | "github.com/jwijenbergh/purego" | 5 | "github.com/jwijenbergh/purego" | ||
| 6 | "github.com/jwijenbergh/puregotk/internal/core" | 6 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 7 | "github.com/jwijenbergh/puregotk/v4/gobject" | 7 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 8 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 8 | ) | 9 | ) | ||
| 9 | 10 | ||||
| 10 | // Indicates the specific type of tool being used being a tablet. Such as an | 11 | // Indicates the specific type of tool being used being a tablet. Such as an | ||
| 11 | // airbrush, pencil, etc. | 12 | // airbrush, pencil, etc. | ||
| 12 | type DeviceToolType int | 13 | type DeviceToolType int | ||
| 13 | 14 | ||||
| 15 | + | var xDeviceToolTypeGLibType func() types.GType | |||
| 16 | + | ||||
| 17 | + | func DeviceToolTypeGLibType() types.GType { | |||
| 18 | + | return xDeviceToolTypeGLibType() | |||
| 19 | + | } | |||
| 20 | + | ||||
| 14 | const ( | 21 | const ( | ||
| 15 | 22 | ||||
| 16 | // Tool is of an unknown type. | 23 | // Tool is of an unknown type. | ||
| @@ -36,6 +43,12 @@ type DeviceTool struct { | |||||
| 36 | gobject.Object | 43 | gobject.Object | ||
| 37 | } | 44 | } | ||
| 38 | 45 | ||||
| 46 | + | var xDeviceToolGLibType func() types.GType | |||
| 47 | + | ||||
| 48 | + | func DeviceToolGLibType() types.GType { | |||
| 49 | + | return xDeviceToolGLibType() | |||
| 50 | + | } | |||
| 51 | + | ||||
| 39 | func DeviceToolNewFromInternalPtr(ptr uintptr) *DeviceTool { | 52 | func DeviceToolNewFromInternalPtr(ptr uintptr) *DeviceTool { | ||
| 40 | cls := &DeviceTool{} | 53 | cls := &DeviceTool{} | ||
| 41 | cls.Ptr = ptr | 54 | cls.Ptr = ptr | ||
| @@ -105,6 +118,10 @@ func init() { | |||||
| 105 | panic(err) | 118 | panic(err) | ||
| 106 | } | 119 | } | ||
| 107 | 120 | ||||
| 121 | + | core.PuregoSafeRegister(&xDeviceToolTypeGLibType, lib, "gdk_device_tool_type_get_type") | |||
| 122 | + | ||||
| 123 | + | core.PuregoSafeRegister(&xDeviceToolGLibType, lib, "gdk_device_tool_get_type") | |||
| 124 | + | ||||
| 108 | core.PuregoSafeRegister(&xDeviceToolGetAxes, lib, "gdk_device_tool_get_axes") | 125 | core.PuregoSafeRegister(&xDeviceToolGetAxes, lib, "gdk_device_tool_get_axes") | ||
| 109 | core.PuregoSafeRegister(&xDeviceToolGetHardwareId, lib, "gdk_device_tool_get_hardware_id") | 126 | core.PuregoSafeRegister(&xDeviceToolGetHardwareId, lib, "gdk_device_tool_get_hardware_id") | ||
| 110 | core.PuregoSafeRegister(&xDeviceToolGetSerial, lib, "gdk_device_tool_get_serial") | 127 | core.PuregoSafeRegister(&xDeviceToolGetSerial, lib, "gdk_device_tool_get_serial") | ||
M v4/gdk/gdkdisplay.go +9 -0
| @@ -9,6 +9,7 @@ import ( | |||||
| 9 | "github.com/jwijenbergh/puregotk/v4/gio" | 9 | "github.com/jwijenbergh/puregotk/v4/gio" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/glib" | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 12 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 12 | ) | 13 | ) | ||
| 13 | 14 | ||||
| 14 | // `GdkDisplay` objects are the GDK representation of a workstation. | 15 | // `GdkDisplay` objects are the GDK representation of a workstation. | ||
| @@ -29,6 +30,12 @@ type Display struct { | |||||
| 29 | gobject.Object | 30 | gobject.Object | ||
| 30 | } | 31 | } | ||
| 31 | 32 | ||||
| 33 | + | var xDisplayGLibType func() types.GType | |||
| 34 | + | ||||
| 35 | + | func DisplayGLibType() types.GType { | |||
| 36 | + | return xDisplayGLibType() | |||
| 37 | + | } | |||
| 38 | + | ||||
| 32 | func DisplayNewFromInternalPtr(ptr uintptr) *Display { | 39 | func DisplayNewFromInternalPtr(ptr uintptr) *Display { | ||
| 33 | cls := &Display{} | 40 | cls := &Display{} | ||
| 34 | cls.Ptr = ptr | 41 | cls.Ptr = ptr | ||
| @@ -621,6 +628,8 @@ func init() { | |||||
| 621 | panic(err) | 628 | panic(err) | ||
| 622 | } | 629 | } | ||
| 623 | 630 | ||||
| 631 | + | core.PuregoSafeRegister(&xDisplayGLibType, lib, "gdk_display_get_type") | |||
| 632 | + | ||||
| 624 | core.PuregoSafeRegister(&xDisplayBeep, lib, "gdk_display_beep") | 633 | core.PuregoSafeRegister(&xDisplayBeep, lib, "gdk_display_beep") | ||
| 625 | core.PuregoSafeRegister(&xDisplayClose, lib, "gdk_display_close") | 634 | core.PuregoSafeRegister(&xDisplayClose, lib, "gdk_display_close") | ||
| 626 | core.PuregoSafeRegister(&xDisplayCreateGlContext, lib, "gdk_display_create_gl_context") | 635 | core.PuregoSafeRegister(&xDisplayCreateGlContext, lib, "gdk_display_create_gl_context") | ||
M v4/gdk/gdkdisplaymanager.go +10 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | var xSetAllowedBackends func(string) | 14 | var xSetAllowedBackends func(string) | ||
| @@ -103,6 +104,12 @@ type DisplayManager struct { | |||||
| 103 | gobject.Object | 104 | gobject.Object | ||
| 104 | } | 105 | } | ||
| 105 | 106 | ||||
| 107 | + | var xDisplayManagerGLibType func() types.GType | |||
| 108 | + | ||||
| 109 | + | func DisplayManagerGLibType() types.GType { | |||
| 110 | + | return xDisplayManagerGLibType() | |||
| 111 | + | } | |||
| 112 | + | ||||
| 106 | func DisplayManagerNewFromInternalPtr(ptr uintptr) *DisplayManager { | 113 | func DisplayManagerNewFromInternalPtr(ptr uintptr) *DisplayManager { | ||
| 107 | cls := &DisplayManager{} | 114 | cls := &DisplayManager{} | ||
| 108 | cls.Ptr = ptr | 115 | cls.Ptr = ptr | ||
| @@ -219,8 +226,11 @@ func init() { | |||||
| 219 | if err != nil { | 226 | if err != nil { | ||
| 220 | panic(err) | 227 | panic(err) | ||
| 221 | } | 228 | } | ||
| 229 | + | ||||
| 222 | core.PuregoSafeRegister(&xSetAllowedBackends, lib, "gdk_set_allowed_backends") | 230 | core.PuregoSafeRegister(&xSetAllowedBackends, lib, "gdk_set_allowed_backends") | ||
| 223 | 231 | ||||
| 232 | + | core.PuregoSafeRegister(&xDisplayManagerGLibType, lib, "gdk_display_manager_get_type") | |||
| 233 | + | ||||
| 224 | core.PuregoSafeRegister(&xDisplayManagerGetDefaultDisplay, lib, "gdk_display_manager_get_default_display") | 234 | core.PuregoSafeRegister(&xDisplayManagerGetDefaultDisplay, lib, "gdk_display_manager_get_default_display") | ||
| 225 | core.PuregoSafeRegister(&xDisplayManagerListDisplays, lib, "gdk_display_manager_list_displays") | 235 | core.PuregoSafeRegister(&xDisplayManagerListDisplays, lib, "gdk_display_manager_list_displays") | ||
| 226 | core.PuregoSafeRegister(&xDisplayManagerOpenDisplay, lib, "gdk_display_manager_open_display") | 236 | core.PuregoSafeRegister(&xDisplayManagerOpenDisplay, lib, "gdk_display_manager_open_display") | ||
M v4/gdk/gdkdrag.go +18 -0
| @@ -8,11 +8,18 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | // Used in `GdkDrag` to the reason of a cancelled DND operation. | 14 | // Used in `GdkDrag` to the reason of a cancelled DND operation. | ||
| 14 | type DragCancelReason int | 15 | type DragCancelReason int | ||
| 15 | 16 | ||||
| 17 | + | var xDragCancelReasonGLibType func() types.GType | |||
| 18 | + | ||||
| 19 | + | func DragCancelReasonGLibType() types.GType { | |||
| 20 | + | return xDragCancelReasonGLibType() | |||
| 21 | + | } | |||
| 22 | + | ||||
| 16 | const ( | 23 | const ( | ||
| 17 | 24 | ||||
| 18 | // There is no suitable drop target. | 25 | // There is no suitable drop target. | ||
| @@ -50,6 +57,12 @@ type Drag struct { | |||||
| 50 | gobject.Object | 57 | gobject.Object | ||
| 51 | } | 58 | } | ||
| 52 | 59 | ||||
| 60 | + | var xDragGLibType func() types.GType | |||
| 61 | + | ||||
| 62 | + | func DragGLibType() types.GType { | |||
| 63 | + | return xDragGLibType() | |||
| 64 | + | } | |||
| 65 | + | ||||
| 53 | func DragNewFromInternalPtr(ptr uintptr) *Drag { | 66 | func DragNewFromInternalPtr(ptr uintptr) *Drag { | ||
| 54 | cls := &Drag{} | 67 | cls := &Drag{} | ||
| 55 | cls.Ptr = ptr | 68 | cls.Ptr = ptr | ||
| @@ -309,8 +322,13 @@ func init() { | |||||
| 309 | if err != nil { | 322 | if err != nil { | ||
| 310 | panic(err) | 323 | panic(err) | ||
| 311 | } | 324 | } | ||
| 325 | + | ||||
| 326 | + | core.PuregoSafeRegister(&xDragCancelReasonGLibType, lib, "gdk_drag_cancel_reason_get_type") | |||
| 327 | + | ||||
| 312 | core.PuregoSafeRegister(&xDragActionIsUnique, lib, "gdk_drag_action_is_unique") | 328 | core.PuregoSafeRegister(&xDragActionIsUnique, lib, "gdk_drag_action_is_unique") | ||
| 313 | 329 | ||||
| 330 | + | core.PuregoSafeRegister(&xDragGLibType, lib, "gdk_drag_get_type") | |||
| 331 | + | ||||
| 314 | core.PuregoSafeRegister(&xDragDropDone, lib, "gdk_drag_drop_done") | 332 | core.PuregoSafeRegister(&xDragDropDone, lib, "gdk_drag_drop_done") | ||
| 315 | core.PuregoSafeRegister(&xDragGetActions, lib, "gdk_drag_get_actions") | 333 | core.PuregoSafeRegister(&xDragGetActions, lib, "gdk_drag_get_actions") | ||
| 316 | core.PuregoSafeRegister(&xDragGetContent, lib, "gdk_drag_get_content") | 334 | core.PuregoSafeRegister(&xDragGetContent, lib, "gdk_drag_get_content") | ||
M v4/gdk/gdkdragsurface.go +10 -0
| @@ -6,6 +6,7 @@ import ( | |||||
| 6 | 6 | ||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 9 | ) | 10 | ) | ||
| 10 | 11 | ||||
| 11 | // The `GdkDragSurfaceInterface` implementation is private to GDK. | 12 | // The `GdkDragSurfaceInterface` implementation is private to GDK. | ||
| @@ -22,6 +23,13 @@ type DragSurface interface { | |||||
| 22 | SetGoPointer(uintptr) | 23 | SetGoPointer(uintptr) | ||
| 23 | Present(WidthVar int, HeightVar int) bool | 24 | Present(WidthVar int, HeightVar int) bool | ||
| 24 | } | 25 | } | ||
| 26 | + | ||||
| 27 | + | var xDragSurfaceGLibType func() types.GType | |||
| 28 | + | ||||
| 29 | + | func DragSurfaceGLibType() types.GType { | |||
| 30 | + | return xDragSurfaceGLibType() | |||
| 31 | + | } | |||
| 32 | + | ||||
| 25 | type DragSurfaceBase struct { | 33 | type DragSurfaceBase struct { | ||
| 26 | Ptr uintptr | 34 | Ptr uintptr | ||
| 27 | } | 35 | } | ||
| @@ -49,6 +57,8 @@ func init() { | |||||
| 49 | panic(err) | 57 | panic(err) | ||
| 50 | } | 58 | } | ||
| 51 | 59 | ||||
| 60 | + | core.PuregoSafeRegister(&xDragSurfaceGLibType, lib, "gdk_drag_surface_get_type") | |||
| 61 | + | ||||
| 52 | core.PuregoSafeRegister(&XGdkDragSurfacePresent, lib, "gdk_drag_surface_present") | 62 | core.PuregoSafeRegister(&XGdkDragSurfacePresent, lib, "gdk_drag_surface_present") | ||
| 53 | 63 | ||||
| 54 | } | 64 | } | ||
M v4/gdk/gdkdrawcontext.go +9 -0
| @@ -6,6 +6,7 @@ import ( | |||||
| 6 | "github.com/jwijenbergh/puregotk/internal/core" | 6 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 7 | "github.com/jwijenbergh/puregotk/v4/cairo" | 7 | "github.com/jwijenbergh/puregotk/v4/cairo" | ||
| 8 | "github.com/jwijenbergh/puregotk/v4/gobject" | 8 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 9 | ) | 10 | ) | ||
| 10 | 11 | ||||
| 11 | // Base class for objects implementing different rendering methods. | 12 | // Base class for objects implementing different rendering methods. | ||
| @@ -21,6 +22,12 @@ type DrawContext struct { | |||||
| 21 | gobject.Object | 22 | gobject.Object | ||
| 22 | } | 23 | } | ||
| 23 | 24 | ||||
| 25 | + | var xDrawContextGLibType func() types.GType | |||
| 26 | + | ||||
| 27 | + | func DrawContextGLibType() types.GType { | |||
| 28 | + | return xDrawContextGLibType() | |||
| 29 | + | } | |||
| 30 | + | ||||
| 24 | func DrawContextNewFromInternalPtr(ptr uintptr) *DrawContext { | 31 | func DrawContextNewFromInternalPtr(ptr uintptr) *DrawContext { | ||
| 25 | cls := &DrawContext{} | 32 | cls := &DrawContext{} | ||
| 26 | cls.Ptr = ptr | 33 | cls.Ptr = ptr | ||
| @@ -152,6 +159,8 @@ func init() { | |||||
| 152 | panic(err) | 159 | panic(err) | ||
| 153 | } | 160 | } | ||
| 154 | 161 | ||||
| 162 | + | core.PuregoSafeRegister(&xDrawContextGLibType, lib, "gdk_draw_context_get_type") | |||
| 163 | + | ||||
| 155 | core.PuregoSafeRegister(&xDrawContextBeginFrame, lib, "gdk_draw_context_begin_frame") | 164 | core.PuregoSafeRegister(&xDrawContextBeginFrame, lib, "gdk_draw_context_begin_frame") | ||
| 156 | core.PuregoSafeRegister(&xDrawContextEndFrame, lib, "gdk_draw_context_end_frame") | 165 | core.PuregoSafeRegister(&xDrawContextEndFrame, lib, "gdk_draw_context_end_frame") | ||
| 157 | core.PuregoSafeRegister(&xDrawContextGetDisplay, lib, "gdk_draw_context_get_display") | 166 | core.PuregoSafeRegister(&xDrawContextGetDisplay, lib, "gdk_draw_context_get_display") | ||
M v4/gdk/gdkdrop.go +8 -0
| @@ -28,6 +28,12 @@ type Drop struct { | |||||
| 28 | gobject.Object | 28 | gobject.Object | ||
| 29 | } | 29 | } | ||
| 30 | 30 | ||||
| 31 | + | var xDropGLibType func() types.GType | |||
| 32 | + | ||||
| 33 | + | func DropGLibType() types.GType { | |||
| 34 | + | return xDropGLibType() | |||
| 35 | + | } | |||
| 36 | + | ||||
| 31 | func DropNewFromInternalPtr(ptr uintptr) *Drop { | 37 | func DropNewFromInternalPtr(ptr uintptr) *Drop { | ||
| 32 | cls := &Drop{} | 38 | cls := &Drop{} | ||
| 33 | cls.Ptr = ptr | 39 | cls.Ptr = ptr | ||
| @@ -256,6 +262,8 @@ func init() { | |||||
| 256 | panic(err) | 262 | panic(err) | ||
| 257 | } | 263 | } | ||
| 258 | 264 | ||||
| 265 | + | core.PuregoSafeRegister(&xDropGLibType, lib, "gdk_drop_get_type") | |||
| 266 | + | ||||
| 259 | core.PuregoSafeRegister(&xDropFinish, lib, "gdk_drop_finish") | 267 | core.PuregoSafeRegister(&xDropFinish, lib, "gdk_drop_finish") | ||
| 260 | core.PuregoSafeRegister(&xDropGetActions, lib, "gdk_drop_get_actions") | 268 | core.PuregoSafeRegister(&xDropGetActions, lib, "gdk_drop_get_actions") | ||
| 261 | core.PuregoSafeRegister(&xDropGetDevice, lib, "gdk_drop_get_device") | 269 | core.PuregoSafeRegister(&xDropGetDevice, lib, "gdk_drop_get_device") | ||
M v4/gdk/gdkenums.go +50 -0
| @@ -1,6 +1,8 @@ | |||||
| 1 | // Package gdk was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT | 1 | // Package gdk was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT | ||
| 2 | package gdk | 2 | package gdk | ||
| 3 | 3 | ||||
| 4 | + | import "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 5 | + | ||||
| 4 | const ( | 6 | const ( | ||
| 5 | // Defines all possible DND actions. | 7 | // Defines all possible DND actions. | ||
| 6 | // | 8 | // | ||
| @@ -14,6 +16,12 @@ const ( | |||||
| 14 | // Flags describing the current capabilities of a device/tool. | 16 | // Flags describing the current capabilities of a device/tool. | ||
| 15 | type AxisFlags int | 17 | type AxisFlags int | ||
| 16 | 18 | ||||
| 19 | + | var xAxisFlagsGLibType func() types.GType | |||
| 20 | + | ||||
| 21 | + | func AxisFlagsGLibType() types.GType { | |||
| 22 | + | return xAxisFlagsGLibType() | |||
| 23 | + | } | |||
| 24 | + | ||||
| 17 | const ( | 25 | const ( | ||
| 18 | 26 | ||||
| 19 | // X axis is present | 27 | // X axis is present | ||
| @@ -44,6 +52,12 @@ const ( | |||||
| 44 | // destination can and should do with the dropped data. | 52 | // destination can and should do with the dropped data. | ||
| 45 | type DragAction int | 53 | type DragAction int | ||
| 46 | 54 | ||||
| 55 | + | var xDragActionGLibType func() types.GType | |||
| 56 | + | ||||
| 57 | + | func DragActionGLibType() types.GType { | |||
| 58 | + | return xDragActionGLibType() | |||
| 59 | + | } | |||
| 60 | + | ||||
| 47 | const ( | 61 | const ( | ||
| 48 | 62 | ||||
| 49 | // Copy the data. | 63 | // Copy the data. | ||
| @@ -70,6 +84,12 @@ const ( | |||||
| 70 | // %GDK_MODIFIER_MASK to remove all private values. | 84 | // %GDK_MODIFIER_MASK to remove all private values. | ||
| 71 | type ModifierType int | 85 | type ModifierType int | ||
| 72 | 86 | ||||
| 87 | + | var xModifierTypeGLibType func() types.GType | |||
| 88 | + | ||||
| 89 | + | func ModifierTypeGLibType() types.GType { | |||
| 90 | + | return xModifierTypeGLibType() | |||
| 91 | + | } | |||
| 92 | + | ||||
| 73 | const ( | 93 | const ( | ||
| 74 | 94 | ||||
| 75 | // the Shift key. | 95 | // the Shift key. | ||
| @@ -108,6 +128,12 @@ const ( | |||||
| 108 | // X and Y are present as axes depends on the GDK backend. | 128 | // X and Y are present as axes depends on the GDK backend. | ||
| 109 | type AxisUse int | 129 | type AxisUse int | ||
| 110 | 130 | ||||
| 131 | + | var xAxisUseGLibType func() types.GType | |||
| 132 | + | ||||
| 133 | + | func AxisUseGLibType() types.GType { | |||
| 134 | + | return xAxisUseGLibType() | |||
| 135 | + | } | |||
| 136 | + | ||||
| 111 | const ( | 137 | const ( | ||
| 112 | 138 | ||||
| 113 | // the axis is ignored. | 139 | // the axis is ignored. | ||
| @@ -141,6 +167,12 @@ const ( | |||||
| 141 | // Error enumeration for `GdkGLContext`. | 167 | // Error enumeration for `GdkGLContext`. | ||
| 142 | type GLError int | 168 | type GLError int | ||
| 143 | 169 | ||||
| 170 | + | var xGLErrorGLibType func() types.GType | |||
| 171 | + | ||||
| 172 | + | func GLErrorGLibType() types.GType { | |||
| 173 | + | return xGLErrorGLibType() | |||
| 174 | + | } | |||
| 175 | + | ||||
| 144 | const ( | 176 | const ( | ||
| 145 | 177 | ||||
| 146 | // OpenGL support is not available | 178 | // OpenGL support is not available | ||
| @@ -158,6 +190,12 @@ const ( | |||||
| 158 | // Defines the reference point of a surface and is used in `GdkPopupLayout`. | 190 | // Defines the reference point of a surface and is used in `GdkPopupLayout`. | ||
| 159 | type Gravity int | 191 | type Gravity int | ||
| 160 | 192 | ||||
| 193 | + | var xGravityGLibType func() types.GType | |||
| 194 | + | ||||
| 195 | + | func GravityGLibType() types.GType { | |||
| 196 | + | return xGravityGLibType() | |||
| 197 | + | } | |||
| 198 | + | ||||
| 161 | const ( | 199 | const ( | ||
| 162 | 200 | ||||
| 163 | // the reference point is at the top left corner. | 201 | // the reference point is at the top left corner. | ||
| @@ -196,6 +234,12 @@ const ( | |||||
| 196 | // for details). | 234 | // for details). | ||
| 197 | type MemoryFormat int | 235 | type MemoryFormat int | ||
| 198 | 236 | ||||
| 237 | + | var xMemoryFormatGLibType func() types.GType | |||
| 238 | + | ||||
| 239 | + | func MemoryFormatGLibType() types.GType { | |||
| 240 | + | return xMemoryFormatGLibType() | |||
| 241 | + | } | |||
| 242 | + | ||||
| 199 | const ( | 243 | const ( | ||
| 200 | 244 | ||||
| 201 | // 4 bytes; for blue, green, red, alpha. | 245 | // 4 bytes; for blue, green, red, alpha. | ||
| @@ -255,6 +299,12 @@ const ( | |||||
| 255 | // Error enumeration for `GdkVulkanContext`. | 299 | // Error enumeration for `GdkVulkanContext`. | ||
| 256 | type VulkanError int | 300 | type VulkanError int | ||
| 257 | 301 | ||||
| 302 | + | var xVulkanErrorGLibType func() types.GType | |||
| 303 | + | ||||
| 304 | + | func VulkanErrorGLibType() types.GType { | |||
| 305 | + | return xVulkanErrorGLibType() | |||
| 306 | + | } | |||
| 307 | + | ||||
| 258 | const ( | 308 | const ( | ||
| 259 | 309 | ||||
| 260 | // Vulkan is not supported on this backend or has not been | 310 | // Vulkan is not supported on this backend or has not been | ||
M v4/gdk/gdkevents.go +178 -0
| @@ -7,6 +7,7 @@ import ( | |||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 10 | ) | 11 | ) | ||
| 11 | 12 | ||||
| 12 | // `GdkEventSequence` is an opaque type representing a sequence | 13 | // `GdkEventSequence` is an opaque type representing a sequence | ||
| @@ -14,6 +15,12 @@ import ( | |||||
| 14 | type EventSequence struct { | 15 | type EventSequence struct { | ||
| 15 | } | 16 | } | ||
| 16 | 17 | ||||
| 18 | + | var xEventSequenceGLibType func() types.GType | |||
| 19 | + | ||||
| 20 | + | func EventSequenceGLibType() types.GType { | |||
| 21 | + | return xEventSequenceGLibType() | |||
| 22 | + | } | |||
| 23 | + | ||||
| 17 | func (x *EventSequence) GoPointer() uintptr { | 24 | func (x *EventSequence) GoPointer() uintptr { | ||
| 18 | return uintptr(unsafe.Pointer(x)) | 25 | return uintptr(unsafe.Pointer(x)) | ||
| 19 | } | 26 | } | ||
| @@ -41,6 +48,12 @@ const ( | |||||
| 41 | // Specifies the crossing mode for enter and leave events. | 48 | // Specifies the crossing mode for enter and leave events. | ||
| 42 | type CrossingMode int | 49 | type CrossingMode int | ||
| 43 | 50 | ||||
| 51 | + | var xCrossingModeGLibType func() types.GType | |||
| 52 | + | ||||
| 53 | + | func CrossingModeGLibType() types.GType { | |||
| 54 | + | return xCrossingModeGLibType() | |||
| 55 | + | } | |||
| 56 | + | ||||
| 44 | const ( | 57 | const ( | ||
| 45 | 58 | ||||
| 46 | // crossing because of pointer motion. | 59 | // crossing because of pointer motion. | ||
| @@ -71,6 +84,12 @@ const ( | |||||
| 71 | // Specifies the type of the event. | 84 | // Specifies the type of the event. | ||
| 72 | type EventType int | 85 | type EventType int | ||
| 73 | 86 | ||||
| 87 | + | var xEventTypeGLibType func() types.GType | |||
| 88 | + | ||||
| 89 | + | func EventTypeGLibType() types.GType { | |||
| 90 | + | return xEventTypeGLibType() | |||
| 91 | + | } | |||
| 92 | + | ||||
| 74 | const ( | 93 | const ( | ||
| 75 | 94 | ||||
| 76 | // the window manager has requested that the toplevel surface be | 95 | // the window manager has requested that the toplevel surface be | ||
| @@ -148,6 +167,12 @@ const ( | |||||
| 148 | // `GdkKeyMatch` values are returned by [method@Gdk.KeyEvent.matches]. | 167 | // `GdkKeyMatch` values are returned by [method@Gdk.KeyEvent.matches]. | ||
| 149 | type KeyMatch int | 168 | type KeyMatch int | ||
| 150 | 169 | ||||
| 170 | + | var xKeyMatchGLibType func() types.GType | |||
| 171 | + | ||||
| 172 | + | func KeyMatchGLibType() types.GType { | |||
| 173 | + | return xKeyMatchGLibType() | |||
| 174 | + | } | |||
| 175 | + | ||||
| 151 | const ( | 176 | const ( | ||
| 152 | 177 | ||||
| 153 | // The key event does not match | 178 | // The key event does not match | ||
| @@ -165,6 +190,12 @@ const ( | |||||
| 165 | // full details of crossing event generation. | 190 | // full details of crossing event generation. | ||
| 166 | type NotifyType int | 191 | type NotifyType int | ||
| 167 | 192 | ||||
| 193 | + | var xNotifyTypeGLibType func() types.GType | |||
| 194 | + | ||||
| 195 | + | func NotifyTypeGLibType() types.GType { | |||
| 196 | + | return xNotifyTypeGLibType() | |||
| 197 | + | } | |||
| 198 | + | ||||
| 168 | const ( | 199 | const ( | ||
| 169 | 200 | ||||
| 170 | // the surface is entered from an ancestor or | 201 | // the surface is entered from an ancestor or | ||
| @@ -191,6 +222,12 @@ const ( | |||||
| 191 | // Specifies the direction for scroll events. | 222 | // Specifies the direction for scroll events. | ||
| 192 | type ScrollDirection int | 223 | type ScrollDirection int | ||
| 193 | 224 | ||||
| 225 | + | var xScrollDirectionGLibType func() types.GType | |||
| 226 | + | ||||
| 227 | + | func ScrollDirectionGLibType() types.GType { | |||
| 228 | + | return xScrollDirectionGLibType() | |||
| 229 | + | } | |||
| 230 | + | ||||
| 194 | const ( | 231 | const ( | ||
| 195 | 232 | ||||
| 196 | // the surface is scrolled up. | 233 | // the surface is scrolled up. | ||
| @@ -224,6 +261,12 @@ const ( | |||||
| 224 | // scale factor and eventually a custom scale factor in your app). | 261 | // scale factor and eventually a custom scale factor in your app). | ||
| 225 | type ScrollUnit int | 262 | type ScrollUnit int | ||
| 226 | 263 | ||||
| 264 | + | var xScrollUnitGLibType func() types.GType | |||
| 265 | + | ||||
| 266 | + | func ScrollUnitGLibType() types.GType { | |||
| 267 | + | return xScrollUnitGLibType() | |||
| 268 | + | } | |||
| 269 | + | ||||
| 227 | const ( | 270 | const ( | ||
| 228 | 271 | ||||
| 229 | // The delta is in number of wheel clicks. | 272 | // The delta is in number of wheel clicks. | ||
| @@ -253,6 +296,12 @@ const ( | |||||
| 253 | // progress of the gesture. | 296 | // progress of the gesture. | ||
| 254 | type TouchpadGesturePhase int | 297 | type TouchpadGesturePhase int | ||
| 255 | 298 | ||||
| 299 | + | var xTouchpadGesturePhaseGLibType func() types.GType | |||
| 300 | + | ||||
| 301 | + | func TouchpadGesturePhaseGLibType() types.GType { | |||
| 302 | + | return xTouchpadGesturePhaseGLibType() | |||
| 303 | + | } | |||
| 304 | + | ||||
| 256 | const ( | 305 | const ( | ||
| 257 | 306 | ||||
| 258 | // The gesture has begun. | 307 | // The gesture has begun. | ||
| @@ -312,6 +361,12 @@ type ButtonEvent struct { | |||||
| 312 | Event | 361 | Event | ||
| 313 | } | 362 | } | ||
| 314 | 363 | ||||
| 364 | + | var xButtonEventGLibType func() types.GType | |||
| 365 | + | ||||
| 366 | + | func ButtonEventGLibType() types.GType { | |||
| 367 | + | return xButtonEventGLibType() | |||
| 368 | + | } | |||
| 369 | + | ||||
| 315 | func ButtonEventNewFromInternalPtr(ptr uintptr) *ButtonEvent { | 370 | func ButtonEventNewFromInternalPtr(ptr uintptr) *ButtonEvent { | ||
| 316 | cls := &ButtonEvent{} | 371 | cls := &ButtonEvent{} | ||
| 317 | cls.Ptr = ptr | 372 | cls.Ptr = ptr | ||
| @@ -340,6 +395,12 @@ type CrossingEvent struct { | |||||
| 340 | Event | 395 | Event | ||
| 341 | } | 396 | } | ||
| 342 | 397 | ||||
| 398 | + | var xCrossingEventGLibType func() types.GType | |||
| 399 | + | ||||
| 400 | + | func CrossingEventGLibType() types.GType { | |||
| 401 | + | return xCrossingEventGLibType() | |||
| 402 | + | } | |||
| 403 | + | ||||
| 343 | func CrossingEventNewFromInternalPtr(ptr uintptr) *CrossingEvent { | 404 | func CrossingEventNewFromInternalPtr(ptr uintptr) *CrossingEvent { | ||
| 344 | cls := &CrossingEvent{} | 405 | cls := &CrossingEvent{} | ||
| 345 | cls.Ptr = ptr | 406 | cls.Ptr = ptr | ||
| @@ -386,6 +447,12 @@ type DNDEvent struct { | |||||
| 386 | Event | 447 | Event | ||
| 387 | } | 448 | } | ||
| 388 | 449 | ||||
| 450 | + | var xDNDEventGLibType func() types.GType | |||
| 451 | + | ||||
| 452 | + | func DNDEventGLibType() types.GType { | |||
| 453 | + | return xDNDEventGLibType() | |||
| 454 | + | } | |||
| 455 | + | ||||
| 389 | func DNDEventNewFromInternalPtr(ptr uintptr) *DNDEvent { | 456 | func DNDEventNewFromInternalPtr(ptr uintptr) *DNDEvent { | ||
| 390 | cls := &DNDEvent{} | 457 | cls := &DNDEvent{} | ||
| 391 | cls.Ptr = ptr | 458 | cls.Ptr = ptr | ||
| @@ -422,6 +489,12 @@ type DeleteEvent struct { | |||||
| 422 | Event | 489 | Event | ||
| 423 | } | 490 | } | ||
| 424 | 491 | ||||
| 492 | + | var xDeleteEventGLibType func() types.GType | |||
| 493 | + | ||||
| 494 | + | func DeleteEventGLibType() types.GType { | |||
| 495 | + | return xDeleteEventGLibType() | |||
| 496 | + | } | |||
| 497 | + | ||||
| 425 | func DeleteEventNewFromInternalPtr(ptr uintptr) *DeleteEvent { | 498 | func DeleteEventNewFromInternalPtr(ptr uintptr) *DeleteEvent { | ||
| 426 | cls := &DeleteEvent{} | 499 | cls := &DeleteEvent{} | ||
| 427 | cls.Ptr = ptr | 500 | cls.Ptr = ptr | ||
| @@ -446,6 +519,12 @@ type Event struct { | |||||
| 446 | Ptr uintptr | 519 | Ptr uintptr | ||
| 447 | } | 520 | } | ||
| 448 | 521 | ||||
| 522 | + | var xEventGLibType func() types.GType | |||
| 523 | + | ||||
| 524 | + | func EventGLibType() types.GType { | |||
| 525 | + | return xEventGLibType() | |||
| 526 | + | } | |||
| 527 | + | ||||
| 449 | func EventNewFromInternalPtr(ptr uintptr) *Event { | 528 | func EventNewFromInternalPtr(ptr uintptr) *Event { | ||
| 450 | cls := &Event{} | 529 | cls := &Event{} | ||
| 451 | cls.Ptr = ptr | 530 | cls.Ptr = ptr | ||
| @@ -745,6 +824,12 @@ type FocusEvent struct { | |||||
| 745 | Event | 824 | Event | ||
| 746 | } | 825 | } | ||
| 747 | 826 | ||||
| 827 | + | var xFocusEventGLibType func() types.GType | |||
| 828 | + | ||||
| 829 | + | func FocusEventGLibType() types.GType { | |||
| 830 | + | return xFocusEventGLibType() | |||
| 831 | + | } | |||
| 832 | + | ||||
| 748 | func FocusEventNewFromInternalPtr(ptr uintptr) *FocusEvent { | 833 | func FocusEventNewFromInternalPtr(ptr uintptr) *FocusEvent { | ||
| 749 | cls := &FocusEvent{} | 834 | cls := &FocusEvent{} | ||
| 750 | cls.Ptr = ptr | 835 | cls.Ptr = ptr | ||
| @@ -774,6 +859,12 @@ type GrabBrokenEvent struct { | |||||
| 774 | Event | 859 | Event | ||
| 775 | } | 860 | } | ||
| 776 | 861 | ||||
| 862 | + | var xGrabBrokenEventGLibType func() types.GType | |||
| 863 | + | ||||
| 864 | + | func GrabBrokenEventGLibType() types.GType { | |||
| 865 | + | return xGrabBrokenEventGLibType() | |||
| 866 | + | } | |||
| 867 | + | ||||
| 777 | func GrabBrokenEventNewFromInternalPtr(ptr uintptr) *GrabBrokenEvent { | 868 | func GrabBrokenEventNewFromInternalPtr(ptr uintptr) *GrabBrokenEvent { | ||
| 778 | cls := &GrabBrokenEvent{} | 869 | cls := &GrabBrokenEvent{} | ||
| 779 | cls.Ptr = ptr | 870 | cls.Ptr = ptr | ||
| @@ -819,6 +910,12 @@ type KeyEvent struct { | |||||
| 819 | Event | 910 | Event | ||
| 820 | } | 911 | } | ||
| 821 | 912 | ||||
| 913 | + | var xKeyEventGLibType func() types.GType | |||
| 914 | + | ||||
| 915 | + | func KeyEventGLibType() types.GType { | |||
| 916 | + | return xKeyEventGLibType() | |||
| 917 | + | } | |||
| 918 | + | ||||
| 822 | func KeyEventNewFromInternalPtr(ptr uintptr) *KeyEvent { | 919 | func KeyEventNewFromInternalPtr(ptr uintptr) *KeyEvent { | ||
| 823 | cls := &KeyEvent{} | 920 | cls := &KeyEvent{} | ||
| 824 | cls.Ptr = ptr | 921 | cls.Ptr = ptr | ||
| @@ -920,6 +1017,12 @@ type MotionEvent struct { | |||||
| 920 | Event | 1017 | Event | ||
| 921 | } | 1018 | } | ||
| 922 | 1019 | ||||
| 1020 | + | var xMotionEventGLibType func() types.GType | |||
| 1021 | + | ||||
| 1022 | + | func MotionEventGLibType() types.GType { | |||
| 1023 | + | return xMotionEventGLibType() | |||
| 1024 | + | } | |||
| 1025 | + | ||||
| 923 | func MotionEventNewFromInternalPtr(ptr uintptr) *MotionEvent { | 1026 | func MotionEventNewFromInternalPtr(ptr uintptr) *MotionEvent { | ||
| 924 | cls := &MotionEvent{} | 1027 | cls := &MotionEvent{} | ||
| 925 | cls.Ptr = ptr | 1028 | cls.Ptr = ptr | ||
| @@ -939,6 +1042,12 @@ type PadEvent struct { | |||||
| 939 | Event | 1042 | Event | ||
| 940 | } | 1043 | } | ||
| 941 | 1044 | ||||
| 1045 | + | var xPadEventGLibType func() types.GType | |||
| 1046 | + | ||||
| 1047 | + | func PadEventGLibType() types.GType { | |||
| 1048 | + | return xPadEventGLibType() | |||
| 1049 | + | } | |||
| 1050 | + | ||||
| 942 | func PadEventNewFromInternalPtr(ptr uintptr) *PadEvent { | 1051 | func PadEventNewFromInternalPtr(ptr uintptr) *PadEvent { | ||
| 943 | cls := &PadEvent{} | 1052 | cls := &PadEvent{} | ||
| 944 | cls.Ptr = ptr | 1053 | cls.Ptr = ptr | ||
| @@ -986,6 +1095,12 @@ type ProximityEvent struct { | |||||
| 986 | Event | 1095 | Event | ||
| 987 | } | 1096 | } | ||
| 988 | 1097 | ||||
| 1098 | + | var xProximityEventGLibType func() types.GType | |||
| 1099 | + | ||||
| 1100 | + | func ProximityEventGLibType() types.GType { | |||
| 1101 | + | return xProximityEventGLibType() | |||
| 1102 | + | } | |||
| 1103 | + | ||||
| 989 | func ProximityEventNewFromInternalPtr(ptr uintptr) *ProximityEvent { | 1104 | func ProximityEventNewFromInternalPtr(ptr uintptr) *ProximityEvent { | ||
| 990 | cls := &ProximityEvent{} | 1105 | cls := &ProximityEvent{} | ||
| 991 | cls.Ptr = ptr | 1106 | cls.Ptr = ptr | ||
| @@ -1005,6 +1120,12 @@ type ScrollEvent struct { | |||||
| 1005 | Event | 1120 | Event | ||
| 1006 | } | 1121 | } | ||
| 1007 | 1122 | ||||
| 1123 | + | var xScrollEventGLibType func() types.GType | |||
| 1124 | + | ||||
| 1125 | + | func ScrollEventGLibType() types.GType { | |||
| 1126 | + | return xScrollEventGLibType() | |||
| 1127 | + | } | |||
| 1128 | + | ||||
| 1008 | func ScrollEventNewFromInternalPtr(ptr uintptr) *ScrollEvent { | 1129 | func ScrollEventNewFromInternalPtr(ptr uintptr) *ScrollEvent { | ||
| 1009 | cls := &ScrollEvent{} | 1130 | cls := &ScrollEvent{} | ||
| 1010 | cls.Ptr = ptr | 1131 | cls.Ptr = ptr | ||
| @@ -1077,6 +1198,12 @@ type TouchEvent struct { | |||||
| 1077 | Event | 1198 | Event | ||
| 1078 | } | 1199 | } | ||
| 1079 | 1200 | ||||
| 1201 | + | var xTouchEventGLibType func() types.GType | |||
| 1202 | + | ||||
| 1203 | + | func TouchEventGLibType() types.GType { | |||
| 1204 | + | return xTouchEventGLibType() | |||
| 1205 | + | } | |||
| 1206 | + | ||||
| 1080 | func TouchEventNewFromInternalPtr(ptr uintptr) *TouchEvent { | 1207 | func TouchEventNewFromInternalPtr(ptr uintptr) *TouchEvent { | ||
| 1081 | cls := &TouchEvent{} | 1208 | cls := &TouchEvent{} | ||
| 1082 | cls.Ptr = ptr | 1209 | cls.Ptr = ptr | ||
| @@ -1110,6 +1237,12 @@ type TouchpadEvent struct { | |||||
| 1110 | Event | 1237 | Event | ||
| 1111 | } | 1238 | } | ||
| 1112 | 1239 | ||||
| 1240 | + | var xTouchpadEventGLibType func() types.GType | |||
| 1241 | + | ||||
| 1242 | + | func TouchpadEventGLibType() types.GType { | |||
| 1243 | + | return xTouchpadEventGLibType() | |||
| 1244 | + | } | |||
| 1245 | + | ||||
| 1113 | func TouchpadEventNewFromInternalPtr(ptr uintptr) *TouchpadEvent { | 1246 | func TouchpadEventNewFromInternalPtr(ptr uintptr) *TouchpadEvent { | ||
| 1114 | cls := &TouchpadEvent{} | 1247 | cls := &TouchpadEvent{} | ||
| 1115 | cls.Ptr = ptr | 1248 | cls.Ptr = ptr | ||
| @@ -1174,18 +1307,45 @@ func init() { | |||||
| 1174 | if err != nil { | 1307 | if err != nil { | ||
| 1175 | panic(err) | 1308 | panic(err) | ||
| 1176 | } | 1309 | } | ||
| 1310 | + | ||||
| 1311 | + | core.PuregoSafeRegister(&xCrossingModeGLibType, lib, "gdk_crossing_mode_get_type") | |||
| 1312 | + | ||||
| 1313 | + | core.PuregoSafeRegister(&xEventTypeGLibType, lib, "gdk_event_type_get_type") | |||
| 1314 | + | ||||
| 1315 | + | core.PuregoSafeRegister(&xKeyMatchGLibType, lib, "gdk_key_match_get_type") | |||
| 1316 | + | ||||
| 1317 | + | core.PuregoSafeRegister(&xNotifyTypeGLibType, lib, "gdk_notify_type_get_type") | |||
| 1318 | + | ||||
| 1319 | + | core.PuregoSafeRegister(&xScrollDirectionGLibType, lib, "gdk_scroll_direction_get_type") | |||
| 1320 | + | ||||
| 1321 | + | core.PuregoSafeRegister(&xScrollUnitGLibType, lib, "gdk_scroll_unit_get_type") | |||
| 1322 | + | ||||
| 1323 | + | core.PuregoSafeRegister(&xTouchpadGesturePhaseGLibType, lib, "gdk_touchpad_gesture_phase_get_type") | |||
| 1324 | + | ||||
| 1177 | core.PuregoSafeRegister(&xEventsGetAngle, lib, "gdk_events_get_angle") | 1325 | core.PuregoSafeRegister(&xEventsGetAngle, lib, "gdk_events_get_angle") | ||
| 1178 | core.PuregoSafeRegister(&xEventsGetCenter, lib, "gdk_events_get_center") | 1326 | core.PuregoSafeRegister(&xEventsGetCenter, lib, "gdk_events_get_center") | ||
| 1179 | core.PuregoSafeRegister(&xEventsGetDistance, lib, "gdk_events_get_distance") | 1327 | core.PuregoSafeRegister(&xEventsGetDistance, lib, "gdk_events_get_distance") | ||
| 1180 | 1328 | ||||
| 1329 | + | core.PuregoSafeRegister(&xEventSequenceGLibType, lib, "gdk_event_sequence_get_type") | |||
| 1330 | + | ||||
| 1331 | + | core.PuregoSafeRegister(&xButtonEventGLibType, lib, "gdk_button_event_get_type") | |||
| 1332 | + | ||||
| 1181 | core.PuregoSafeRegister(&xButtonEventGetButton, lib, "gdk_button_event_get_button") | 1333 | core.PuregoSafeRegister(&xButtonEventGetButton, lib, "gdk_button_event_get_button") | ||
| 1182 | 1334 | ||||
| 1335 | + | core.PuregoSafeRegister(&xCrossingEventGLibType, lib, "gdk_crossing_event_get_type") | |||
| 1336 | + | ||||
| 1183 | core.PuregoSafeRegister(&xCrossingEventGetDetail, lib, "gdk_crossing_event_get_detail") | 1337 | core.PuregoSafeRegister(&xCrossingEventGetDetail, lib, "gdk_crossing_event_get_detail") | ||
| 1184 | core.PuregoSafeRegister(&xCrossingEventGetFocus, lib, "gdk_crossing_event_get_focus") | 1338 | core.PuregoSafeRegister(&xCrossingEventGetFocus, lib, "gdk_crossing_event_get_focus") | ||
| 1185 | core.PuregoSafeRegister(&xCrossingEventGetMode, lib, "gdk_crossing_event_get_mode") | 1339 | core.PuregoSafeRegister(&xCrossingEventGetMode, lib, "gdk_crossing_event_get_mode") | ||
| 1186 | 1340 | ||||
| 1341 | + | core.PuregoSafeRegister(&xDNDEventGLibType, lib, "gdk_dnd_event_get_type") | |||
| 1342 | + | ||||
| 1187 | core.PuregoSafeRegister(&xDNDEventGetDrop, lib, "gdk_dnd_event_get_drop") | 1343 | core.PuregoSafeRegister(&xDNDEventGetDrop, lib, "gdk_dnd_event_get_drop") | ||
| 1188 | 1344 | ||||
| 1345 | + | core.PuregoSafeRegister(&xDeleteEventGLibType, lib, "gdk_delete_event_get_type") | |||
| 1346 | + | ||||
| 1347 | + | core.PuregoSafeRegister(&xEventGLibType, lib, "gdk_event_get_type") | |||
| 1348 | + | ||||
| 1189 | core.PuregoSafeRegister(&xEventGetAngle, lib, "gdk_events_get_angle") | 1349 | core.PuregoSafeRegister(&xEventGetAngle, lib, "gdk_events_get_angle") | ||
| 1190 | core.PuregoSafeRegister(&xEventGetCenter, lib, "gdk_events_get_center") | 1350 | core.PuregoSafeRegister(&xEventGetCenter, lib, "gdk_events_get_center") | ||
| 1191 | core.PuregoSafeRegister(&xEventGetDistance, lib, "gdk_events_get_distance") | 1351 | core.PuregoSafeRegister(&xEventGetDistance, lib, "gdk_events_get_distance") | ||
| @@ -1207,11 +1367,17 @@ func init() { | |||||
| 1207 | core.PuregoSafeRegister(&xEventTriggersContextMenu, lib, "gdk_event_triggers_context_menu") | 1367 | core.PuregoSafeRegister(&xEventTriggersContextMenu, lib, "gdk_event_triggers_context_menu") | ||
| 1208 | core.PuregoSafeRegister(&xEventUnref, lib, "gdk_event_unref") | 1368 | core.PuregoSafeRegister(&xEventUnref, lib, "gdk_event_unref") | ||
| 1209 | 1369 | ||||
| 1370 | + | core.PuregoSafeRegister(&xFocusEventGLibType, lib, "gdk_focus_event_get_type") | |||
| 1371 | + | ||||
| 1210 | core.PuregoSafeRegister(&xFocusEventGetIn, lib, "gdk_focus_event_get_in") | 1372 | core.PuregoSafeRegister(&xFocusEventGetIn, lib, "gdk_focus_event_get_in") | ||
| 1211 | 1373 | ||||
| 1374 | + | core.PuregoSafeRegister(&xGrabBrokenEventGLibType, lib, "gdk_grab_broken_event_get_type") | |||
| 1375 | + | ||||
| 1212 | core.PuregoSafeRegister(&xGrabBrokenEventGetGrabSurface, lib, "gdk_grab_broken_event_get_grab_surface") | 1376 | core.PuregoSafeRegister(&xGrabBrokenEventGetGrabSurface, lib, "gdk_grab_broken_event_get_grab_surface") | ||
| 1213 | core.PuregoSafeRegister(&xGrabBrokenEventGetImplicit, lib, "gdk_grab_broken_event_get_implicit") | 1377 | core.PuregoSafeRegister(&xGrabBrokenEventGetImplicit, lib, "gdk_grab_broken_event_get_implicit") | ||
| 1214 | 1378 | ||||
| 1379 | + | core.PuregoSafeRegister(&xKeyEventGLibType, lib, "gdk_key_event_get_type") | |||
| 1380 | + | ||||
| 1215 | core.PuregoSafeRegister(&xKeyEventGetConsumedModifiers, lib, "gdk_key_event_get_consumed_modifiers") | 1381 | core.PuregoSafeRegister(&xKeyEventGetConsumedModifiers, lib, "gdk_key_event_get_consumed_modifiers") | ||
| 1216 | core.PuregoSafeRegister(&xKeyEventGetKeycode, lib, "gdk_key_event_get_keycode") | 1382 | core.PuregoSafeRegister(&xKeyEventGetKeycode, lib, "gdk_key_event_get_keycode") | ||
| 1217 | core.PuregoSafeRegister(&xKeyEventGetKeyval, lib, "gdk_key_event_get_keyval") | 1383 | core.PuregoSafeRegister(&xKeyEventGetKeyval, lib, "gdk_key_event_get_keyval") | ||
| @@ -1221,17 +1387,29 @@ func init() { | |||||
| 1221 | core.PuregoSafeRegister(&xKeyEventIsModifier, lib, "gdk_key_event_is_modifier") | 1387 | core.PuregoSafeRegister(&xKeyEventIsModifier, lib, "gdk_key_event_is_modifier") | ||
| 1222 | core.PuregoSafeRegister(&xKeyEventMatches, lib, "gdk_key_event_matches") | 1388 | core.PuregoSafeRegister(&xKeyEventMatches, lib, "gdk_key_event_matches") | ||
| 1223 | 1389 | ||||
| 1390 | + | core.PuregoSafeRegister(&xMotionEventGLibType, lib, "gdk_motion_event_get_type") | |||
| 1391 | + | ||||
| 1392 | + | core.PuregoSafeRegister(&xPadEventGLibType, lib, "gdk_pad_event_get_type") | |||
| 1393 | + | ||||
| 1224 | core.PuregoSafeRegister(&xPadEventGetAxisValue, lib, "gdk_pad_event_get_axis_value") | 1394 | core.PuregoSafeRegister(&xPadEventGetAxisValue, lib, "gdk_pad_event_get_axis_value") | ||
| 1225 | core.PuregoSafeRegister(&xPadEventGetButton, lib, "gdk_pad_event_get_button") | 1395 | core.PuregoSafeRegister(&xPadEventGetButton, lib, "gdk_pad_event_get_button") | ||
| 1226 | core.PuregoSafeRegister(&xPadEventGetGroupMode, lib, "gdk_pad_event_get_group_mode") | 1396 | core.PuregoSafeRegister(&xPadEventGetGroupMode, lib, "gdk_pad_event_get_group_mode") | ||
| 1227 | 1397 | ||||
| 1398 | + | core.PuregoSafeRegister(&xProximityEventGLibType, lib, "gdk_proximity_event_get_type") | |||
| 1399 | + | ||||
| 1400 | + | core.PuregoSafeRegister(&xScrollEventGLibType, lib, "gdk_scroll_event_get_type") | |||
| 1401 | + | ||||
| 1228 | core.PuregoSafeRegister(&xScrollEventGetDeltas, lib, "gdk_scroll_event_get_deltas") | 1402 | core.PuregoSafeRegister(&xScrollEventGetDeltas, lib, "gdk_scroll_event_get_deltas") | ||
| 1229 | core.PuregoSafeRegister(&xScrollEventGetDirection, lib, "gdk_scroll_event_get_direction") | 1403 | core.PuregoSafeRegister(&xScrollEventGetDirection, lib, "gdk_scroll_event_get_direction") | ||
| 1230 | core.PuregoSafeRegister(&xScrollEventGetUnit, lib, "gdk_scroll_event_get_unit") | 1404 | core.PuregoSafeRegister(&xScrollEventGetUnit, lib, "gdk_scroll_event_get_unit") | ||
| 1231 | core.PuregoSafeRegister(&xScrollEventIsStop, lib, "gdk_scroll_event_is_stop") | 1405 | core.PuregoSafeRegister(&xScrollEventIsStop, lib, "gdk_scroll_event_is_stop") | ||
| 1232 | 1406 | ||||
| 1407 | + | core.PuregoSafeRegister(&xTouchEventGLibType, lib, "gdk_touch_event_get_type") | |||
| 1408 | + | ||||
| 1233 | core.PuregoSafeRegister(&xTouchEventGetEmulatingPointer, lib, "gdk_touch_event_get_emulating_pointer") | 1409 | core.PuregoSafeRegister(&xTouchEventGetEmulatingPointer, lib, "gdk_touch_event_get_emulating_pointer") | ||
| 1234 | 1410 | ||||
| 1411 | + | core.PuregoSafeRegister(&xTouchpadEventGLibType, lib, "gdk_touchpad_event_get_type") | |||
| 1412 | + | ||||
| 1235 | core.PuregoSafeRegister(&xTouchpadEventGetDeltas, lib, "gdk_touchpad_event_get_deltas") | 1413 | core.PuregoSafeRegister(&xTouchpadEventGetDeltas, lib, "gdk_touchpad_event_get_deltas") | ||
| 1236 | core.PuregoSafeRegister(&xTouchpadEventGetGesturePhase, lib, "gdk_touchpad_event_get_gesture_phase") | 1414 | core.PuregoSafeRegister(&xTouchpadEventGetGesturePhase, lib, "gdk_touchpad_event_get_gesture_phase") | ||
| 1237 | core.PuregoSafeRegister(&xTouchpadEventGetNFingers, lib, "gdk_touchpad_event_get_n_fingers") | 1415 | core.PuregoSafeRegister(&xTouchpadEventGetNFingers, lib, "gdk_touchpad_event_get_n_fingers") | ||
M v4/gdk/gdkframeclock.go +17 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | type FrameClockClass struct { | 14 | type FrameClockClass struct { | ||
| @@ -29,6 +30,12 @@ func (x *FrameClockPrivate) GoPointer() uintptr { | |||||
| 29 | // The elements of the enumeration correspond to the signals of `GdkFrameClock`. | 30 | // The elements of the enumeration correspond to the signals of `GdkFrameClock`. | ||
| 30 | type FrameClockPhase int | 31 | type FrameClockPhase int | ||
| 31 | 32 | ||||
| 33 | + | var xFrameClockPhaseGLibType func() types.GType | |||
| 34 | + | ||||
| 35 | + | func FrameClockPhaseGLibType() types.GType { | |||
| 36 | + | return xFrameClockPhaseGLibType() | |||
| 37 | + | } | |||
| 38 | + | ||||
| 32 | const ( | 39 | const ( | ||
| 33 | 40 | ||||
| 34 | // no phase | 41 | // no phase | ||
| @@ -86,6 +93,12 @@ type FrameClock struct { | |||||
| 86 | gobject.Object | 93 | gobject.Object | ||
| 87 | } | 94 | } | ||
| 88 | 95 | ||||
| 96 | + | var xFrameClockGLibType func() types.GType | |||
| 97 | + | ||||
| 98 | + | func FrameClockGLibType() types.GType { | |||
| 99 | + | return xFrameClockGLibType() | |||
| 100 | + | } | |||
| 101 | + | ||||
| 89 | func FrameClockNewFromInternalPtr(ptr uintptr) *FrameClock { | 102 | func FrameClockNewFromInternalPtr(ptr uintptr) *FrameClock { | ||
| 90 | cls := &FrameClock{} | 103 | cls := &FrameClock{} | ||
| 91 | cls.Ptr = ptr | 104 | cls.Ptr = ptr | ||
| @@ -404,6 +417,10 @@ func init() { | |||||
| 404 | panic(err) | 417 | panic(err) | ||
| 405 | } | 418 | } | ||
| 406 | 419 | ||||
| 420 | + | core.PuregoSafeRegister(&xFrameClockPhaseGLibType, lib, "gdk_frame_clock_phase_get_type") | |||
| 421 | + | ||||
| 422 | + | core.PuregoSafeRegister(&xFrameClockGLibType, lib, "gdk_frame_clock_get_type") | |||
| 423 | + | ||||
| 407 | core.PuregoSafeRegister(&xFrameClockBeginUpdating, lib, "gdk_frame_clock_begin_updating") | 424 | core.PuregoSafeRegister(&xFrameClockBeginUpdating, lib, "gdk_frame_clock_begin_updating") | ||
| 408 | core.PuregoSafeRegister(&xFrameClockEndUpdating, lib, "gdk_frame_clock_end_updating") | 425 | core.PuregoSafeRegister(&xFrameClockEndUpdating, lib, "gdk_frame_clock_end_updating") | ||
| 409 | core.PuregoSafeRegister(&xFrameClockGetCurrentTimings, lib, "gdk_frame_clock_get_current_timings") | 426 | core.PuregoSafeRegister(&xFrameClockGetCurrentTimings, lib, "gdk_frame_clock_get_current_timings") | ||
M v4/gdk/gdkframetimings.go +9 -0
| @@ -6,6 +6,7 @@ import ( | |||||
| 6 | 6 | ||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 9 | ) | 10 | ) | ||
| 10 | 11 | ||||
| 11 | // A `GdkFrameTimings` object holds timing information for a single frame | 12 | // A `GdkFrameTimings` object holds timing information for a single frame | ||
| @@ -19,6 +20,12 @@ import ( | |||||
| 19 | type FrameTimings struct { | 20 | type FrameTimings struct { | ||
| 20 | } | 21 | } | ||
| 21 | 22 | ||||
| 23 | + | var xFrameTimingsGLibType func() types.GType | |||
| 24 | + | ||||
| 25 | + | func FrameTimingsGLibType() types.GType { | |||
| 26 | + | return xFrameTimingsGLibType() | |||
| 27 | + | } | |||
| 28 | + | ||||
| 22 | func (x *FrameTimings) GoPointer() uintptr { | 29 | func (x *FrameTimings) GoPointer() uintptr { | ||
| 23 | return uintptr(unsafe.Pointer(x)) | 30 | return uintptr(unsafe.Pointer(x)) | ||
| 24 | } | 31 | } | ||
| @@ -136,6 +143,8 @@ func init() { | |||||
| 136 | panic(err) | 143 | panic(err) | ||
| 137 | } | 144 | } | ||
| 138 | 145 | ||||
| 146 | + | core.PuregoSafeRegister(&xFrameTimingsGLibType, lib, "gdk_frame_timings_get_type") | |||
| 147 | + | ||||
| 139 | core.PuregoSafeRegister(&xFrameTimingsGetComplete, lib, "gdk_frame_timings_get_complete") | 148 | core.PuregoSafeRegister(&xFrameTimingsGetComplete, lib, "gdk_frame_timings_get_complete") | ||
| 140 | core.PuregoSafeRegister(&xFrameTimingsGetFrameCounter, lib, "gdk_frame_timings_get_frame_counter") | 149 | core.PuregoSafeRegister(&xFrameTimingsGetFrameCounter, lib, "gdk_frame_timings_get_frame_counter") | ||
| 141 | core.PuregoSafeRegister(&xFrameTimingsGetFrameTime, lib, "gdk_frame_timings_get_frame_time") | 150 | core.PuregoSafeRegister(&xFrameTimingsGetFrameTime, lib, "gdk_frame_timings_get_frame_time") | ||
M v4/gdk/gdkglcontext.go +17 -0
| @@ -6,11 +6,18 @@ import ( | |||||
| 6 | "github.com/jwijenbergh/puregotk/internal/core" | 6 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 7 | "github.com/jwijenbergh/puregotk/v4/glib" | 7 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 8 | "github.com/jwijenbergh/puregotk/v4/gobject" | 8 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 9 | ) | 10 | ) | ||
| 10 | 11 | ||||
| 11 | // The list of the different APIs that GdkGLContext can potentially support. | 12 | // The list of the different APIs that GdkGLContext can potentially support. | ||
| 12 | type GLAPI int | 13 | type GLAPI int | ||
| 13 | 14 | ||||
| 15 | + | var xGLAPIGLibType func() types.GType | |||
| 16 | + | ||||
| 17 | + | func GLAPIGLibType() types.GType { | |||
| 18 | + | return xGLAPIGLibType() | |||
| 19 | + | } | |||
| 20 | + | ||||
| 14 | const ( | 21 | const ( | ||
| 15 | 22 | ||||
| 16 | // The OpenGL API | 23 | // The OpenGL API | ||
| @@ -72,6 +79,12 @@ type GLContext struct { | |||||
| 72 | DrawContext | 79 | DrawContext | ||
| 73 | } | 80 | } | ||
| 74 | 81 | ||||
| 82 | + | var xGLContextGLibType func() types.GType | |||
| 83 | + | ||||
| 84 | + | func GLContextGLibType() types.GType { | |||
| 85 | + | return xGLContextGLibType() | |||
| 86 | + | } | |||
| 87 | + | ||||
| 75 | func GLContextNewFromInternalPtr(ptr uintptr) *GLContext { | 88 | func GLContextNewFromInternalPtr(ptr uintptr) *GLContext { | ||
| 76 | cls := &GLContext{} | 89 | cls := &GLContext{} | ||
| 77 | cls.Ptr = ptr | 90 | cls.Ptr = ptr | ||
| @@ -408,6 +421,10 @@ func init() { | |||||
| 408 | panic(err) | 421 | panic(err) | ||
| 409 | } | 422 | } | ||
| 410 | 423 | ||||
| 424 | + | core.PuregoSafeRegister(&xGLAPIGLibType, lib, "gdk_gl_api_get_type") | |||
| 425 | + | ||||
| 426 | + | core.PuregoSafeRegister(&xGLContextGLibType, lib, "gdk_gl_context_get_type") | |||
| 427 | + | ||||
| 411 | core.PuregoSafeRegister(&xGLContextGetAllowedApis, lib, "gdk_gl_context_get_allowed_apis") | 428 | core.PuregoSafeRegister(&xGLContextGetAllowedApis, lib, "gdk_gl_context_get_allowed_apis") | ||
| 412 | core.PuregoSafeRegister(&xGLContextGetApi, lib, "gdk_gl_context_get_api") | 429 | core.PuregoSafeRegister(&xGLContextGetApi, lib, "gdk_gl_context_get_api") | ||
| 413 | core.PuregoSafeRegister(&xGLContextGetDebugEnabled, lib, "gdk_gl_context_get_debug_enabled") | 430 | core.PuregoSafeRegister(&xGLContextGetDebugEnabled, lib, "gdk_gl_context_get_debug_enabled") | ||
M v4/gdk/gdkgltexture.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/gio" | 9 | "github.com/jwijenbergh/puregotk/v4/gio" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/glib" | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | type GLTextureClass struct { | 14 | type GLTextureClass struct { | ||
| @@ -22,6 +23,12 @@ type GLTexture struct { | |||||
| 22 | Texture | 23 | Texture | ||
| 23 | } | 24 | } | ||
| 24 | 25 | ||||
| 26 | + | var xGLTextureGLibType func() types.GType | |||
| 27 | + | ||||
| 28 | + | func GLTextureGLibType() types.GType { | |||
| 29 | + | return xGLTextureGLibType() | |||
| 30 | + | } | |||
| 31 | + | ||||
| 25 | func GLTextureNewFromInternalPtr(ptr uintptr) *GLTexture { | 32 | func GLTextureNewFromInternalPtr(ptr uintptr) *GLTexture { | ||
| 26 | cls := &GLTexture{} | 33 | cls := &GLTexture{} | ||
| 27 | cls.Ptr = ptr | 34 | cls.Ptr = ptr | ||
| @@ -307,6 +314,8 @@ func init() { | |||||
| 307 | panic(err) | 314 | panic(err) | ||
| 308 | } | 315 | } | ||
| 309 | 316 | ||||
| 317 | + | core.PuregoSafeRegister(&xGLTextureGLibType, lib, "gdk_gl_texture_get_type") | |||
| 318 | + | ||||
| 310 | core.PuregoSafeRegister(&xNewGLTexture, lib, "gdk_gl_texture_new") | 319 | core.PuregoSafeRegister(&xNewGLTexture, lib, "gdk_gl_texture_new") | ||
| 311 | 320 | ||||
| 312 | core.PuregoSafeRegister(&xGLTextureRelease, lib, "gdk_gl_texture_release") | 321 | core.PuregoSafeRegister(&xGLTextureRelease, lib, "gdk_gl_texture_release") | ||
M v4/gdk/gdkkeys.go +1 -0
| @@ -107,6 +107,7 @@ func init() { | |||||
| 107 | if err != nil { | 107 | if err != nil { | ||
| 108 | panic(err) | 108 | panic(err) | ||
| 109 | } | 109 | } | ||
| 110 | + | ||||
| 110 | core.PuregoSafeRegister(&xKeyvalConvertCase, lib, "gdk_keyval_convert_case") | 111 | core.PuregoSafeRegister(&xKeyvalConvertCase, lib, "gdk_keyval_convert_case") | ||
| 111 | core.PuregoSafeRegister(&xKeyvalFromName, lib, "gdk_keyval_from_name") | 112 | core.PuregoSafeRegister(&xKeyvalFromName, lib, "gdk_keyval_from_name") | ||
| 112 | core.PuregoSafeRegister(&xKeyvalIsLower, lib, "gdk_keyval_is_lower") | 113 | core.PuregoSafeRegister(&xKeyvalIsLower, lib, "gdk_keyval_is_lower") | ||
M v4/gdk/gdkmemorytexture.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/gio" | 9 | "github.com/jwijenbergh/puregotk/v4/gio" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/glib" | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | type MemoryTextureClass struct { | 14 | type MemoryTextureClass struct { | ||
| @@ -22,6 +23,12 @@ type MemoryTexture struct { | |||||
| 22 | Texture | 23 | Texture | ||
| 23 | } | 24 | } | ||
| 24 | 25 | ||||
| 26 | + | var xMemoryTextureGLibType func() types.GType | |||
| 27 | + | ||||
| 28 | + | func MemoryTextureGLibType() types.GType { | |||
| 29 | + | return xMemoryTextureGLibType() | |||
| 30 | + | } | |||
| 31 | + | ||||
| 25 | func MemoryTextureNewFromInternalPtr(ptr uintptr) *MemoryTexture { | 32 | func MemoryTextureNewFromInternalPtr(ptr uintptr) *MemoryTexture { | ||
| 26 | cls := &MemoryTexture{} | 33 | cls := &MemoryTexture{} | ||
| 27 | cls.Ptr = ptr | 34 | cls.Ptr = ptr | ||
| @@ -293,6 +300,8 @@ func init() { | |||||
| 293 | panic(err) | 300 | panic(err) | ||
| 294 | } | 301 | } | ||
| 295 | 302 | ||||
| 303 | + | core.PuregoSafeRegister(&xMemoryTextureGLibType, lib, "gdk_memory_texture_get_type") | |||
| 304 | + | ||||
| 296 | core.PuregoSafeRegister(&xNewMemoryTexture, lib, "gdk_memory_texture_new") | 305 | core.PuregoSafeRegister(&xNewMemoryTexture, lib, "gdk_memory_texture_new") | ||
| 297 | 306 | ||||
| 298 | } | 307 | } | ||
M v4/gdk/gdkmonitor.go +17 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | type MonitorClass struct { | 14 | type MonitorClass struct { | ||
| @@ -21,6 +22,12 @@ func (x *MonitorClass) GoPointer() uintptr { | |||||
| 21 | // of physical pixels on an output device are laid out. | 22 | // of physical pixels on an output device are laid out. | ||
| 22 | type SubpixelLayout int | 23 | type SubpixelLayout int | ||
| 23 | 24 | ||||
| 25 | + | var xSubpixelLayoutGLibType func() types.GType | |||
| 26 | + | ||||
| 27 | + | func SubpixelLayoutGLibType() types.GType { | |||
| 28 | + | return xSubpixelLayoutGLibType() | |||
| 29 | + | } | |||
| 30 | + | ||||
| 24 | const ( | 31 | const ( | ||
| 25 | 32 | ||||
| 26 | // The layout is not known | 33 | // The layout is not known | ||
| @@ -48,6 +55,12 @@ type Monitor struct { | |||||
| 48 | gobject.Object | 55 | gobject.Object | ||
| 49 | } | 56 | } | ||
| 50 | 57 | ||||
| 58 | + | var xMonitorGLibType func() types.GType | |||
| 59 | + | ||||
| 60 | + | func MonitorGLibType() types.GType { | |||
| 61 | + | return xMonitorGLibType() | |||
| 62 | + | } | |||
| 63 | + | ||||
| 51 | func MonitorNewFromInternalPtr(ptr uintptr) *Monitor { | 64 | func MonitorNewFromInternalPtr(ptr uintptr) *Monitor { | ||
| 52 | cls := &Monitor{} | 65 | cls := &Monitor{} | ||
| 53 | cls.Ptr = ptr | 66 | cls.Ptr = ptr | ||
| @@ -221,6 +234,10 @@ func init() { | |||||
| 221 | panic(err) | 234 | panic(err) | ||
| 222 | } | 235 | } | ||
| 223 | 236 | ||||
| 237 | + | core.PuregoSafeRegister(&xSubpixelLayoutGLibType, lib, "gdk_subpixel_layout_get_type") | |||
| 238 | + | ||||
| 239 | + | core.PuregoSafeRegister(&xMonitorGLibType, lib, "gdk_monitor_get_type") | |||
| 240 | + | ||||
| 224 | core.PuregoSafeRegister(&xMonitorGetConnector, lib, "gdk_monitor_get_connector") | 241 | core.PuregoSafeRegister(&xMonitorGetConnector, lib, "gdk_monitor_get_connector") | ||
| 225 | core.PuregoSafeRegister(&xMonitorGetDisplay, lib, "gdk_monitor_get_display") | 242 | core.PuregoSafeRegister(&xMonitorGetDisplay, lib, "gdk_monitor_get_display") | ||
| 226 | core.PuregoSafeRegister(&xMonitorGetGeometry, lib, "gdk_monitor_get_geometry") | 243 | core.PuregoSafeRegister(&xMonitorGetGeometry, lib, "gdk_monitor_get_geometry") | ||
M v4/gdk/gdkpaintable.go +19 -0
| @@ -6,6 +6,7 @@ import ( | |||||
| 6 | 6 | ||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 9 | ) | 10 | ) | ||
| 10 | 11 | ||||
| 11 | // The list of functions that can be implemented for the `GdkPaintable` | 12 | // The list of functions that can be implemented for the `GdkPaintable` | ||
| @@ -83,6 +84,13 @@ type Paintable interface { | |||||
| 83 | InvalidateSize() | 84 | InvalidateSize() | ||
| 84 | Snapshot(SnapshotVar *Snapshot, WidthVar float64, HeightVar float64) | 85 | Snapshot(SnapshotVar *Snapshot, WidthVar float64, HeightVar float64) | ||
| 85 | } | 86 | } | ||
| 87 | + | ||||
| 88 | + | var xPaintableGLibType func() types.GType | |||
| 89 | + | ||||
| 90 | + | func PaintableGLibType() types.GType { | |||
| 91 | + | return xPaintableGLibType() | |||
| 92 | + | } | |||
| 93 | + | ||||
| 86 | type PaintableBase struct { | 94 | type PaintableBase struct { | ||
| 87 | Ptr uintptr | 95 | Ptr uintptr | ||
| 88 | } | 96 | } | ||
| @@ -254,6 +262,12 @@ var XGdkPaintableSnapshot func(uintptr, uintptr, float64, float64) | |||||
| 254 | // Implementations use these for optimizations such as caching. | 262 | // Implementations use these for optimizations such as caching. | ||
| 255 | type PaintableFlags int | 263 | type PaintableFlags int | ||
| 256 | 264 | ||||
| 265 | + | var xPaintableFlagsGLibType func() types.GType | |||
| 266 | + | ||||
| 267 | + | func PaintableFlagsGLibType() types.GType { | |||
| 268 | + | return xPaintableFlagsGLibType() | |||
| 269 | + | } | |||
| 270 | + | ||||
| 257 | const ( | 271 | const ( | ||
| 258 | 272 | ||||
| 259 | // The size is immutable. | 273 | // The size is immutable. | ||
| @@ -292,8 +306,13 @@ func init() { | |||||
| 292 | if err != nil { | 306 | if err != nil { | ||
| 293 | panic(err) | 307 | panic(err) | ||
| 294 | } | 308 | } | ||
| 309 | + | ||||
| 310 | + | core.PuregoSafeRegister(&xPaintableFlagsGLibType, lib, "gdk_paintable_flags_get_type") | |||
| 311 | + | ||||
| 295 | core.PuregoSafeRegister(&xPaintableNewEmpty, lib, "gdk_paintable_new_empty") | 312 | core.PuregoSafeRegister(&xPaintableNewEmpty, lib, "gdk_paintable_new_empty") | ||
| 296 | 313 | ||||
| 314 | + | core.PuregoSafeRegister(&xPaintableGLibType, lib, "gdk_paintable_get_type") | |||
| 315 | + | ||||
| 297 | core.PuregoSafeRegister(&XGdkPaintableComputeConcreteSize, lib, "gdk_paintable_compute_concrete_size") | 316 | core.PuregoSafeRegister(&XGdkPaintableComputeConcreteSize, lib, "gdk_paintable_compute_concrete_size") | ||
| 298 | core.PuregoSafeRegister(&XGdkPaintableGetCurrentImage, lib, "gdk_paintable_get_current_image") | 317 | core.PuregoSafeRegister(&XGdkPaintableGetCurrentImage, lib, "gdk_paintable_get_current_image") | ||
| 299 | core.PuregoSafeRegister(&XGdkPaintableGetFlags, lib, "gdk_paintable_get_flags") | 318 | core.PuregoSafeRegister(&XGdkPaintableGetFlags, lib, "gdk_paintable_get_flags") | ||
M v4/gdk/gdkpango.go +1 -0
| @@ -54,6 +54,7 @@ func init() { | |||||
| 54 | if err != nil { | 54 | if err != nil { | ||
| 55 | panic(err) | 55 | panic(err) | ||
| 56 | } | 56 | } | ||
| 57 | + | ||||
| 57 | core.PuregoSafeRegister(&xPangoLayoutGetClipRegion, lib, "gdk_pango_layout_get_clip_region") | 58 | core.PuregoSafeRegister(&xPangoLayoutGetClipRegion, lib, "gdk_pango_layout_get_clip_region") | ||
| 58 | core.PuregoSafeRegister(&xPangoLayoutLineGetClipRegion, lib, "gdk_pango_layout_line_get_clip_region") | 59 | core.PuregoSafeRegister(&xPangoLayoutLineGetClipRegion, lib, "gdk_pango_layout_line_get_clip_region") | ||
| 59 | 60 | ||||
M v4/gdk/gdkpixbuf.go +1 -0
| @@ -55,6 +55,7 @@ func init() { | |||||
| 55 | if err != nil { | 55 | if err != nil { | ||
| 56 | panic(err) | 56 | panic(err) | ||
| 57 | } | 57 | } | ||
| 58 | + | ||||
| 58 | core.PuregoSafeRegister(&xPixbufGetFromSurface, lib, "gdk_pixbuf_get_from_surface") | 59 | core.PuregoSafeRegister(&xPixbufGetFromSurface, lib, "gdk_pixbuf_get_from_surface") | ||
| 59 | core.PuregoSafeRegister(&xPixbufGetFromTexture, lib, "gdk_pixbuf_get_from_texture") | 60 | core.PuregoSafeRegister(&xPixbufGetFromTexture, lib, "gdk_pixbuf_get_from_texture") | ||
| 60 | 61 | ||||
M v4/gdk/gdkpopup.go +10 -0
| @@ -7,6 +7,7 @@ import ( | |||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 10 | ) | 11 | ) | ||
| 11 | 12 | ||||
| 12 | type PopupInterface struct { | 13 | type PopupInterface struct { | ||
| @@ -34,6 +35,13 @@ type Popup interface { | |||||
| 34 | GetSurfaceAnchor() Gravity | 35 | GetSurfaceAnchor() Gravity | ||
| 35 | Present(WidthVar int, HeightVar int, LayoutVar *PopupLayout) bool | 36 | Present(WidthVar int, HeightVar int, LayoutVar *PopupLayout) bool | ||
| 36 | } | 37 | } | ||
| 38 | + | ||||
| 39 | + | var xPopupGLibType func() types.GType | |||
| 40 | + | ||||
| 41 | + | func PopupGLibType() types.GType { | |||
| 42 | + | return xPopupGLibType() | |||
| 43 | + | } | |||
| 44 | + | ||||
| 37 | type PopupBase struct { | 45 | type PopupBase struct { | ||
| 38 | Ptr uintptr | 46 | Ptr uintptr | ||
| 39 | } | 47 | } | ||
| @@ -137,6 +145,8 @@ func init() { | |||||
| 137 | panic(err) | 145 | panic(err) | ||
| 138 | } | 146 | } | ||
| 139 | 147 | ||||
| 148 | + | core.PuregoSafeRegister(&xPopupGLibType, lib, "gdk_popup_get_type") | |||
| 149 | + | ||||
| 140 | core.PuregoSafeRegister(&XGdkPopupGetAutohide, lib, "gdk_popup_get_autohide") | 150 | core.PuregoSafeRegister(&XGdkPopupGetAutohide, lib, "gdk_popup_get_autohide") | ||
| 141 | core.PuregoSafeRegister(&XGdkPopupGetParent, lib, "gdk_popup_get_parent") | 151 | core.PuregoSafeRegister(&XGdkPopupGetParent, lib, "gdk_popup_get_parent") | ||
| 142 | core.PuregoSafeRegister(&XGdkPopupGetPositionX, lib, "gdk_popup_get_position_x") | 152 | core.PuregoSafeRegister(&XGdkPopupGetPositionX, lib, "gdk_popup_get_position_x") | ||
M v4/gdk/gdkpopuplayout.go +17 -0
| @@ -6,6 +6,7 @@ import ( | |||||
| 6 | 6 | ||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 9 | ) | 10 | ) | ||
| 10 | 11 | ||||
| 11 | // The `GdkPopupLayout` struct contains information that is | 12 | // The `GdkPopupLayout` struct contains information that is | ||
| @@ -44,6 +45,12 @@ import ( | |||||
| 44 | type PopupLayout struct { | 45 | type PopupLayout struct { | ||
| 45 | } | 46 | } | ||
| 46 | 47 | ||||
| 48 | + | var xPopupLayoutGLibType func() types.GType | |||
| 49 | + | ||||
| 50 | + | func PopupLayoutGLibType() types.GType { | |||
| 51 | + | return xPopupLayoutGLibType() | |||
| 52 | + | } | |||
| 53 | + | ||||
| 47 | func (x *PopupLayout) GoPointer() uintptr { | 54 | func (x *PopupLayout) GoPointer() uintptr { | ||
| 48 | return uintptr(unsafe.Pointer(x)) | 55 | return uintptr(unsafe.Pointer(x)) | ||
| 49 | } | 56 | } | ||
| @@ -239,6 +246,12 @@ func (x *PopupLayout) Unref() { | |||||
| 239 | // sliding, which should take precedence over resizing. | 246 | // sliding, which should take precedence over resizing. | ||
| 240 | type AnchorHints int | 247 | type AnchorHints int | ||
| 241 | 248 | ||||
| 249 | + | var xAnchorHintsGLibType func() types.GType | |||
| 250 | + | ||||
| 251 | + | func AnchorHintsGLibType() types.GType { | |||
| 252 | + | return xAnchorHintsGLibType() | |||
| 253 | + | } | |||
| 254 | + | ||||
| 242 | const ( | 255 | const ( | ||
| 243 | 256 | ||||
| 244 | // allow flipping anchors horizontally | 257 | // allow flipping anchors horizontally | ||
| @@ -267,6 +280,10 @@ func init() { | |||||
| 267 | panic(err) | 280 | panic(err) | ||
| 268 | } | 281 | } | ||
| 269 | 282 | ||||
| 283 | + | core.PuregoSafeRegister(&xAnchorHintsGLibType, lib, "gdk_anchor_hints_get_type") | |||
| 284 | + | ||||
| 285 | + | core.PuregoSafeRegister(&xPopupLayoutGLibType, lib, "gdk_popup_layout_get_type") | |||
| 286 | + | ||||
| 270 | core.PuregoSafeRegister(&xNewPopupLayout, lib, "gdk_popup_layout_new") | 287 | core.PuregoSafeRegister(&xNewPopupLayout, lib, "gdk_popup_layout_new") | ||
| 271 | 288 | ||||
| 272 | core.PuregoSafeRegister(&xPopupLayoutCopy, lib, "gdk_popup_layout_copy") | 289 | core.PuregoSafeRegister(&xPopupLayoutCopy, lib, "gdk_popup_layout_copy") | ||
M v4/gdk/gdkrgba.go +9 -0
| @@ -6,6 +6,7 @@ import ( | |||||
| 6 | 6 | ||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 9 | ) | 10 | ) | ||
| 10 | 11 | ||||
| 11 | // A `GdkRGBA` is used to represent a color, in a way that is compatible | 12 | // A `GdkRGBA` is used to represent a color, in a way that is compatible | ||
| @@ -27,6 +28,12 @@ type RGBA struct { | |||||
| 27 | Alpha float32 | 28 | Alpha float32 | ||
| 28 | } | 29 | } | ||
| 29 | 30 | ||||
| 31 | + | var xRGBAGLibType func() types.GType | |||
| 32 | + | ||||
| 33 | + | func RGBAGLibType() types.GType { | |||
| 34 | + | return xRGBAGLibType() | |||
| 35 | + | } | |||
| 36 | + | ||||
| 30 | func (x *RGBA) GoPointer() uintptr { | 37 | func (x *RGBA) GoPointer() uintptr { | ||
| 31 | return uintptr(unsafe.Pointer(x)) | 38 | return uintptr(unsafe.Pointer(x)) | ||
| 32 | } | 39 | } | ||
| @@ -146,6 +153,8 @@ func init() { | |||||
| 146 | panic(err) | 153 | panic(err) | ||
| 147 | } | 154 | } | ||
| 148 | 155 | ||||
| 156 | + | core.PuregoSafeRegister(&xRGBAGLibType, lib, "gdk_rgba_get_type") | |||
| 157 | + | ||||
| 149 | core.PuregoSafeRegister(&xRGBACopy, lib, "gdk_rgba_copy") | 158 | core.PuregoSafeRegister(&xRGBACopy, lib, "gdk_rgba_copy") | ||
| 150 | core.PuregoSafeRegister(&xRGBAEqual, lib, "gdk_rgba_equal") | 159 | core.PuregoSafeRegister(&xRGBAEqual, lib, "gdk_rgba_equal") | ||
| 151 | core.PuregoSafeRegister(&xRGBAFree, lib, "gdk_rgba_free") | 160 | core.PuregoSafeRegister(&xRGBAFree, lib, "gdk_rgba_free") | ||
M v4/gdk/gdkseat.go +17 -0
| @@ -8,11 +8,18 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | // Flags describing the seat capabilities. | 14 | // Flags describing the seat capabilities. | ||
| 14 | type SeatCapabilities int | 15 | type SeatCapabilities int | ||
| 15 | 16 | ||||
| 17 | + | var xSeatCapabilitiesGLibType func() types.GType | |||
| 18 | + | ||||
| 19 | + | func SeatCapabilitiesGLibType() types.GType { | |||
| 20 | + | return xSeatCapabilitiesGLibType() | |||
| 21 | + | } | |||
| 22 | + | ||||
| 16 | const ( | 23 | const ( | ||
| 17 | 24 | ||||
| 18 | // No input capabilities | 25 | // No input capabilities | ||
| @@ -39,6 +46,12 @@ type Seat struct { | |||||
| 39 | gobject.Object | 46 | gobject.Object | ||
| 40 | } | 47 | } | ||
| 41 | 48 | ||||
| 49 | + | var xSeatGLibType func() types.GType | |||
| 50 | + | ||||
| 51 | + | func SeatGLibType() types.GType { | |||
| 52 | + | return xSeatGLibType() | |||
| 53 | + | } | |||
| 54 | + | ||||
| 42 | func SeatNewFromInternalPtr(ptr uintptr) *Seat { | 55 | func SeatNewFromInternalPtr(ptr uintptr) *Seat { | ||
| 43 | cls := &Seat{} | 56 | cls := &Seat{} | ||
| 44 | cls.Ptr = ptr | 57 | cls.Ptr = ptr | ||
| @@ -223,6 +236,10 @@ func init() { | |||||
| 223 | panic(err) | 236 | panic(err) | ||
| 224 | } | 237 | } | ||
| 225 | 238 | ||||
| 239 | + | core.PuregoSafeRegister(&xSeatCapabilitiesGLibType, lib, "gdk_seat_capabilities_get_type") | |||
| 240 | + | ||||
| 241 | + | core.PuregoSafeRegister(&xSeatGLibType, lib, "gdk_seat_get_type") | |||
| 242 | + | ||||
| 226 | core.PuregoSafeRegister(&xSeatGetCapabilities, lib, "gdk_seat_get_capabilities") | 243 | core.PuregoSafeRegister(&xSeatGetCapabilities, lib, "gdk_seat_get_capabilities") | ||
| 227 | core.PuregoSafeRegister(&xSeatGetDevices, lib, "gdk_seat_get_devices") | 244 | core.PuregoSafeRegister(&xSeatGetDevices, lib, "gdk_seat_get_devices") | ||
| 228 | core.PuregoSafeRegister(&xSeatGetDisplay, lib, "gdk_seat_get_display") | 245 | core.PuregoSafeRegister(&xSeatGetDisplay, lib, "gdk_seat_get_display") | ||
M v4/gdk/gdksnapshot.go +7 -0
| @@ -5,6 +5,7 @@ import ( | |||||
| 5 | "unsafe" | 5 | "unsafe" | ||
| 6 | 6 | ||||
| 7 | "github.com/jwijenbergh/puregotk/v4/gobject" | 7 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 8 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 8 | ) | 9 | ) | ||
| 9 | 10 | ||||
| 10 | type SnapshotClass struct { | 11 | type SnapshotClass struct { | ||
| @@ -21,6 +22,12 @@ type Snapshot struct { | |||||
| 21 | gobject.Object | 22 | gobject.Object | ||
| 22 | } | 23 | } | ||
| 23 | 24 | ||||
| 25 | + | var xSnapshotGLibType func() types.GType | |||
| 26 | + | ||||
| 27 | + | func SnapshotGLibType() types.GType { | |||
| 28 | + | return xSnapshotGLibType() | |||
| 29 | + | } | |||
| 30 | + | ||||
| 24 | func SnapshotNewFromInternalPtr(ptr uintptr) *Snapshot { | 31 | func SnapshotNewFromInternalPtr(ptr uintptr) *Snapshot { | ||
| 25 | cls := &Snapshot{} | 32 | cls := &Snapshot{} | ||
| 26 | cls.Ptr = ptr | 33 | cls.Ptr = ptr | ||
M v4/gdk/gdksurface.go +9 -0
| @@ -9,6 +9,7 @@ import ( | |||||
| 9 | "github.com/jwijenbergh/puregotk/v4/cairo" | 9 | "github.com/jwijenbergh/puregotk/v4/cairo" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/glib" | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 12 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 12 | ) | 13 | ) | ||
| 13 | 14 | ||||
| 14 | type SurfaceClass struct { | 15 | type SurfaceClass struct { | ||
| @@ -31,6 +32,12 @@ type Surface struct { | |||||
| 31 | gobject.Object | 32 | gobject.Object | ||
| 32 | } | 33 | } | ||
| 33 | 34 | ||||
| 35 | + | var xSurfaceGLibType func() types.GType | |||
| 36 | + | ||||
| 37 | + | func SurfaceGLibType() types.GType { | |||
| 38 | + | return xSurfaceGLibType() | |||
| 39 | + | } | |||
| 40 | + | ||||
| 34 | func SurfaceNewFromInternalPtr(ptr uintptr) *Surface { | 41 | func SurfaceNewFromInternalPtr(ptr uintptr) *Surface { | ||
| 35 | cls := &Surface{} | 42 | cls := &Surface{} | ||
| 36 | cls.Ptr = ptr | 43 | cls.Ptr = ptr | ||
| @@ -592,6 +599,8 @@ func init() { | |||||
| 592 | panic(err) | 599 | panic(err) | ||
| 593 | } | 600 | } | ||
| 594 | 601 | ||||
| 602 | + | core.PuregoSafeRegister(&xSurfaceGLibType, lib, "gdk_surface_get_type") | |||
| 603 | + | ||||
| 595 | core.PuregoSafeRegister(&xNewSurfacePopup, lib, "gdk_surface_new_popup") | 604 | core.PuregoSafeRegister(&xNewSurfacePopup, lib, "gdk_surface_new_popup") | ||
| 596 | core.PuregoSafeRegister(&xNewSurfaceToplevel, lib, "gdk_surface_new_toplevel") | 605 | core.PuregoSafeRegister(&xNewSurfaceToplevel, lib, "gdk_surface_new_toplevel") | ||
| 597 | 606 | ||||
M v4/gdk/gdktexture.go +17 -0
| @@ -10,6 +10,7 @@ import ( | |||||
| 10 | "github.com/jwijenbergh/puregotk/v4/gio" | 10 | "github.com/jwijenbergh/puregotk/v4/gio" | ||
| 11 | "github.com/jwijenbergh/puregotk/v4/glib" | 11 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 12 | "github.com/jwijenbergh/puregotk/v4/gobject" | 12 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 13 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 13 | ) | 14 | ) | ||
| 14 | 15 | ||||
| 15 | type TextureClass struct { | 16 | type TextureClass struct { | ||
| @@ -22,6 +23,12 @@ func (x *TextureClass) GoPointer() uintptr { | |||||
| 22 | // Possible errors that can be returned by `GdkTexture` constructors. | 23 | // Possible errors that can be returned by `GdkTexture` constructors. | ||
| 23 | type TextureError int | 24 | type TextureError int | ||
| 24 | 25 | ||||
| 26 | + | var xTextureErrorGLibType func() types.GType | |||
| 27 | + | ||||
| 28 | + | func TextureErrorGLibType() types.GType { | |||
| 29 | + | return xTextureErrorGLibType() | |||
| 30 | + | } | |||
| 31 | + | ||||
| 25 | const ( | 32 | const ( | ||
| 26 | 33 | ||||
| 27 | // Not enough memory to handle this image | 34 | // Not enough memory to handle this image | ||
| @@ -53,6 +60,12 @@ type Texture struct { | |||||
| 53 | gobject.Object | 60 | gobject.Object | ||
| 54 | } | 61 | } | ||
| 55 | 62 | ||||
| 63 | + | var xTextureGLibType func() types.GType | |||
| 64 | + | ||||
| 65 | + | func TextureGLibType() types.GType { | |||
| 66 | + | return xTextureGLibType() | |||
| 67 | + | } | |||
| 68 | + | ||||
| 56 | func TextureNewFromInternalPtr(ptr uintptr) *Texture { | 69 | func TextureNewFromInternalPtr(ptr uintptr) *Texture { | ||
| 57 | cls := &Texture{} | 70 | cls := &Texture{} | ||
| 58 | cls.Ptr = ptr | 71 | cls.Ptr = ptr | ||
| @@ -560,6 +573,10 @@ func init() { | |||||
| 560 | panic(err) | 573 | panic(err) | ||
| 561 | } | 574 | } | ||
| 562 | 575 | ||||
| 576 | + | core.PuregoSafeRegister(&xTextureErrorGLibType, lib, "gdk_texture_error_get_type") | |||
| 577 | + | ||||
| 578 | + | core.PuregoSafeRegister(&xTextureGLibType, lib, "gdk_texture_get_type") | |||
| 579 | + | ||||
| 563 | core.PuregoSafeRegister(&xNewTextureForPixbuf, lib, "gdk_texture_new_for_pixbuf") | 580 | core.PuregoSafeRegister(&xNewTextureForPixbuf, lib, "gdk_texture_new_for_pixbuf") | ||
| 564 | core.PuregoSafeRegister(&xNewTextureFromBytes, lib, "gdk_texture_new_from_bytes") | 581 | core.PuregoSafeRegister(&xNewTextureFromBytes, lib, "gdk_texture_new_from_bytes") | ||
| 565 | core.PuregoSafeRegister(&xNewTextureFromFile, lib, "gdk_texture_new_from_file") | 582 | core.PuregoSafeRegister(&xNewTextureFromFile, lib, "gdk_texture_new_from_file") | ||
M v4/gdk/gdktoplevel.go +34 -0
| @@ -7,6 +7,7 @@ import ( | |||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 10 | ) | 11 | ) | ||
| 11 | 12 | ||||
| 12 | type ToplevelInterface struct { | 13 | type ToplevelInterface struct { | ||
| @@ -44,6 +45,13 @@ type Toplevel interface { | |||||
| 44 | SupportsEdgeConstraints() bool | 45 | SupportsEdgeConstraints() bool | ||
| 45 | TitlebarGesture(GestureVar TitlebarGesture) bool | 46 | TitlebarGesture(GestureVar TitlebarGesture) bool | ||
| 46 | } | 47 | } | ||
| 48 | + | ||||
| 49 | + | var xToplevelGLibType func() types.GType | |||
| 50 | + | ||||
| 51 | + | func ToplevelGLibType() types.GType { | |||
| 52 | + | return xToplevelGLibType() | |||
| 53 | + | } | |||
| 54 | + | ||||
| 47 | type ToplevelBase struct { | 55 | type ToplevelBase struct { | ||
| 48 | Ptr uintptr | 56 | Ptr uintptr | ||
| 49 | } | 57 | } | ||
| @@ -306,6 +314,12 @@ var XGdkToplevelTitlebarGesture func(uintptr, TitlebarGesture) bool | |||||
| 306 | // being set. | 314 | // being set. | ||
| 307 | type ToplevelState int | 315 | type ToplevelState int | ||
| 308 | 316 | ||||
| 317 | + | var xToplevelStateGLibType func() types.GType | |||
| 318 | + | ||||
| 319 | + | func ToplevelStateGLibType() types.GType { | |||
| 320 | + | return xToplevelStateGLibType() | |||
| 321 | + | } | |||
| 322 | + | ||||
| 309 | const ( | 323 | const ( | ||
| 310 | 324 | ||||
| 311 | // the surface is minimized | 325 | // the surface is minimized | ||
| @@ -345,6 +359,12 @@ const ( | |||||
| 345 | // Indicates which monitor a surface should span over when in fullscreen mode. | 359 | // Indicates which monitor a surface should span over when in fullscreen mode. | ||
| 346 | type FullscreenMode int | 360 | type FullscreenMode int | ||
| 347 | 361 | ||||
| 362 | + | var xFullscreenModeGLibType func() types.GType | |||
| 363 | + | ||||
| 364 | + | func FullscreenModeGLibType() types.GType { | |||
| 365 | + | return xFullscreenModeGLibType() | |||
| 366 | + | } | |||
| 367 | + | ||||
| 348 | const ( | 368 | const ( | ||
| 349 | 369 | ||||
| 350 | // Fullscreen on current monitor only. | 370 | // Fullscreen on current monitor only. | ||
| @@ -356,6 +376,12 @@ const ( | |||||
| 356 | // Determines a surface edge or corner. | 376 | // Determines a surface edge or corner. | ||
| 357 | type SurfaceEdge int | 377 | type SurfaceEdge int | ||
| 358 | 378 | ||||
| 379 | + | var xSurfaceEdgeGLibType func() types.GType | |||
| 380 | + | ||||
| 381 | + | func SurfaceEdgeGLibType() types.GType { | |||
| 382 | + | return xSurfaceEdgeGLibType() | |||
| 383 | + | } | |||
| 384 | + | ||||
| 359 | const ( | 385 | const ( | ||
| 360 | 386 | ||||
| 361 | // the top left corner. | 387 | // the top left corner. | ||
| @@ -382,6 +408,14 @@ func init() { | |||||
| 382 | panic(err) | 408 | panic(err) | ||
| 383 | } | 409 | } | ||
| 384 | 410 | ||||
| 411 | + | core.PuregoSafeRegister(&xToplevelStateGLibType, lib, "gdk_toplevel_state_get_type") | |||
| 412 | + | ||||
| 413 | + | core.PuregoSafeRegister(&xFullscreenModeGLibType, lib, "gdk_fullscreen_mode_get_type") | |||
| 414 | + | ||||
| 415 | + | core.PuregoSafeRegister(&xSurfaceEdgeGLibType, lib, "gdk_surface_edge_get_type") | |||
| 416 | + | ||||
| 417 | + | core.PuregoSafeRegister(&xToplevelGLibType, lib, "gdk_toplevel_get_type") | |||
| 418 | + | ||||
| 385 | core.PuregoSafeRegister(&XGdkToplevelBeginMove, lib, "gdk_toplevel_begin_move") | 419 | core.PuregoSafeRegister(&XGdkToplevelBeginMove, lib, "gdk_toplevel_begin_move") | ||
| 386 | core.PuregoSafeRegister(&XGdkToplevelBeginResize, lib, "gdk_toplevel_begin_resize") | 420 | core.PuregoSafeRegister(&XGdkToplevelBeginResize, lib, "gdk_toplevel_begin_resize") | ||
| 387 | core.PuregoSafeRegister(&XGdkToplevelFocus, lib, "gdk_toplevel_focus") | 421 | core.PuregoSafeRegister(&XGdkToplevelFocus, lib, "gdk_toplevel_focus") | ||
M v4/gdk/gdktoplevellayout.go +9 -0
| @@ -7,6 +7,7 @@ import ( | |||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 10 | ) | 11 | ) | ||
| 11 | 12 | ||||
| 12 | // The `GdkToplevelLayout` struct contains information that | 13 | // The `GdkToplevelLayout` struct contains information that | ||
| @@ -21,6 +22,12 @@ import ( | |||||
| 21 | type ToplevelLayout struct { | 22 | type ToplevelLayout struct { | ||
| 22 | } | 23 | } | ||
| 23 | 24 | ||||
| 25 | + | var xToplevelLayoutGLibType func() types.GType | |||
| 26 | + | ||||
| 27 | + | func ToplevelLayoutGLibType() types.GType { | |||
| 28 | + | return xToplevelLayoutGLibType() | |||
| 29 | + | } | |||
| 30 | + | ||||
| 24 | func (x *ToplevelLayout) GoPointer() uintptr { | 31 | func (x *ToplevelLayout) GoPointer() uintptr { | ||
| 25 | return uintptr(unsafe.Pointer(x)) | 32 | return uintptr(unsafe.Pointer(x)) | ||
| 26 | } | 33 | } | ||
| @@ -162,6 +169,8 @@ func init() { | |||||
| 162 | panic(err) | 169 | panic(err) | ||
| 163 | } | 170 | } | ||
| 164 | 171 | ||||
| 172 | + | core.PuregoSafeRegister(&xToplevelLayoutGLibType, lib, "gdk_toplevel_layout_get_type") | |||
| 173 | + | ||||
| 165 | core.PuregoSafeRegister(&xNewToplevelLayout, lib, "gdk_toplevel_layout_new") | 174 | core.PuregoSafeRegister(&xNewToplevelLayout, lib, "gdk_toplevel_layout_new") | ||
| 166 | 175 | ||||
| 167 | core.PuregoSafeRegister(&xToplevelLayoutCopy, lib, "gdk_toplevel_layout_copy") | 176 | core.PuregoSafeRegister(&xToplevelLayoutCopy, lib, "gdk_toplevel_layout_copy") | ||
M v4/gdk/gdktoplevelsize.go +1 -0
| @@ -90,6 +90,7 @@ func init() { | |||||
| 90 | if err != nil { | 90 | if err != nil { | ||
| 91 | panic(err) | 91 | panic(err) | ||
| 92 | } | 92 | } | ||
| 93 | + | ||||
| 93 | core.PuregoSafeRegister(&xToplevelSizeGetType, lib, "gdk_toplevel_size_get_type") | 94 | core.PuregoSafeRegister(&xToplevelSizeGetType, lib, "gdk_toplevel_size_get_type") | ||
| 94 | 95 | ||||
| 95 | core.PuregoSafeRegister(&xToplevelSizeGetBounds, lib, "gdk_toplevel_size_get_bounds") | 96 | core.PuregoSafeRegister(&xToplevelSizeGetBounds, lib, "gdk_toplevel_size_get_bounds") | ||
M v4/gdk/gdktypes.go +16 -0
| @@ -45,6 +45,12 @@ import ( | |||||
| 45 | type ContentFormats struct { | 45 | type ContentFormats struct { | ||
| 46 | } | 46 | } | ||
| 47 | 47 | ||||
| 48 | + | var xContentFormatsGLibType func() types.GType | |||
| 49 | + | ||||
| 50 | + | func ContentFormatsGLibType() types.GType { | |||
| 51 | + | return xContentFormatsGLibType() | |||
| 52 | + | } | |||
| 53 | + | ||||
| 48 | func (x *ContentFormats) GoPointer() uintptr { | 54 | func (x *ContentFormats) GoPointer() uintptr { | ||
| 49 | return uintptr(unsafe.Pointer(x)) | 55 | return uintptr(unsafe.Pointer(x)) | ||
| 50 | } | 56 | } | ||
| @@ -280,6 +286,12 @@ type Rectangle struct { | |||||
| 280 | Height int | 286 | Height int | ||
| 281 | } | 287 | } | ||
| 282 | 288 | ||||
| 289 | + | var xRectangleGLibType func() types.GType | |||
| 290 | + | ||||
| 291 | + | func RectangleGLibType() types.GType { | |||
| 292 | + | return xRectangleGLibType() | |||
| 293 | + | } | |||
| 294 | + | ||||
| 283 | func (x *Rectangle) GoPointer() uintptr { | 295 | func (x *Rectangle) GoPointer() uintptr { | ||
| 284 | return uintptr(unsafe.Pointer(x)) | 296 | return uintptr(unsafe.Pointer(x)) | ||
| 285 | } | 297 | } | ||
| @@ -344,6 +356,8 @@ func init() { | |||||
| 344 | panic(err) | 356 | panic(err) | ||
| 345 | } | 357 | } | ||
| 346 | 358 | ||||
| 359 | + | core.PuregoSafeRegister(&xContentFormatsGLibType, lib, "gdk_content_formats_get_type") | |||
| 360 | + | ||||
| 347 | core.PuregoSafeRegister(&xNewContentFormats, lib, "gdk_content_formats_new") | 361 | core.PuregoSafeRegister(&xNewContentFormats, lib, "gdk_content_formats_new") | ||
| 348 | core.PuregoSafeRegister(&xNewContentFormatsForGtype, lib, "gdk_content_formats_new_for_gtype") | 362 | core.PuregoSafeRegister(&xNewContentFormatsForGtype, lib, "gdk_content_formats_new_for_gtype") | ||
| 349 | 363 | ||||
| @@ -364,6 +378,8 @@ func init() { | |||||
| 364 | core.PuregoSafeRegister(&xContentFormatsUnionSerializeMimeTypes, lib, "gdk_content_formats_union_serialize_mime_types") | 378 | core.PuregoSafeRegister(&xContentFormatsUnionSerializeMimeTypes, lib, "gdk_content_formats_union_serialize_mime_types") | ||
| 365 | core.PuregoSafeRegister(&xContentFormatsUnref, lib, "gdk_content_formats_unref") | 379 | core.PuregoSafeRegister(&xContentFormatsUnref, lib, "gdk_content_formats_unref") | ||
| 366 | 380 | ||||
| 381 | + | core.PuregoSafeRegister(&xRectangleGLibType, lib, "gdk_rectangle_get_type") | |||
| 382 | + | ||||
| 367 | core.PuregoSafeRegister(&xRectangleContainsPoint, lib, "gdk_rectangle_contains_point") | 383 | core.PuregoSafeRegister(&xRectangleContainsPoint, lib, "gdk_rectangle_contains_point") | ||
| 368 | core.PuregoSafeRegister(&xRectangleEqual, lib, "gdk_rectangle_equal") | 384 | core.PuregoSafeRegister(&xRectangleEqual, lib, "gdk_rectangle_equal") | ||
| 369 | core.PuregoSafeRegister(&xRectangleIntersect, lib, "gdk_rectangle_intersect") | 385 | core.PuregoSafeRegister(&xRectangleIntersect, lib, "gdk_rectangle_intersect") | ||
M v4/gdk/gdkvulkancontext.go +7 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/v4/gio" | 8 | "github.com/jwijenbergh/puregotk/v4/gio" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | // `GdkVulkanContext` is an object representing the platform-specific | 14 | // `GdkVulkanContext` is an object representing the platform-specific | ||
| @@ -23,6 +24,12 @@ type VulkanContext struct { | |||||
| 23 | DrawContext | 24 | DrawContext | ||
| 24 | } | 25 | } | ||
| 25 | 26 | ||||
| 27 | + | var xVulkanContextGLibType func() types.GType | |||
| 28 | + | ||||
| 29 | + | func VulkanContextGLibType() types.GType { | |||
| 30 | + | return xVulkanContextGLibType() | |||
| 31 | + | } | |||
| 32 | + | ||||
| 26 | func VulkanContextNewFromInternalPtr(ptr uintptr) *VulkanContext { | 33 | func VulkanContextNewFromInternalPtr(ptr uintptr) *VulkanContext { | ||
| 27 | cls := &VulkanContext{} | 34 | cls := &VulkanContext{} | ||
| 28 | cls.Ptr = ptr | 35 | cls.Ptr = ptr | ||
M v4/gdk/main.go +10 -0
| @@ -5,10 +5,17 @@ import ( | |||||
| 5 | "github.com/jwijenbergh/purego" | 5 | "github.com/jwijenbergh/purego" | ||
| 6 | "github.com/jwijenbergh/puregotk/internal/core" | 6 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 7 | "github.com/jwijenbergh/puregotk/v4/glib" | 7 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 8 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 8 | ) | 9 | ) | ||
| 9 | 10 | ||||
| 10 | type TitlebarGesture int | 11 | type TitlebarGesture int | ||
| 11 | 12 | ||||
| 13 | + | var xTitlebarGestureGLibType func() types.GType | |||
| 14 | + | ||||
| 15 | + | func TitlebarGestureGLibType() types.GType { | |||
| 16 | + | return xTitlebarGestureGLibType() | |||
| 17 | + | } | |||
| 18 | + | ||||
| 12 | const ( | 19 | const ( | ||
| 13 | TitlebarGestureDoubleClickValue TitlebarGesture = 1 | 20 | TitlebarGestureDoubleClickValue TitlebarGesture = 1 | ||
| 14 | 21 | ||||
| @@ -46,6 +53,9 @@ func init() { | |||||
| 46 | if err != nil { | 53 | if err != nil { | ||
| 47 | panic(err) | 54 | panic(err) | ||
| 48 | } | 55 | } | ||
| 56 | + | ||||
| 57 | + | core.PuregoSafeRegister(&xTitlebarGestureGLibType, lib, "gdk_titlebar_gesture_get_type") | |||
| 58 | + | ||||
| 49 | core.PuregoSafeRegister(&xGlErrorQuark, lib, "gdk_gl_error_quark") | 59 | core.PuregoSafeRegister(&xGlErrorQuark, lib, "gdk_gl_error_quark") | ||
| 50 | core.PuregoSafeRegister(&xTextureErrorQuark, lib, "gdk_texture_error_quark") | 60 | core.PuregoSafeRegister(&xTextureErrorQuark, lib, "gdk_texture_error_quark") | ||
| 51 | core.PuregoSafeRegister(&xVulkanErrorQuark, lib, "gdk_vulkan_error_quark") | 61 | core.PuregoSafeRegister(&xVulkanErrorQuark, lib, "gdk_vulkan_error_quark") | ||
M v4/gdkpixbuf/gdk-pixbuf-animation.go +17 -0
| @@ -9,6 +9,7 @@ import ( | |||||
| 9 | "github.com/jwijenbergh/puregotk/v4/gio" | 9 | "github.com/jwijenbergh/puregotk/v4/gio" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/glib" | 10 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | 11 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 12 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 12 | ) | 13 | ) | ||
| 13 | 14 | ||||
| 14 | // Modules supporting animations must derive a type from | 15 | // Modules supporting animations must derive a type from | ||
| @@ -50,6 +51,12 @@ type PixbufAnimation struct { | |||||
| 50 | gobject.Object | 51 | gobject.Object | ||
| 51 | } | 52 | } | ||
| 52 | 53 | ||||
| 54 | + | var xPixbufAnimationGLibType func() types.GType | |||
| 55 | + | ||||
| 56 | + | func PixbufAnimationGLibType() types.GType { | |||
| 57 | + | return xPixbufAnimationGLibType() | |||
| 58 | + | } | |||
| 59 | + | ||||
| 53 | func PixbufAnimationNewFromInternalPtr(ptr uintptr) *PixbufAnimation { | 60 | func PixbufAnimationNewFromInternalPtr(ptr uintptr) *PixbufAnimation { | ||
| 54 | cls := &PixbufAnimation{} | 61 | cls := &PixbufAnimation{} | ||
| 55 | cls.Ptr = ptr | 62 | cls.Ptr = ptr | ||
| @@ -325,6 +332,12 @@ type PixbufAnimationIter struct { | |||||
| 325 | gobject.Object | 332 | gobject.Object | ||
| 326 | } | 333 | } | ||
| 327 | 334 | ||||
| 335 | + | var xPixbufAnimationIterGLibType func() types.GType | |||
| 336 | + | ||||
| 337 | + | func PixbufAnimationIterGLibType() types.GType { | |||
| 338 | + | return xPixbufAnimationIterGLibType() | |||
| 339 | + | } | |||
| 340 | + | ||||
| 328 | func PixbufAnimationIterNewFromInternalPtr(ptr uintptr) *PixbufAnimationIter { | 341 | func PixbufAnimationIterNewFromInternalPtr(ptr uintptr) *PixbufAnimationIter { | ||
| 329 | cls := &PixbufAnimationIter{} | 342 | cls := &PixbufAnimationIter{} | ||
| 330 | cls.Ptr = ptr | 343 | cls.Ptr = ptr | ||
| @@ -436,6 +449,8 @@ func init() { | |||||
| 436 | panic(err) | 449 | panic(err) | ||
| 437 | } | 450 | } | ||
| 438 | 451 | ||||
| 452 | + | core.PuregoSafeRegister(&xPixbufAnimationGLibType, lib, "gdk_pixbuf_animation_get_type") | |||
| 453 | + | ||||
| 439 | core.PuregoSafeRegister(&xNewPixbufAnimationFromFile, lib, "gdk_pixbuf_animation_new_from_file") | 454 | core.PuregoSafeRegister(&xNewPixbufAnimationFromFile, lib, "gdk_pixbuf_animation_new_from_file") | ||
| 440 | core.PuregoSafeRegister(&xNewPixbufAnimationFromResource, lib, "gdk_pixbuf_animation_new_from_resource") | 455 | core.PuregoSafeRegister(&xNewPixbufAnimationFromResource, lib, "gdk_pixbuf_animation_new_from_resource") | ||
| 441 | core.PuregoSafeRegister(&xNewPixbufAnimationFromStream, lib, "gdk_pixbuf_animation_new_from_stream") | 456 | core.PuregoSafeRegister(&xNewPixbufAnimationFromStream, lib, "gdk_pixbuf_animation_new_from_stream") | ||
| @@ -451,6 +466,8 @@ func init() { | |||||
| 451 | 466 | ||||
| 452 | core.PuregoSafeRegister(&xPixbufAnimationNewFromStreamAsync, lib, "gdk_pixbuf_animation_new_from_stream_async") | 467 | core.PuregoSafeRegister(&xPixbufAnimationNewFromStreamAsync, lib, "gdk_pixbuf_animation_new_from_stream_async") | ||
| 453 | 468 | ||||
| 469 | + | core.PuregoSafeRegister(&xPixbufAnimationIterGLibType, lib, "gdk_pixbuf_animation_iter_get_type") | |||
| 470 | + | ||||
| 454 | core.PuregoSafeRegister(&xPixbufAnimationIterAdvance, lib, "gdk_pixbuf_animation_iter_advance") | 471 | core.PuregoSafeRegister(&xPixbufAnimationIterAdvance, lib, "gdk_pixbuf_animation_iter_advance") | ||
| 455 | core.PuregoSafeRegister(&xPixbufAnimationIterGetDelayTime, lib, "gdk_pixbuf_animation_iter_get_delay_time") | 472 | core.PuregoSafeRegister(&xPixbufAnimationIterGetDelayTime, lib, "gdk_pixbuf_animation_iter_get_delay_time") | ||
| 456 | core.PuregoSafeRegister(&xPixbufAnimationIterGetPixbuf, lib, "gdk_pixbuf_animation_iter_get_pixbuf") | 473 | core.PuregoSafeRegister(&xPixbufAnimationIterGetPixbuf, lib, "gdk_pixbuf_animation_iter_get_pixbuf") | ||
M v4/gdkpixbuf/gdk-pixbuf-core.go +22 -1
| @@ -1,7 +1,10 @@ | |||||
| 1 | // Package gdkpixbuf was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT | 1 | // Package gdkpixbuf was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT | ||
| 2 | package gdkpixbuf | 2 | package gdkpixbuf | ||
| 3 | 3 | ||||
| 4 | - | import "github.com/jwijenbergh/puregotk/v4/glib" | 4 | + | import ( |
| 5 | + | "github.com/jwijenbergh/puregotk/v4/glib" | |||
| 6 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 7 | + | ) | |||
| 5 | 8 | ||||
| 6 | // A function of this type is responsible for freeing the pixel array | 9 | // A function of this type is responsible for freeing the pixel array | ||
| 7 | // of a pixbuf. | 10 | // of a pixbuf. | ||
| @@ -28,6 +31,12 @@ type PixbufSaveFunc func([]byte, uint, **glib.Error, uintptr) bool | |||||
| 28 | // Currently only RGB is supported. | 31 | // Currently only RGB is supported. | ||
| 29 | type Colorspace int | 32 | type Colorspace int | ||
| 30 | 33 | ||||
| 34 | + | var xColorspaceGLibType func() types.GType | |||
| 35 | + | ||||
| 36 | + | func ColorspaceGLibType() types.GType { | |||
| 37 | + | return xColorspaceGLibType() | |||
| 38 | + | } | |||
| 39 | + | ||||
| 31 | const ( | 40 | const ( | ||
| 32 | 41 | ||||
| 33 | // Indicates a red/green/blue additive color space. | 42 | // Indicates a red/green/blue additive color space. | ||
| @@ -48,6 +57,12 @@ const ( | |||||
| 48 | // For now both cases fall back to a bilevel clipping mask. | 57 | // For now both cases fall back to a bilevel clipping mask. | ||
| 49 | type PixbufAlphaMode int | 58 | type PixbufAlphaMode int | ||
| 50 | 59 | ||||
| 60 | + | var xPixbufAlphaModeGLibType func() types.GType | |||
| 61 | + | ||||
| 62 | + | func PixbufAlphaModeGLibType() types.GType { | |||
| 63 | + | return xPixbufAlphaModeGLibType() | |||
| 64 | + | } | |||
| 65 | + | ||||
| 51 | const ( | 66 | const ( | ||
| 52 | 67 | ||||
| 53 | // A bilevel clipping mask (black and white) | 68 | // A bilevel clipping mask (black and white) | ||
| @@ -66,6 +81,12 @@ const ( | |||||
| 66 | // the `G_FILE_ERROR` domain. | 81 | // the `G_FILE_ERROR` domain. | ||
| 67 | type PixbufError int | 82 | type PixbufError int | ||
| 68 | 83 | ||||
| 84 | + | var xPixbufErrorGLibType func() types.GType | |||
| 85 | + | ||||
| 86 | + | func PixbufErrorGLibType() types.GType { | |||
| 87 | + | return xPixbufErrorGLibType() | |||
| 88 | + | } | |||
| 89 | + | ||||
| 69 | const ( | 90 | const ( | ||
| 70 | 91 | ||||
| 71 | // An image file was broken somehow. | 92 | // An image file was broken somehow. | ||
M v4/gdkpixbuf/gdk-pixbuf-io.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gmodule" | 10 | "github.com/jwijenbergh/puregotk/v4/gmodule" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | // Sets up the image loading state. | 14 | // Sets up the image loading state. | ||
| @@ -123,6 +124,12 @@ type PixbufFormat struct { | |||||
| 123 | License uintptr | 124 | License uintptr | ||
| 124 | } | 125 | } | ||
| 125 | 126 | ||||
| 127 | + | var xPixbufFormatGLibType func() types.GType | |||
| 128 | + | ||||
| 129 | + | func PixbufFormatGLibType() types.GType { | |||
| 130 | + | return xPixbufFormatGLibType() | |||
| 131 | + | } | |||
| 132 | + | ||||
| 126 | func (x *PixbufFormat) GoPointer() uintptr { | 133 | func (x *PixbufFormat) GoPointer() uintptr { | ||
| 127 | return uintptr(unsafe.Pointer(x)) | 134 | return uintptr(unsafe.Pointer(x)) | ||
| 128 | } | 135 | } | ||
| @@ -397,6 +404,8 @@ func init() { | |||||
| 397 | panic(err) | 404 | panic(err) | ||
| 398 | } | 405 | } | ||
| 399 | 406 | ||||
| 407 | + | core.PuregoSafeRegister(&xPixbufFormatGLibType, lib, "gdk_pixbuf_format_get_type") | |||
| 408 | + | ||||
| 400 | core.PuregoSafeRegister(&xPixbufFormatCopy, lib, "gdk_pixbuf_format_copy") | 409 | core.PuregoSafeRegister(&xPixbufFormatCopy, lib, "gdk_pixbuf_format_copy") | ||
| 401 | core.PuregoSafeRegister(&xPixbufFormatFree, lib, "gdk_pixbuf_format_free") | 410 | core.PuregoSafeRegister(&xPixbufFormatFree, lib, "gdk_pixbuf_format_free") | ||
| 402 | core.PuregoSafeRegister(&xPixbufFormatGetDescription, lib, "gdk_pixbuf_format_get_description") | 411 | core.PuregoSafeRegister(&xPixbufFormatGetDescription, lib, "gdk_pixbuf_format_get_description") | ||
M v4/gdkpixbuf/gdk-pixbuf-loader.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | type PixbufLoaderClass struct { | 14 | type PixbufLoaderClass struct { | ||
| @@ -67,6 +68,12 @@ type PixbufLoader struct { | |||||
| 67 | gobject.Object | 68 | gobject.Object | ||
| 68 | } | 69 | } | ||
| 69 | 70 | ||||
| 71 | + | var xPixbufLoaderGLibType func() types.GType | |||
| 72 | + | ||||
| 73 | + | func PixbufLoaderGLibType() types.GType { | |||
| 74 | + | return xPixbufLoaderGLibType() | |||
| 75 | + | } | |||
| 76 | + | ||||
| 70 | func PixbufLoaderNewFromInternalPtr(ptr uintptr) *PixbufLoader { | 77 | func PixbufLoaderNewFromInternalPtr(ptr uintptr) *PixbufLoader { | ||
| 71 | cls := &PixbufLoader{} | 78 | cls := &PixbufLoader{} | ||
| 72 | cls.Ptr = ptr | 79 | cls.Ptr = ptr | ||
| @@ -411,6 +418,8 @@ func init() { | |||||
| 411 | panic(err) | 418 | panic(err) | ||
| 412 | } | 419 | } | ||
| 413 | 420 | ||||
| 421 | + | core.PuregoSafeRegister(&xPixbufLoaderGLibType, lib, "gdk_pixbuf_loader_get_type") | |||
| 422 | + | ||||
| 414 | core.PuregoSafeRegister(&xNewPixbufLoader, lib, "gdk_pixbuf_loader_new") | 423 | core.PuregoSafeRegister(&xNewPixbufLoader, lib, "gdk_pixbuf_loader_new") | ||
| 415 | core.PuregoSafeRegister(&xNewPixbufLoaderWithMimeType, lib, "gdk_pixbuf_loader_new_with_mime_type") | 424 | core.PuregoSafeRegister(&xNewPixbufLoaderWithMimeType, lib, "gdk_pixbuf_loader_new_with_mime_type") | ||
| 416 | core.PuregoSafeRegister(&xNewPixbufLoaderWithType, lib, "gdk_pixbuf_loader_new_with_type") | 425 | core.PuregoSafeRegister(&xNewPixbufLoaderWithType, lib, "gdk_pixbuf_loader_new_with_type") | ||
M v4/gdkpixbuf/gdk-pixbuf-simple-anim.go +9 -0
| @@ -6,6 +6,7 @@ import ( | |||||
| 6 | 6 | ||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 9 | ) | 10 | ) | ||
| 10 | 11 | ||||
| 11 | type PixbufSimpleAnimClass struct { | 12 | type PixbufSimpleAnimClass struct { | ||
| @@ -20,6 +21,12 @@ type PixbufSimpleAnim struct { | |||||
| 20 | PixbufAnimation | 21 | PixbufAnimation | ||
| 21 | } | 22 | } | ||
| 22 | 23 | ||||
| 24 | + | var xPixbufSimpleAnimGLibType func() types.GType | |||
| 25 | + | ||||
| 26 | + | func PixbufSimpleAnimGLibType() types.GType { | |||
| 27 | + | return xPixbufSimpleAnimGLibType() | |||
| 28 | + | } | |||
| 29 | + | ||||
| 23 | func PixbufSimpleAnimNewFromInternalPtr(ptr uintptr) *PixbufSimpleAnim { | 30 | func PixbufSimpleAnimNewFromInternalPtr(ptr uintptr) *PixbufSimpleAnim { | ||
| 24 | cls := &PixbufSimpleAnim{} | 31 | cls := &PixbufSimpleAnim{} | ||
| 25 | cls.Ptr = ptr | 32 | cls.Ptr = ptr | ||
| @@ -85,6 +92,8 @@ func init() { | |||||
| 85 | panic(err) | 92 | panic(err) | ||
| 86 | } | 93 | } | ||
| 87 | 94 | ||||
| 95 | + | core.PuregoSafeRegister(&xPixbufSimpleAnimGLibType, lib, "gdk_pixbuf_simple_anim_get_type") | |||
| 96 | + | ||||
| 88 | core.PuregoSafeRegister(&xNewPixbufSimpleAnim, lib, "gdk_pixbuf_simple_anim_new") | 97 | core.PuregoSafeRegister(&xNewPixbufSimpleAnim, lib, "gdk_pixbuf_simple_anim_new") | ||
| 89 | 98 | ||||
| 90 | core.PuregoSafeRegister(&xPixbufSimpleAnimAddFrame, lib, "gdk_pixbuf_simple_anim_add_frame") | 99 | core.PuregoSafeRegister(&xPixbufSimpleAnimAddFrame, lib, "gdk_pixbuf_simple_anim_add_frame") | ||
M v4/gdkpixbuf/gdk-pixbuf-transform.go +14 -0
| @@ -1,6 +1,8 @@ | |||||
| 1 | // Package gdkpixbuf was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT | 1 | // Package gdkpixbuf was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT | ||
| 2 | package gdkpixbuf | 2 | package gdkpixbuf | ||
| 3 | 3 | ||||
| 4 | + | import "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 5 | + | ||||
| 4 | // Interpolation modes for scaling functions. | 6 | // Interpolation modes for scaling functions. | ||
| 5 | // | 7 | // | ||
| 6 | // The `GDK_INTERP_NEAREST` mode is the fastest scaling method, but has | 8 | // The `GDK_INTERP_NEAREST` mode is the fastest scaling method, but has | ||
| @@ -12,6 +14,12 @@ package gdkpixbuf | |||||
| 12 | // interpolation is just as fast and results in higher quality. | 14 | // interpolation is just as fast and results in higher quality. | ||
| 13 | type InterpType int | 15 | type InterpType int | ||
| 14 | 16 | ||||
| 17 | + | var xInterpTypeGLibType func() types.GType | |||
| 18 | + | ||||
| 19 | + | func InterpTypeGLibType() types.GType { | |||
| 20 | + | return xInterpTypeGLibType() | |||
| 21 | + | } | |||
| 22 | + | ||||
| 15 | const ( | 23 | const ( | ||
| 16 | 24 | ||||
| 17 | // Nearest neighbor sampling; this is the fastest | 25 | // Nearest neighbor sampling; this is the fastest | ||
| @@ -46,6 +54,12 @@ const ( | |||||
| 46 | // To make them easier to use, their numerical values are the actual degrees. | 54 | // To make them easier to use, their numerical values are the actual degrees. | ||
| 47 | type PixbufRotation int | 55 | type PixbufRotation int | ||
| 48 | 56 | ||||
| 57 | + | var xPixbufRotationGLibType func() types.GType | |||
| 58 | + | ||||
| 59 | + | func PixbufRotationGLibType() types.GType { | |||
| 60 | + | return xPixbufRotationGLibType() | |||
| 61 | + | } | |||
| 62 | + | ||||
| 49 | const ( | 63 | const ( | ||
| 50 | 64 | ||||
| 51 | // No rotation. | 65 | // No rotation. | ||
M v4/gdkpixbuf/gdk-pixbuf.go +9 -0
| @@ -7,6 +7,7 @@ import ( | |||||
| 7 | "github.com/jwijenbergh/puregotk/v4/gio" | 7 | "github.com/jwijenbergh/puregotk/v4/gio" | ||
| 8 | "github.com/jwijenbergh/puregotk/v4/glib" | 8 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 10 | ) | 11 | ) | ||
| 11 | 12 | ||||
| 12 | // A pixel buffer. | 13 | // A pixel buffer. | ||
| @@ -151,6 +152,12 @@ type Pixbuf struct { | |||||
| 151 | gobject.Object | 152 | gobject.Object | ||
| 152 | } | 153 | } | ||
| 153 | 154 | ||||
| 155 | + | var xPixbufGLibType func() types.GType | |||
| 156 | + | ||||
| 157 | + | func PixbufGLibType() types.GType { | |||
| 158 | + | return xPixbufGLibType() | |||
| 159 | + | } | |||
| 160 | + | ||||
| 154 | func PixbufNewFromInternalPtr(ptr uintptr) *Pixbuf { | 161 | func PixbufNewFromInternalPtr(ptr uintptr) *Pixbuf { | ||
| 155 | cls := &Pixbuf{} | 162 | cls := &Pixbuf{} | ||
| 156 | cls.Ptr = ptr | 163 | cls.Ptr = ptr | ||
| @@ -1570,6 +1577,8 @@ func init() { | |||||
| 1570 | panic(err) | 1577 | panic(err) | ||
| 1571 | } | 1578 | } | ||
| 1572 | 1579 | ||||
| 1580 | + | core.PuregoSafeRegister(&xPixbufGLibType, lib, "gdk_pixbuf_get_type") | |||
| 1581 | + | ||||
| 1573 | core.PuregoSafeRegister(&xNewPixbuf, lib, "gdk_pixbuf_new") | 1582 | core.PuregoSafeRegister(&xNewPixbuf, lib, "gdk_pixbuf_new") | ||
| 1574 | core.PuregoSafeRegister(&xNewPixbufFromBytes, lib, "gdk_pixbuf_new_from_bytes") | 1583 | core.PuregoSafeRegister(&xNewPixbufFromBytes, lib, "gdk_pixbuf_new_from_bytes") | ||
| 1575 | core.PuregoSafeRegister(&xNewPixbufFromData, lib, "gdk_pixbuf_new_from_data") | 1584 | core.PuregoSafeRegister(&xNewPixbufFromData, lib, "gdk_pixbuf_new_from_data") | ||
M v4/gdkpixbuf/main.go +18 -0
| @@ -5,6 +5,7 @@ import ( | |||||
| 5 | "github.com/jwijenbergh/purego" | 5 | "github.com/jwijenbergh/purego" | ||
| 6 | "github.com/jwijenbergh/puregotk/internal/core" | 6 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 7 | "github.com/jwijenbergh/puregotk/v4/glib" | 7 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 8 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 8 | ) | 9 | ) | ||
| 9 | 10 | ||||
| 10 | var xPixbufErrorQuark func() glib.Quark | 11 | var xPixbufErrorQuark func() glib.Quark | ||
| @@ -19,6 +20,12 @@ type PixbufNonAnim struct { | |||||
| 19 | PixbufAnimation | 20 | PixbufAnimation | ||
| 20 | } | 21 | } | ||
| 21 | 22 | ||||
| 23 | + | var xPixbufNonAnimGLibType func() types.GType | |||
| 24 | + | ||||
| 25 | + | func PixbufNonAnimGLibType() types.GType { | |||
| 26 | + | return xPixbufNonAnimGLibType() | |||
| 27 | + | } | |||
| 28 | + | ||||
| 22 | func PixbufNonAnimNewFromInternalPtr(ptr uintptr) *PixbufNonAnim { | 29 | func PixbufNonAnimNewFromInternalPtr(ptr uintptr) *PixbufNonAnim { | ||
| 23 | cls := &PixbufNonAnim{} | 30 | cls := &PixbufNonAnim{} | ||
| 24 | cls.Ptr = ptr | 31 | cls.Ptr = ptr | ||
| @@ -52,6 +59,12 @@ type PixbufSimpleAnimIter struct { | |||||
| 52 | PixbufAnimationIter | 59 | PixbufAnimationIter | ||
| 53 | } | 60 | } | ||
| 54 | 61 | ||||
| 62 | + | var xPixbufSimpleAnimIterGLibType func() types.GType | |||
| 63 | + | ||||
| 64 | + | func PixbufSimpleAnimIterGLibType() types.GType { | |||
| 65 | + | return xPixbufSimpleAnimIterGLibType() | |||
| 66 | + | } | |||
| 67 | + | ||||
| 55 | func PixbufSimpleAnimIterNewFromInternalPtr(ptr uintptr) *PixbufSimpleAnimIter { | 68 | func PixbufSimpleAnimIterNewFromInternalPtr(ptr uintptr) *PixbufSimpleAnimIter { | ||
| 56 | cls := &PixbufSimpleAnimIter{} | 69 | cls := &PixbufSimpleAnimIter{} | ||
| 57 | cls.Ptr = ptr | 70 | cls.Ptr = ptr | ||
| @@ -71,8 +84,13 @@ func init() { | |||||
| 71 | if err != nil { | 84 | if err != nil { | ||
| 72 | panic(err) | 85 | panic(err) | ||
| 73 | } | 86 | } | ||
| 87 | + | ||||
| 74 | core.PuregoSafeRegister(&xPixbufErrorQuark, lib, "gdk_pixbuf_error_quark") | 88 | core.PuregoSafeRegister(&xPixbufErrorQuark, lib, "gdk_pixbuf_error_quark") | ||
| 75 | 89 | ||||
| 90 | + | core.PuregoSafeRegister(&xPixbufNonAnimGLibType, lib, "gdk_pixbuf_non_anim_get_type") | |||
| 91 | + | ||||
| 76 | core.PuregoSafeRegister(&xNewPixbufNonAnim, lib, "gdk_pixbuf_non_anim_new") | 92 | core.PuregoSafeRegister(&xNewPixbufNonAnim, lib, "gdk_pixbuf_non_anim_new") | ||
| 77 | 93 | ||||
| 94 | + | core.PuregoSafeRegister(&xPixbufSimpleAnimIterGLibType, lib, "gdk_pixbuf_simple_anim_iter_get_type") | |||
| 95 | + | ||||
| 78 | } | 96 | } | ||
M v4/gio/gaction.go +11 -0
| @@ -7,6 +7,7 @@ import ( | |||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 10 | ) | 11 | ) | ||
| 11 | 12 | ||||
| 12 | // The virtual function table for #GAction. | 13 | // The virtual function table for #GAction. | ||
| @@ -59,6 +60,13 @@ type Action interface { | |||||
| 59 | GetStateHint() *glib.Variant | 60 | GetStateHint() *glib.Variant | ||
| 60 | GetStateType() *glib.VariantType | 61 | GetStateType() *glib.VariantType | ||
| 61 | } | 62 | } | ||
| 63 | + | ||||
| 64 | + | var xActionGLibType func() types.GType | |||
| 65 | + | ||||
| 66 | + | func ActionGLibType() types.GType { | |||
| 67 | + | return xActionGLibType() | |||
| 68 | + | } | |||
| 69 | + | ||||
| 62 | type ActionBase struct { | 70 | type ActionBase struct { | ||
| 63 | Ptr uintptr | 71 | Ptr uintptr | ||
| 64 | } | 72 | } | ||
| @@ -271,10 +279,13 @@ func init() { | |||||
| 271 | if err != nil { | 279 | if err != nil { | ||
| 272 | panic(err) | 280 | panic(err) | ||
| 273 | } | 281 | } | ||
| 282 | + | ||||
| 274 | core.PuregoSafeRegister(&xActionNameIsValid, lib, "g_action_name_is_valid") | 283 | core.PuregoSafeRegister(&xActionNameIsValid, lib, "g_action_name_is_valid") | ||
| 275 | core.PuregoSafeRegister(&xActionParseDetailedName, lib, "g_action_parse_detailed_name") | 284 | core.PuregoSafeRegister(&xActionParseDetailedName, lib, "g_action_parse_detailed_name") | ||
| 276 | core.PuregoSafeRegister(&xActionPrintDetailedName, lib, "g_action_print_detailed_name") | 285 | core.PuregoSafeRegister(&xActionPrintDetailedName, lib, "g_action_print_detailed_name") | ||
| 277 | 286 | ||||
| 287 | + | core.PuregoSafeRegister(&xActionGLibType, lib, "g_action_get_type") | |||
| 288 | + | ||||
| 278 | core.PuregoSafeRegister(&XGActionActivate, lib, "g_action_activate") | 289 | core.PuregoSafeRegister(&XGActionActivate, lib, "g_action_activate") | ||
| 279 | core.PuregoSafeRegister(&XGActionChangeState, lib, "g_action_change_state") | 290 | core.PuregoSafeRegister(&XGActionChangeState, lib, "g_action_change_state") | ||
| 280 | core.PuregoSafeRegister(&XGActionGetEnabled, lib, "g_action_get_enabled") | 291 | core.PuregoSafeRegister(&XGActionGetEnabled, lib, "g_action_get_enabled") | ||
M v4/gio/gactiongroup.go +10 -0
| @@ -7,6 +7,7 @@ import ( | |||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 10 | ) | 11 | ) | ||
| 11 | 12 | ||||
| 12 | // The virtual function table for #GActionGroup. | 13 | // The virtual function table for #GActionGroup. | ||
| @@ -81,6 +82,13 @@ type ActionGroup interface { | |||||
| 81 | ListActions() []string | 82 | ListActions() []string | ||
| 82 | QueryAction(ActionNameVar string, EnabledVar bool, ParameterTypeVar **glib.VariantType, StateTypeVar **glib.VariantType, StateHintVar **glib.Variant, StateVar **glib.Variant) bool | 83 | QueryAction(ActionNameVar string, EnabledVar bool, ParameterTypeVar **glib.VariantType, StateTypeVar **glib.VariantType, StateHintVar **glib.Variant, StateVar **glib.Variant) bool | ||
| 83 | } | 84 | } | ||
| 85 | + | ||||
| 86 | + | var xActionGroupGLibType func() types.GType | |||
| 87 | + | ||||
| 88 | + | func ActionGroupGLibType() types.GType { | |||
| 89 | + | return xActionGroupGLibType() | |||
| 90 | + | } | |||
| 91 | + | ||||
| 84 | type ActionGroupBase struct { | 92 | type ActionGroupBase struct { | ||
| 85 | Ptr uintptr | 93 | Ptr uintptr | ||
| 86 | } | 94 | } | ||
| @@ -345,6 +353,8 @@ func init() { | |||||
| 345 | panic(err) | 353 | panic(err) | ||
| 346 | } | 354 | } | ||
| 347 | 355 | ||||
| 356 | + | core.PuregoSafeRegister(&xActionGroupGLibType, lib, "g_action_group_get_type") | |||
| 357 | + | ||||
| 348 | core.PuregoSafeRegister(&XGActionGroupActionAdded, lib, "g_action_group_action_added") | 358 | core.PuregoSafeRegister(&XGActionGroupActionAdded, lib, "g_action_group_action_added") | ||
| 349 | core.PuregoSafeRegister(&XGActionGroupActionEnabledChanged, lib, "g_action_group_action_enabled_changed") | 359 | core.PuregoSafeRegister(&XGActionGroupActionEnabledChanged, lib, "g_action_group_action_enabled_changed") | ||
| 350 | core.PuregoSafeRegister(&XGActionGroupActionRemoved, lib, "g_action_group_action_removed") | 360 | core.PuregoSafeRegister(&XGActionGroupActionRemoved, lib, "g_action_group_action_removed") | ||
M v4/gio/gactionmap.go +10 -0
| @@ -7,6 +7,7 @@ import ( | |||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 10 | ) | 11 | ) | ||
| 11 | 12 | ||||
| 12 | // This struct defines a single action. It is for use with | 13 | // This struct defines a single action. It is for use with | ||
| @@ -59,6 +60,13 @@ type ActionMap interface { | |||||
| 59 | LookupAction(ActionNameVar string) *ActionBase | 60 | LookupAction(ActionNameVar string) *ActionBase | ||
| 60 | RemoveAction(ActionNameVar string) | 61 | RemoveAction(ActionNameVar string) | ||
| 61 | } | 62 | } | ||
| 63 | + | ||||
| 64 | + | var xActionMapGLibType func() types.GType | |||
| 65 | + | ||||
| 66 | + | func ActionMapGLibType() types.GType { | |||
| 67 | + | return xActionMapGLibType() | |||
| 68 | + | } | |||
| 69 | + | ||||
| 62 | type ActionMapBase struct { | 70 | type ActionMapBase struct { | ||
| 63 | Ptr uintptr | 71 | Ptr uintptr | ||
| 64 | } | 72 | } | ||
| @@ -169,6 +177,8 @@ func init() { | |||||
| 169 | panic(err) | 177 | panic(err) | ||
| 170 | } | 178 | } | ||
| 171 | 179 | ||||
| 180 | + | core.PuregoSafeRegister(&xActionMapGLibType, lib, "g_action_map_get_type") | |||
| 181 | + | ||||
| 172 | core.PuregoSafeRegister(&XGActionMapAddAction, lib, "g_action_map_add_action") | 182 | core.PuregoSafeRegister(&XGActionMapAddAction, lib, "g_action_map_add_action") | ||
| 173 | core.PuregoSafeRegister(&XGActionMapAddActionEntries, lib, "g_action_map_add_action_entries") | 183 | core.PuregoSafeRegister(&XGActionMapAddActionEntries, lib, "g_action_map_add_action_entries") | ||
| 174 | core.PuregoSafeRegister(&XGActionMapLookupAction, lib, "g_action_map_lookup_action") | 184 | core.PuregoSafeRegister(&XGActionMapLookupAction, lib, "g_action_map_lookup_action") | ||
M v4/gio/gappinfo.go +19 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | // Application Information interface, for operating system portability. | 14 | // Application Information interface, for operating system portability. | ||
| @@ -113,6 +114,13 @@ type AppInfo interface { | |||||
| 113 | SupportsFiles() bool | 114 | SupportsFiles() bool | ||
| 114 | SupportsUris() bool | 115 | SupportsUris() bool | ||
| 115 | } | 116 | } | ||
| 117 | + | ||||
| 118 | + | var xAppInfoGLibType func() types.GType | |||
| 119 | + | ||||
| 120 | + | func AppInfoGLibType() types.GType { | |||
| 121 | + | return xAppInfoGLibType() | |||
| 122 | + | } | |||
| 123 | + | ||||
| 116 | type AppInfoBase struct { | 124 | type AppInfoBase struct { | ||
| 117 | Ptr uintptr | 125 | Ptr uintptr | ||
| 118 | } | 126 | } | ||
| @@ -636,6 +644,12 @@ type AppLaunchContext struct { | |||||
| 636 | gobject.Object | 644 | gobject.Object | ||
| 637 | } | 645 | } | ||
| 638 | 646 | ||||
| 647 | + | var xAppLaunchContextGLibType func() types.GType | |||
| 648 | + | ||||
| 649 | + | func AppLaunchContextGLibType() types.GType { | |||
| 650 | + | return xAppLaunchContextGLibType() | |||
| 651 | + | } | |||
| 652 | + | ||||
| 639 | func AppLaunchContextNewFromInternalPtr(ptr uintptr) *AppLaunchContext { | 653 | func AppLaunchContextNewFromInternalPtr(ptr uintptr) *AppLaunchContext { | ||
| 640 | cls := &AppLaunchContext{} | 654 | cls := &AppLaunchContext{} | ||
| 641 | cls.Ptr = ptr | 655 | cls.Ptr = ptr | ||
| @@ -821,6 +835,7 @@ func init() { | |||||
| 821 | if err != nil { | 835 | if err != nil { | ||
| 822 | panic(err) | 836 | panic(err) | ||
| 823 | } | 837 | } | ||
| 838 | + | ||||
| 824 | core.PuregoSafeRegister(&xAppInfoCreateFromCommandline, lib, "g_app_info_create_from_commandline") | 839 | core.PuregoSafeRegister(&xAppInfoCreateFromCommandline, lib, "g_app_info_create_from_commandline") | ||
| 825 | core.PuregoSafeRegister(&xAppInfoGetAll, lib, "g_app_info_get_all") | 840 | core.PuregoSafeRegister(&xAppInfoGetAll, lib, "g_app_info_get_all") | ||
| 826 | core.PuregoSafeRegister(&xAppInfoGetAllForType, lib, "g_app_info_get_all_for_type") | 841 | core.PuregoSafeRegister(&xAppInfoGetAllForType, lib, "g_app_info_get_all_for_type") | ||
| @@ -833,6 +848,8 @@ func init() { | |||||
| 833 | core.PuregoSafeRegister(&xAppInfoLaunchDefaultForUriFinish, lib, "g_app_info_launch_default_for_uri_finish") | 848 | core.PuregoSafeRegister(&xAppInfoLaunchDefaultForUriFinish, lib, "g_app_info_launch_default_for_uri_finish") | ||
| 834 | core.PuregoSafeRegister(&xAppInfoResetTypeAssociations, lib, "g_app_info_reset_type_associations") | 849 | core.PuregoSafeRegister(&xAppInfoResetTypeAssociations, lib, "g_app_info_reset_type_associations") | ||
| 835 | 850 | ||||
| 851 | + | core.PuregoSafeRegister(&xAppLaunchContextGLibType, lib, "g_app_launch_context_get_type") | |||
| 852 | + | ||||
| 836 | core.PuregoSafeRegister(&xNewAppLaunchContext, lib, "g_app_launch_context_new") | 853 | core.PuregoSafeRegister(&xNewAppLaunchContext, lib, "g_app_launch_context_new") | ||
| 837 | 854 | ||||
| 838 | core.PuregoSafeRegister(&xAppLaunchContextGetDisplay, lib, "g_app_launch_context_get_display") | 855 | core.PuregoSafeRegister(&xAppLaunchContextGetDisplay, lib, "g_app_launch_context_get_display") | ||
| @@ -842,6 +859,8 @@ func init() { | |||||
| 842 | core.PuregoSafeRegister(&xAppLaunchContextSetenv, lib, "g_app_launch_context_setenv") | 859 | core.PuregoSafeRegister(&xAppLaunchContextSetenv, lib, "g_app_launch_context_setenv") | ||
| 843 | core.PuregoSafeRegister(&xAppLaunchContextUnsetenv, lib, "g_app_launch_context_unsetenv") | 860 | core.PuregoSafeRegister(&xAppLaunchContextUnsetenv, lib, "g_app_launch_context_unsetenv") | ||
| 844 | 861 | ||||
| 862 | + | core.PuregoSafeRegister(&xAppInfoGLibType, lib, "g_app_info_get_type") | |||
| 863 | + | ||||
| 845 | core.PuregoSafeRegister(&XGAppInfoAddSupportsType, lib, "g_app_info_add_supports_type") | 864 | core.PuregoSafeRegister(&XGAppInfoAddSupportsType, lib, "g_app_info_add_supports_type") | ||
| 846 | core.PuregoSafeRegister(&XGAppInfoCanDelete, lib, "g_app_info_can_delete") | 865 | core.PuregoSafeRegister(&XGAppInfoCanDelete, lib, "g_app_info_can_delete") | ||
| 847 | core.PuregoSafeRegister(&XGAppInfoCanRemoveSupportsType, lib, "g_app_info_can_remove_supports_type") | 866 | core.PuregoSafeRegister(&XGAppInfoCanRemoveSupportsType, lib, "g_app_info_can_remove_supports_type") | ||
M v4/gio/gapplication.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | // Virtual function table for #GApplication. | 14 | // Virtual function table for #GApplication. | ||
| @@ -146,6 +147,12 @@ type Application struct { | |||||
| 146 | gobject.Object | 147 | gobject.Object | ||
| 147 | } | 148 | } | ||
| 148 | 149 | ||||
| 150 | + | var xApplicationGLibType func() types.GType | |||
| 151 | + | ||||
| 152 | + | func ApplicationGLibType() types.GType { | |||
| 153 | + | return xApplicationGLibType() | |||
| 154 | + | } | |||
| 155 | + | ||||
| 149 | func ApplicationNewFromInternalPtr(ptr uintptr) *Application { | 156 | func ApplicationNewFromInternalPtr(ptr uintptr) *Application { | ||
| 150 | cls := &Application{} | 157 | cls := &Application{} | ||
| 151 | cls.Ptr = ptr | 158 | cls.Ptr = ptr | ||
| @@ -1495,6 +1502,8 @@ func init() { | |||||
| 1495 | panic(err) | 1502 | panic(err) | ||
| 1496 | } | 1503 | } | ||
| 1497 | 1504 | ||||
| 1505 | + | core.PuregoSafeRegister(&xApplicationGLibType, lib, "g_application_get_type") | |||
| 1506 | + | ||||
| 1498 | core.PuregoSafeRegister(&xNewApplication, lib, "g_application_new") | 1507 | core.PuregoSafeRegister(&xNewApplication, lib, "g_application_new") | ||
| 1499 | 1508 | ||||
| 1500 | core.PuregoSafeRegister(&xApplicationActivate, lib, "g_application_activate") | 1509 | core.PuregoSafeRegister(&xApplicationActivate, lib, "g_application_activate") | ||
M v4/gio/gapplicationcommandline.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | // The #GApplicationCommandLineClass-struct | 14 | // The #GApplicationCommandLineClass-struct | ||
| @@ -204,6 +205,12 @@ type ApplicationCommandLine struct { | |||||
| 204 | gobject.Object | 205 | gobject.Object | ||
| 205 | } | 206 | } | ||
| 206 | 207 | ||||
| 208 | + | var xApplicationCommandLineGLibType func() types.GType | |||
| 209 | + | ||||
| 210 | + | func ApplicationCommandLineGLibType() types.GType { | |||
| 211 | + | return xApplicationCommandLineGLibType() | |||
| 212 | + | } | |||
| 213 | + | ||||
| 207 | func ApplicationCommandLineNewFromInternalPtr(ptr uintptr) *ApplicationCommandLine { | 214 | func ApplicationCommandLineNewFromInternalPtr(ptr uintptr) *ApplicationCommandLine { | ||
| 208 | cls := &ApplicationCommandLine{} | 215 | cls := &ApplicationCommandLine{} | ||
| 209 | cls.Ptr = ptr | 216 | cls.Ptr = ptr | ||
| @@ -456,6 +463,8 @@ func init() { | |||||
| 456 | panic(err) | 463 | panic(err) | ||
| 457 | } | 464 | } | ||
| 458 | 465 | ||||
| 466 | + | core.PuregoSafeRegister(&xApplicationCommandLineGLibType, lib, "g_application_command_line_get_type") | |||
| 467 | + | ||||
| 459 | core.PuregoSafeRegister(&xApplicationCommandLineCreateFileForArg, lib, "g_application_command_line_create_file_for_arg") | 468 | core.PuregoSafeRegister(&xApplicationCommandLineCreateFileForArg, lib, "g_application_command_line_create_file_for_arg") | ||
| 460 | core.PuregoSafeRegister(&xApplicationCommandLineGetArguments, lib, "g_application_command_line_get_arguments") | 469 | core.PuregoSafeRegister(&xApplicationCommandLineGetArguments, lib, "g_application_command_line_get_arguments") | ||
| 461 | core.PuregoSafeRegister(&xApplicationCommandLineGetCwd, lib, "g_application_command_line_get_cwd") | 470 | core.PuregoSafeRegister(&xApplicationCommandLineGetCwd, lib, "g_application_command_line_get_cwd") | ||
M v4/gio/gasyncinitable.go +10 -0
| @@ -136,6 +136,13 @@ type AsyncInitable interface { | |||||
| 136 | InitFinish(ResVar AsyncResult) bool | 136 | InitFinish(ResVar AsyncResult) bool | ||
| 137 | NewFinish(ResVar AsyncResult) *gobject.Object | 137 | NewFinish(ResVar AsyncResult) *gobject.Object | ||
| 138 | } | 138 | } | ||
| 139 | + | ||||
| 140 | + | var xAsyncInitableGLibType func() types.GType | |||
| 141 | + | ||||
| 142 | + | func AsyncInitableGLibType() types.GType { | |||
| 143 | + | return xAsyncInitableGLibType() | |||
| 144 | + | } | |||
| 145 | + | ||||
| 139 | type AsyncInitableBase struct { | 146 | type AsyncInitableBase struct { | ||
| 140 | Ptr uintptr | 147 | Ptr uintptr | ||
| 141 | } | 148 | } | ||
| @@ -246,8 +253,11 @@ func init() { | |||||
| 246 | if err != nil { | 253 | if err != nil { | ||
| 247 | panic(err) | 254 | panic(err) | ||
| 248 | } | 255 | } | ||
| 256 | + | ||||
| 249 | core.PuregoSafeRegister(&xAsyncInitableNewvAsync, lib, "g_async_initable_newv_async") | 257 | core.PuregoSafeRegister(&xAsyncInitableNewvAsync, lib, "g_async_initable_newv_async") | ||
| 250 | 258 | ||||
| 259 | + | core.PuregoSafeRegister(&xAsyncInitableGLibType, lib, "g_async_initable_get_type") | |||
| 260 | + | ||||
| 251 | core.PuregoSafeRegister(&XGAsyncInitableInitAsync, lib, "g_async_initable_init_async") | 261 | core.PuregoSafeRegister(&XGAsyncInitableInitAsync, lib, "g_async_initable_init_async") | ||
| 252 | core.PuregoSafeRegister(&XGAsyncInitableInitFinish, lib, "g_async_initable_init_finish") | 262 | core.PuregoSafeRegister(&XGAsyncInitableInitFinish, lib, "g_async_initable_init_finish") | ||
| 253 | core.PuregoSafeRegister(&XGAsyncInitableNewFinish, lib, "g_async_initable_new_finish") | 263 | core.PuregoSafeRegister(&XGAsyncInitableNewFinish, lib, "g_async_initable_new_finish") | ||
M v4/gio/gasyncresult.go +10 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | // Interface definition for #GAsyncResult. | 14 | // Interface definition for #GAsyncResult. | ||
| @@ -117,6 +118,13 @@ type AsyncResult interface { | |||||
| 117 | IsTagged(SourceTagVar uintptr) bool | 118 | IsTagged(SourceTagVar uintptr) bool | ||
| 118 | LegacyPropagateError() bool | 119 | LegacyPropagateError() bool | ||
| 119 | } | 120 | } | ||
| 121 | + | ||||
| 122 | + | var xAsyncResultGLibType func() types.GType | |||
| 123 | + | ||||
| 124 | + | func AsyncResultGLibType() types.GType { | |||
| 125 | + | return xAsyncResultGLibType() | |||
| 126 | + | } | |||
| 127 | + | ||||
| 120 | type AsyncResultBase struct { | 128 | type AsyncResultBase struct { | ||
| 121 | Ptr uintptr | 129 | Ptr uintptr | ||
| 122 | } | 130 | } | ||
| @@ -190,6 +198,8 @@ func init() { | |||||
| 190 | panic(err) | 198 | panic(err) | ||
| 191 | } | 199 | } | ||
| 192 | 200 | ||||
| 201 | + | core.PuregoSafeRegister(&xAsyncResultGLibType, lib, "g_async_result_get_type") | |||
| 202 | + | ||||
| 193 | core.PuregoSafeRegister(&XGAsyncResultGetSourceObject, lib, "g_async_result_get_source_object") | 203 | core.PuregoSafeRegister(&XGAsyncResultGetSourceObject, lib, "g_async_result_get_source_object") | ||
| 194 | core.PuregoSafeRegister(&XGAsyncResultGetUserData, lib, "g_async_result_get_user_data") | 204 | core.PuregoSafeRegister(&XGAsyncResultGetUserData, lib, "g_async_result_get_user_data") | ||
| 195 | core.PuregoSafeRegister(&XGAsyncResultIsTagged, lib, "g_async_result_is_tagged") | 205 | core.PuregoSafeRegister(&XGAsyncResultIsTagged, lib, "g_async_result_is_tagged") | ||
M v4/gio/gbufferedinputstream.go +9 -0
| @@ -7,6 +7,7 @@ import ( | |||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 10 | ) | 11 | ) | ||
| 11 | 12 | ||||
| 12 | type BufferedInputStreamClass struct { | 13 | type BufferedInputStreamClass struct { | ||
| @@ -42,6 +43,12 @@ type BufferedInputStream struct { | |||||
| 42 | FilterInputStream | 43 | FilterInputStream | ||
| 43 | } | 44 | } | ||
| 44 | 45 | ||||
| 46 | + | var xBufferedInputStreamGLibType func() types.GType | |||
| 47 | + | ||||
| 48 | + | func BufferedInputStreamGLibType() types.GType { | |||
| 49 | + | return xBufferedInputStreamGLibType() | |||
| 50 | + | } | |||
| 51 | + | ||||
| 45 | func BufferedInputStreamNewFromInternalPtr(ptr uintptr) *BufferedInputStream { | 52 | func BufferedInputStreamNewFromInternalPtr(ptr uintptr) *BufferedInputStream { | ||
| 46 | cls := &BufferedInputStream{} | 53 | cls := &BufferedInputStream{} | ||
| 47 | cls.Ptr = ptr | 54 | cls.Ptr = ptr | ||
| @@ -304,6 +311,8 @@ func init() { | |||||
| 304 | panic(err) | 311 | panic(err) | ||
| 305 | } | 312 | } | ||
| 306 | 313 | ||||
| 314 | + | core.PuregoSafeRegister(&xBufferedInputStreamGLibType, lib, "g_buffered_input_stream_get_type") | |||
| 315 | + | ||||
| 307 | core.PuregoSafeRegister(&xNewBufferedInputStream, lib, "g_buffered_input_stream_new") | 316 | core.PuregoSafeRegister(&xNewBufferedInputStream, lib, "g_buffered_input_stream_new") | ||
| 308 | core.PuregoSafeRegister(&xNewBufferedInputStreamSized, lib, "g_buffered_input_stream_new_sized") | 317 | core.PuregoSafeRegister(&xNewBufferedInputStreamSized, lib, "g_buffered_input_stream_new_sized") | ||
| 309 | 318 | ||||
M v4/gio/gbufferedoutputstream.go +9 -0
| @@ -7,6 +7,7 @@ import ( | |||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 10 | ) | 11 | ) | ||
| 11 | 12 | ||||
| 12 | type BufferedOutputStreamClass struct { | 13 | type BufferedOutputStreamClass struct { | ||
| @@ -42,6 +43,12 @@ type BufferedOutputStream struct { | |||||
| 42 | FilterOutputStream | 43 | FilterOutputStream | ||
| 43 | } | 44 | } | ||
| 44 | 45 | ||||
| 46 | + | var xBufferedOutputStreamGLibType func() types.GType | |||
| 47 | + | ||||
| 48 | + | func BufferedOutputStreamGLibType() types.GType { | |||
| 49 | + | return xBufferedOutputStreamGLibType() | |||
| 50 | + | } | |||
| 51 | + | ||||
| 45 | func BufferedOutputStreamNewFromInternalPtr(ptr uintptr) *BufferedOutputStream { | 52 | func BufferedOutputStreamNewFromInternalPtr(ptr uintptr) *BufferedOutputStream { | ||
| 46 | cls := &BufferedOutputStream{} | 53 | cls := &BufferedOutputStream{} | ||
| 47 | cls.Ptr = ptr | 54 | cls.Ptr = ptr | ||
| @@ -200,6 +207,8 @@ func init() { | |||||
| 200 | panic(err) | 207 | panic(err) | ||
| 201 | } | 208 | } | ||
| 202 | 209 | ||||
| 210 | + | core.PuregoSafeRegister(&xBufferedOutputStreamGLibType, lib, "g_buffered_output_stream_get_type") | |||
| 211 | + | ||||
| 203 | core.PuregoSafeRegister(&xNewBufferedOutputStream, lib, "g_buffered_output_stream_new") | 212 | core.PuregoSafeRegister(&xNewBufferedOutputStream, lib, "g_buffered_output_stream_new") | ||
| 204 | core.PuregoSafeRegister(&xNewBufferedOutputStreamSized, lib, "g_buffered_output_stream_new_sized") | 213 | core.PuregoSafeRegister(&xNewBufferedOutputStreamSized, lib, "g_buffered_output_stream_new_sized") | ||
| 205 | 214 | ||||
M v4/gio/gcancellable.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | type CancellableClass struct { | 14 | type CancellableClass struct { | ||
| @@ -32,6 +33,12 @@ type Cancellable struct { | |||||
| 32 | gobject.Object | 33 | gobject.Object | ||
| 33 | } | 34 | } | ||
| 34 | 35 | ||||
| 36 | + | var xCancellableGLibType func() types.GType | |||
| 37 | + | ||||
| 38 | + | func CancellableGLibType() types.GType { | |||
| 39 | + | return xCancellableGLibType() | |||
| 40 | + | } | |||
| 41 | + | ||||
| 35 | func CancellableNewFromInternalPtr(ptr uintptr) *Cancellable { | 42 | func CancellableNewFromInternalPtr(ptr uintptr) *Cancellable { | ||
| 36 | cls := &Cancellable{} | 43 | cls := &Cancellable{} | ||
| 37 | cls.Ptr = ptr | 44 | cls.Ptr = ptr | ||
| @@ -386,6 +393,8 @@ func init() { | |||||
| 386 | panic(err) | 393 | panic(err) | ||
| 387 | } | 394 | } | ||
| 388 | 395 | ||||
| 396 | + | core.PuregoSafeRegister(&xCancellableGLibType, lib, "g_cancellable_get_type") | |||
| 397 | + | ||||
| 389 | core.PuregoSafeRegister(&xNewCancellable, lib, "g_cancellable_new") | 398 | core.PuregoSafeRegister(&xNewCancellable, lib, "g_cancellable_new") | ||
| 390 | 399 | ||||
| 391 | core.PuregoSafeRegister(&xCancellableCancel, lib, "g_cancellable_cancel") | 400 | core.PuregoSafeRegister(&xCancellableCancel, lib, "g_cancellable_cancel") | ||
M v4/gio/gcharsetconverter.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | type CharsetConverterClass struct { | 14 | type CharsetConverterClass struct { | ||
| @@ -24,6 +25,12 @@ type CharsetConverter struct { | |||||
| 24 | gobject.Object | 25 | gobject.Object | ||
| 25 | } | 26 | } | ||
| 26 | 27 | ||||
| 28 | + | var xCharsetConverterGLibType func() types.GType | |||
| 29 | + | ||||
| 30 | + | func CharsetConverterGLibType() types.GType { | |||
| 31 | + | return xCharsetConverterGLibType() | |||
| 32 | + | } | |||
| 33 | + | ||||
| 27 | func CharsetConverterNewFromInternalPtr(ptr uintptr) *CharsetConverter { | 34 | func CharsetConverterNewFromInternalPtr(ptr uintptr) *CharsetConverter { | ||
| 28 | cls := &CharsetConverter{} | 35 | cls := &CharsetConverter{} | ||
| 29 | cls.Ptr = ptr | 36 | cls.Ptr = ptr | ||
| @@ -243,6 +250,8 @@ func init() { | |||||
| 243 | panic(err) | 250 | panic(err) | ||
| 244 | } | 251 | } | ||
| 245 | 252 | ||||
| 253 | + | core.PuregoSafeRegister(&xCharsetConverterGLibType, lib, "g_charset_converter_get_type") | |||
| 254 | + | ||||
| 246 | core.PuregoSafeRegister(&xNewCharsetConverter, lib, "g_charset_converter_new") | 255 | core.PuregoSafeRegister(&xNewCharsetConverter, lib, "g_charset_converter_new") | ||
| 247 | 256 | ||||
| 248 | core.PuregoSafeRegister(&xCharsetConverterGetNumFallbacks, lib, "g_charset_converter_get_num_fallbacks") | 257 | core.PuregoSafeRegister(&xCharsetConverterGetNumFallbacks, lib, "g_charset_converter_get_num_fallbacks") | ||
M v4/gio/gcontenttype.go +1 -0
| @@ -220,6 +220,7 @@ func init() { | |||||
| 220 | if err != nil { | 220 | if err != nil { | ||
| 221 | panic(err) | 221 | panic(err) | ||
| 222 | } | 222 | } | ||
| 223 | + | ||||
| 223 | core.PuregoSafeRegister(&xContentTypeCanBeExecutable, lib, "g_content_type_can_be_executable") | 224 | core.PuregoSafeRegister(&xContentTypeCanBeExecutable, lib, "g_content_type_can_be_executable") | ||
| 224 | core.PuregoSafeRegister(&xContentTypeEquals, lib, "g_content_type_equals") | 225 | core.PuregoSafeRegister(&xContentTypeEquals, lib, "g_content_type_equals") | ||
| 225 | core.PuregoSafeRegister(&xContentTypeFromMimeType, lib, "g_content_type_from_mime_type") | 226 | core.PuregoSafeRegister(&xContentTypeFromMimeType, lib, "g_content_type_from_mime_type") | ||
M v4/gio/gconverter.go +10 -0
| @@ -7,6 +7,7 @@ import ( | |||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 10 | ) | 11 | ) | ||
| 11 | 12 | ||||
| 12 | // Provides an interface for converting data from one type | 13 | // Provides an interface for converting data from one type | ||
| @@ -33,6 +34,13 @@ type Converter interface { | |||||
| 33 | Convert(InbufVar []byte, InbufSizeVar uint, OutbufVar []byte, OutbufSizeVar uint, FlagsVar ConverterFlags, BytesReadVar uint, BytesWrittenVar uint) ConverterResult | 34 | Convert(InbufVar []byte, InbufSizeVar uint, OutbufVar []byte, OutbufSizeVar uint, FlagsVar ConverterFlags, BytesReadVar uint, BytesWrittenVar uint) ConverterResult | ||
| 34 | Reset() | 35 | Reset() | ||
| 35 | } | 36 | } | ||
| 37 | + | ||||
| 38 | + | var xConverterGLibType func() types.GType | |||
| 39 | + | ||||
| 40 | + | func ConverterGLibType() types.GType { | |||
| 41 | + | return xConverterGLibType() | |||
| 42 | + | } | |||
| 43 | + | ||||
| 36 | type ConverterBase struct { | 44 | type ConverterBase struct { | ||
| 37 | Ptr uintptr | 45 | Ptr uintptr | ||
| 38 | } | 46 | } | ||
| @@ -156,6 +164,8 @@ func init() { | |||||
| 156 | panic(err) | 164 | panic(err) | ||
| 157 | } | 165 | } | ||
| 158 | 166 | ||||
| 167 | + | core.PuregoSafeRegister(&xConverterGLibType, lib, "g_converter_get_type") | |||
| 168 | + | ||||
| 159 | core.PuregoSafeRegister(&XGConverterConvert, lib, "g_converter_convert") | 169 | core.PuregoSafeRegister(&XGConverterConvert, lib, "g_converter_convert") | ||
| 160 | core.PuregoSafeRegister(&XGConverterReset, lib, "g_converter_reset") | 170 | core.PuregoSafeRegister(&XGConverterReset, lib, "g_converter_reset") | ||
| 161 | 171 | ||||
M v4/gio/gconverterinputstream.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | type ConverterInputStreamClass struct { | 14 | type ConverterInputStreamClass struct { | ||
| @@ -34,6 +35,12 @@ type ConverterInputStream struct { | |||||
| 34 | FilterInputStream | 35 | FilterInputStream | ||
| 35 | } | 36 | } | ||
| 36 | 37 | ||||
| 38 | + | var xConverterInputStreamGLibType func() types.GType | |||
| 39 | + | ||||
| 40 | + | func ConverterInputStreamGLibType() types.GType { | |||
| 41 | + | return xConverterInputStreamGLibType() | |||
| 42 | + | } | |||
| 43 | + | ||||
| 37 | func ConverterInputStreamNewFromInternalPtr(ptr uintptr) *ConverterInputStream { | 44 | func ConverterInputStreamNewFromInternalPtr(ptr uintptr) *ConverterInputStream { | ||
| 38 | cls := &ConverterInputStream{} | 45 | cls := &ConverterInputStream{} | ||
| 39 | cls.Ptr = ptr | 46 | cls.Ptr = ptr | ||
| @@ -150,6 +157,8 @@ func init() { | |||||
| 150 | panic(err) | 157 | panic(err) | ||
| 151 | } | 158 | } | ||
| 152 | 159 | ||||
| 160 | + | core.PuregoSafeRegister(&xConverterInputStreamGLibType, lib, "g_converter_input_stream_get_type") | |||
| 161 | + | ||||
| 153 | core.PuregoSafeRegister(&xNewConverterInputStream, lib, "g_converter_input_stream_new") | 162 | core.PuregoSafeRegister(&xNewConverterInputStream, lib, "g_converter_input_stream_new") | ||
| 154 | 163 | ||||
| 155 | core.PuregoSafeRegister(&xConverterInputStreamGetConverter, lib, "g_converter_input_stream_get_converter") | 164 | core.PuregoSafeRegister(&xConverterInputStreamGetConverter, lib, "g_converter_input_stream_get_converter") | ||
M v4/gio/gconverteroutputstream.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | type ConverterOutputStreamClass struct { | 14 | type ConverterOutputStreamClass struct { | ||
| @@ -34,6 +35,12 @@ type ConverterOutputStream struct { | |||||
| 34 | FilterOutputStream | 35 | FilterOutputStream | ||
| 35 | } | 36 | } | ||
| 36 | 37 | ||||
| 38 | + | var xConverterOutputStreamGLibType func() types.GType | |||
| 39 | + | ||||
| 40 | + | func ConverterOutputStreamGLibType() types.GType { | |||
| 41 | + | return xConverterOutputStreamGLibType() | |||
| 42 | + | } | |||
| 43 | + | ||||
| 37 | func ConverterOutputStreamNewFromInternalPtr(ptr uintptr) *ConverterOutputStream { | 44 | func ConverterOutputStreamNewFromInternalPtr(ptr uintptr) *ConverterOutputStream { | ||
| 38 | cls := &ConverterOutputStream{} | 45 | cls := &ConverterOutputStream{} | ||
| 39 | cls.Ptr = ptr | 46 | cls.Ptr = ptr | ||
| @@ -181,6 +188,8 @@ func init() { | |||||
| 181 | panic(err) | 188 | panic(err) | ||
| 182 | } | 189 | } | ||
| 183 | 190 | ||||
| 191 | + | core.PuregoSafeRegister(&xConverterOutputStreamGLibType, lib, "g_converter_output_stream_get_type") | |||
| 192 | + | ||||
| 184 | core.PuregoSafeRegister(&xNewConverterOutputStream, lib, "g_converter_output_stream_new") | 193 | core.PuregoSafeRegister(&xNewConverterOutputStream, lib, "g_converter_output_stream_new") | ||
| 185 | 194 | ||||
| 186 | core.PuregoSafeRegister(&xConverterOutputStreamGetConverter, lib, "g_converter_output_stream_get_converter") | 195 | core.PuregoSafeRegister(&xConverterOutputStreamGetConverter, lib, "g_converter_output_stream_get_converter") | ||
M v4/gio/gcredentials.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | // Class structure for #GCredentials. | 14 | // Class structure for #GCredentials. | ||
| @@ -59,6 +60,12 @@ type Credentials struct { | |||||
| 59 | gobject.Object | 60 | gobject.Object | ||
| 60 | } | 61 | } | ||
| 61 | 62 | ||||
| 63 | + | var xCredentialsGLibType func() types.GType | |||
| 64 | + | ||||
| 65 | + | func CredentialsGLibType() types.GType { | |||
| 66 | + | return xCredentialsGLibType() | |||
| 67 | + | } | |||
| 68 | + | ||||
| 62 | func CredentialsNewFromInternalPtr(ptr uintptr) *Credentials { | 69 | func CredentialsNewFromInternalPtr(ptr uintptr) *Credentials { | ||
| 63 | cls := &Credentials{} | 70 | cls := &Credentials{} | ||
| 64 | cls.Ptr = ptr | 71 | cls.Ptr = ptr | ||
| @@ -210,6 +217,8 @@ func init() { | |||||
| 210 | panic(err) | 217 | panic(err) | ||
| 211 | } | 218 | } | ||
| 212 | 219 | ||||
| 220 | + | core.PuregoSafeRegister(&xCredentialsGLibType, lib, "g_credentials_get_type") | |||
| 221 | + | ||||
| 213 | core.PuregoSafeRegister(&xNewCredentials, lib, "g_credentials_new") | 222 | core.PuregoSafeRegister(&xNewCredentials, lib, "g_credentials_new") | ||
| 214 | 223 | ||||
| 215 | core.PuregoSafeRegister(&xCredentialsGetNative, lib, "g_credentials_get_native") | 224 | core.PuregoSafeRegister(&xCredentialsGetNative, lib, "g_credentials_get_native") | ||
M v4/gio/gdatagrambased.go +10 -0
| @@ -7,6 +7,7 @@ import ( | |||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 10 | ) | 11 | ) | ||
| 11 | 12 | ||||
| 12 | // Provides an interface for socket-like objects which have datagram semantics, | 13 | // Provides an interface for socket-like objects which have datagram semantics, | ||
| @@ -78,6 +79,13 @@ type DatagramBased interface { | |||||
| 78 | ReceiveMessages(MessagesVar []InputMessage, NumMessagesVar uint, FlagsVar int, TimeoutVar int64, CancellableVar *Cancellable) int | 79 | ReceiveMessages(MessagesVar []InputMessage, NumMessagesVar uint, FlagsVar int, TimeoutVar int64, CancellableVar *Cancellable) int | ||
| 79 | SendMessages(MessagesVar []OutputMessage, NumMessagesVar uint, FlagsVar int, TimeoutVar int64, CancellableVar *Cancellable) int | 80 | SendMessages(MessagesVar []OutputMessage, NumMessagesVar uint, FlagsVar int, TimeoutVar int64, CancellableVar *Cancellable) int | ||
| 80 | } | 81 | } | ||
| 82 | + | ||||
| 83 | + | var xDatagramBasedGLibType func() types.GType | |||
| 84 | + | ||||
| 85 | + | func DatagramBasedGLibType() types.GType { | |||
| 86 | + | return xDatagramBasedGLibType() | |||
| 87 | + | } | |||
| 88 | + | ||||
| 81 | type DatagramBasedBase struct { | 89 | type DatagramBasedBase struct { | ||
| 82 | Ptr uintptr | 90 | Ptr uintptr | ||
| 83 | } | 91 | } | ||
| @@ -294,6 +302,8 @@ func init() { | |||||
| 294 | panic(err) | 302 | panic(err) | ||
| 295 | } | 303 | } | ||
| 296 | 304 | ||||
| 305 | + | core.PuregoSafeRegister(&xDatagramBasedGLibType, lib, "g_datagram_based_get_type") | |||
| 306 | + | ||||
| 297 | core.PuregoSafeRegister(&XGDatagramBasedConditionCheck, lib, "g_datagram_based_condition_check") | 307 | core.PuregoSafeRegister(&XGDatagramBasedConditionCheck, lib, "g_datagram_based_condition_check") | ||
| 298 | core.PuregoSafeRegister(&XGDatagramBasedConditionWait, lib, "g_datagram_based_condition_wait") | 308 | core.PuregoSafeRegister(&XGDatagramBasedConditionWait, lib, "g_datagram_based_condition_wait") | ||
| 299 | core.PuregoSafeRegister(&XGDatagramBasedCreateSource, lib, "g_datagram_based_create_source") | 309 | core.PuregoSafeRegister(&XGDatagramBasedCreateSource, lib, "g_datagram_based_create_source") | ||
M v4/gio/gdatainputstream.go +9 -0
| @@ -7,6 +7,7 @@ import ( | |||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 10 | ) | 11 | ) | ||
| 11 | 12 | ||||
| 12 | type DataInputStreamClass struct { | 13 | type DataInputStreamClass struct { | ||
| @@ -30,6 +31,12 @@ type DataInputStream struct { | |||||
| 30 | BufferedInputStream | 31 | BufferedInputStream | ||
| 31 | } | 32 | } | ||
| 32 | 33 | ||||
| 34 | + | var xDataInputStreamGLibType func() types.GType | |||
| 35 | + | ||||
| 36 | + | func DataInputStreamGLibType() types.GType { | |||
| 37 | + | return xDataInputStreamGLibType() | |||
| 38 | + | } | |||
| 39 | + | ||||
| 33 | func DataInputStreamNewFromInternalPtr(ptr uintptr) *DataInputStream { | 40 | func DataInputStreamNewFromInternalPtr(ptr uintptr) *DataInputStream { | ||
| 34 | cls := &DataInputStream{} | 41 | cls := &DataInputStream{} | ||
| 35 | cls.Ptr = ptr | 42 | cls.Ptr = ptr | ||
| @@ -520,6 +527,8 @@ func init() { | |||||
| 520 | panic(err) | 527 | panic(err) | ||
| 521 | } | 528 | } | ||
| 522 | 529 | ||||
| 530 | + | core.PuregoSafeRegister(&xDataInputStreamGLibType, lib, "g_data_input_stream_get_type") | |||
| 531 | + | ||||
| 523 | core.PuregoSafeRegister(&xNewDataInputStream, lib, "g_data_input_stream_new") | 532 | core.PuregoSafeRegister(&xNewDataInputStream, lib, "g_data_input_stream_new") | ||
| 524 | 533 | ||||
| 525 | core.PuregoSafeRegister(&xDataInputStreamGetByteOrder, lib, "g_data_input_stream_get_byte_order") | 534 | core.PuregoSafeRegister(&xDataInputStreamGetByteOrder, lib, "g_data_input_stream_get_byte_order") | ||
M v4/gio/gdataoutputstream.go +9 -0
| @@ -7,6 +7,7 @@ import ( | |||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 10 | ) | 11 | ) | ||
| 11 | 12 | ||||
| 12 | type DataOutputStreamClass struct { | 13 | type DataOutputStreamClass struct { | ||
| @@ -30,6 +31,12 @@ type DataOutputStream struct { | |||||
| 30 | FilterOutputStream | 31 | FilterOutputStream | ||
| 31 | } | 32 | } | ||
| 32 | 33 | ||||
| 34 | + | var xDataOutputStreamGLibType func() types.GType | |||
| 35 | + | ||||
| 36 | + | func DataOutputStreamGLibType() types.GType { | |||
| 37 | + | return xDataOutputStreamGLibType() | |||
| 38 | + | } | |||
| 39 | + | ||||
| 33 | func DataOutputStreamNewFromInternalPtr(ptr uintptr) *DataOutputStream { | 40 | func DataOutputStreamNewFromInternalPtr(ptr uintptr) *DataOutputStream { | ||
| 34 | cls := &DataOutputStream{} | 41 | cls := &DataOutputStream{} | ||
| 35 | cls.Ptr = ptr | 42 | cls.Ptr = ptr | ||
| @@ -263,6 +270,8 @@ func init() { | |||||
| 263 | panic(err) | 270 | panic(err) | ||
| 264 | } | 271 | } | ||
| 265 | 272 | ||||
| 273 | + | core.PuregoSafeRegister(&xDataOutputStreamGLibType, lib, "g_data_output_stream_get_type") | |||
| 274 | + | ||||
| 266 | core.PuregoSafeRegister(&xNewDataOutputStream, lib, "g_data_output_stream_new") | 275 | core.PuregoSafeRegister(&xNewDataOutputStream, lib, "g_data_output_stream_new") | ||
| 267 | 276 | ||||
| 268 | core.PuregoSafeRegister(&xDataOutputStreamGetByteOrder, lib, "g_data_output_stream_get_byte_order") | 277 | core.PuregoSafeRegister(&xDataOutputStreamGetByteOrder, lib, "g_data_output_stream_get_byte_order") | ||
M v4/gio/gdbusaddress.go +1 -0
| @@ -150,6 +150,7 @@ func init() { | |||||
| 150 | if err != nil { | 150 | if err != nil { | ||
| 151 | panic(err) | 151 | panic(err) | ||
| 152 | } | 152 | } | ||
| 153 | + | ||||
| 153 | core.PuregoSafeRegister(&xDbusAddressEscapeValue, lib, "g_dbus_address_escape_value") | 154 | core.PuregoSafeRegister(&xDbusAddressEscapeValue, lib, "g_dbus_address_escape_value") | ||
| 154 | core.PuregoSafeRegister(&xDbusAddressGetForBusSync, lib, "g_dbus_address_get_for_bus_sync") | 155 | core.PuregoSafeRegister(&xDbusAddressGetForBusSync, lib, "g_dbus_address_get_for_bus_sync") | ||
| 155 | core.PuregoSafeRegister(&xDbusAddressGetStream, lib, "g_dbus_address_get_stream") | 156 | core.PuregoSafeRegister(&xDbusAddressGetStream, lib, "g_dbus_address_get_stream") | ||
M v4/gio/gdbusconnection.go +1 -0
| @@ -290,6 +290,7 @@ func init() { | |||||
| 290 | if err != nil { | 290 | if err != nil { | ||
| 291 | panic(err) | 291 | panic(err) | ||
| 292 | } | 292 | } | ||
| 293 | + | ||||
| 293 | core.PuregoSafeRegister(&xBusGet, lib, "g_bus_get") | 294 | core.PuregoSafeRegister(&xBusGet, lib, "g_bus_get") | ||
| 294 | core.PuregoSafeRegister(&xBusGetFinish, lib, "g_bus_get_finish") | 295 | core.PuregoSafeRegister(&xBusGetFinish, lib, "g_bus_get_finish") | ||
| 295 | core.PuregoSafeRegister(&xBusGetSync, lib, "g_bus_get_sync") | 296 | core.PuregoSafeRegister(&xBusGetSync, lib, "g_bus_get_sync") | ||
M v4/gio/gdbuserror.go +1 -0
| @@ -150,6 +150,7 @@ func init() { | |||||
| 150 | if err != nil { | 150 | if err != nil { | ||
| 151 | panic(err) | 151 | panic(err) | ||
| 152 | } | 152 | } | ||
| 153 | + | ||||
| 153 | core.PuregoSafeRegister(&xDbusErrorEncodeGerror, lib, "g_dbus_error_encode_gerror") | 154 | core.PuregoSafeRegister(&xDbusErrorEncodeGerror, lib, "g_dbus_error_encode_gerror") | ||
| 154 | core.PuregoSafeRegister(&xDbusErrorGetRemoteError, lib, "g_dbus_error_get_remote_error") | 155 | core.PuregoSafeRegister(&xDbusErrorGetRemoteError, lib, "g_dbus_error_get_remote_error") | ||
| 155 | core.PuregoSafeRegister(&xDbusErrorIsRemoteError, lib, "g_dbus_error_is_remote_error") | 156 | core.PuregoSafeRegister(&xDbusErrorIsRemoteError, lib, "g_dbus_error_is_remote_error") | ||
M v4/gio/gdbusinterface.go +10 -0
| @@ -7,6 +7,7 @@ import ( | |||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 10 | ) | 11 | ) | ||
| 11 | 12 | ||||
| 12 | // Base type for D-Bus interfaces. | 13 | // Base type for D-Bus interfaces. | ||
| @@ -29,6 +30,13 @@ type DBusInterface interface { | |||||
| 29 | GetObject() *DBusObjectBase | 30 | GetObject() *DBusObjectBase | ||
| 30 | SetObject(ObjectVar DBusObject) | 31 | SetObject(ObjectVar DBusObject) | ||
| 31 | } | 32 | } | ||
| 33 | + | ||||
| 34 | + | var xDBusInterfaceGLibType func() types.GType | |||
| 35 | + | ||||
| 36 | + | func DBusInterfaceGLibType() types.GType { | |||
| 37 | + | return xDBusInterfaceGLibType() | |||
| 38 | + | } | |||
| 39 | + | ||||
| 32 | type DBusInterfaceBase struct { | 40 | type DBusInterfaceBase struct { | ||
| 33 | Ptr uintptr | 41 | Ptr uintptr | ||
| 34 | } | 42 | } | ||
| @@ -102,6 +110,8 @@ func init() { | |||||
| 102 | panic(err) | 110 | panic(err) | ||
| 103 | } | 111 | } | ||
| 104 | 112 | ||||
| 113 | + | core.PuregoSafeRegister(&xDBusInterfaceGLibType, lib, "g_dbus_interface_get_type") | |||
| 114 | + | ||||
| 105 | core.PuregoSafeRegister(&XGDbusInterfaceDupObject, lib, "g_dbus_interface_dup_object") | 115 | core.PuregoSafeRegister(&XGDbusInterfaceDupObject, lib, "g_dbus_interface_dup_object") | ||
| 106 | core.PuregoSafeRegister(&XGDbusInterfaceGetInfo, lib, "g_dbus_interface_get_info") | 116 | core.PuregoSafeRegister(&XGDbusInterfaceGetInfo, lib, "g_dbus_interface_get_info") | ||
| 107 | core.PuregoSafeRegister(&XGDbusInterfaceGetObject, lib, "g_dbus_interface_get_object") | 117 | core.PuregoSafeRegister(&XGDbusInterfaceGetObject, lib, "g_dbus_interface_get_object") | ||
M v4/gio/gdbusinterfaceskeleton.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | // Class structure for #GDBusInterfaceSkeleton. | 14 | // Class structure for #GDBusInterfaceSkeleton. | ||
| @@ -35,6 +36,12 @@ type DBusInterfaceSkeleton struct { | |||||
| 35 | gobject.Object | 36 | gobject.Object | ||
| 36 | } | 37 | } | ||
| 37 | 38 | ||||
| 39 | + | var xDBusInterfaceSkeletonGLibType func() types.GType | |||
| 40 | + | ||||
| 41 | + | func DBusInterfaceSkeletonGLibType() types.GType { | |||
| 42 | + | return xDBusInterfaceSkeletonGLibType() | |||
| 43 | + | } | |||
| 44 | + | ||||
| 38 | func DBusInterfaceSkeletonNewFromInternalPtr(ptr uintptr) *DBusInterfaceSkeleton { | 45 | func DBusInterfaceSkeletonNewFromInternalPtr(ptr uintptr) *DBusInterfaceSkeleton { | ||
| 39 | cls := &DBusInterfaceSkeleton{} | 46 | cls := &DBusInterfaceSkeleton{} | ||
| 40 | cls.Ptr = ptr | 47 | cls.Ptr = ptr | ||
| @@ -302,6 +309,8 @@ func init() { | |||||
| 302 | panic(err) | 309 | panic(err) | ||
| 303 | } | 310 | } | ||
| 304 | 311 | ||||
| 312 | + | core.PuregoSafeRegister(&xDBusInterfaceSkeletonGLibType, lib, "g_dbus_interface_skeleton_get_type") | |||
| 313 | + | ||||
| 305 | core.PuregoSafeRegister(&xDBusInterfaceSkeletonExport, lib, "g_dbus_interface_skeleton_export") | 314 | core.PuregoSafeRegister(&xDBusInterfaceSkeletonExport, lib, "g_dbus_interface_skeleton_export") | ||
| 306 | core.PuregoSafeRegister(&xDBusInterfaceSkeletonFlush, lib, "g_dbus_interface_skeleton_flush") | 315 | core.PuregoSafeRegister(&xDBusInterfaceSkeletonFlush, lib, "g_dbus_interface_skeleton_flush") | ||
| 307 | core.PuregoSafeRegister(&xDBusInterfaceSkeletonGetConnection, lib, "g_dbus_interface_skeleton_get_connection") | 316 | core.PuregoSafeRegister(&xDBusInterfaceSkeletonGetConnection, lib, "g_dbus_interface_skeleton_get_connection") | ||
M v4/gio/gdbusintrospection.go +58 -0
| @@ -7,6 +7,7 @@ import ( | |||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 10 | ) | 11 | ) | ||
| 11 | 12 | ||||
| 12 | // Information about an annotation. | 13 | // Information about an annotation. | ||
| @@ -20,6 +21,12 @@ type DBusAnnotationInfo struct { | |||||
| 20 | Annotations uintptr | 21 | Annotations uintptr | ||
| 21 | } | 22 | } | ||
| 22 | 23 | ||||
| 24 | + | var xDBusAnnotationInfoGLibType func() types.GType | |||
| 25 | + | ||||
| 26 | + | func DBusAnnotationInfoGLibType() types.GType { | |||
| 27 | + | return xDBusAnnotationInfoGLibType() | |||
| 28 | + | } | |||
| 29 | + | ||||
| 23 | func (x *DBusAnnotationInfo) GoPointer() uintptr { | 30 | func (x *DBusAnnotationInfo) GoPointer() uintptr { | ||
| 24 | return uintptr(unsafe.Pointer(x)) | 31 | return uintptr(unsafe.Pointer(x)) | ||
| 25 | } | 32 | } | ||
| @@ -56,6 +63,12 @@ type DBusArgInfo struct { | |||||
| 56 | Annotations uintptr | 63 | Annotations uintptr | ||
| 57 | } | 64 | } | ||
| 58 | 65 | ||||
| 66 | + | var xDBusArgInfoGLibType func() types.GType | |||
| 67 | + | ||||
| 68 | + | func DBusArgInfoGLibType() types.GType { | |||
| 69 | + | return xDBusArgInfoGLibType() | |||
| 70 | + | } | |||
| 71 | + | ||||
| 59 | func (x *DBusArgInfo) GoPointer() uintptr { | 72 | func (x *DBusArgInfo) GoPointer() uintptr { | ||
| 60 | return uintptr(unsafe.Pointer(x)) | 73 | return uintptr(unsafe.Pointer(x)) | ||
| 61 | } | 74 | } | ||
| @@ -96,6 +109,12 @@ type DBusInterfaceInfo struct { | |||||
| 96 | Annotations uintptr | 109 | Annotations uintptr | ||
| 97 | } | 110 | } | ||
| 98 | 111 | ||||
| 112 | + | var xDBusInterfaceInfoGLibType func() types.GType | |||
| 113 | + | ||||
| 114 | + | func DBusInterfaceInfoGLibType() types.GType { | |||
| 115 | + | return xDBusInterfaceInfoGLibType() | |||
| 116 | + | } | |||
| 117 | + | ||||
| 99 | func (x *DBusInterfaceInfo) GoPointer() uintptr { | 118 | func (x *DBusInterfaceInfo) GoPointer() uintptr { | ||
| 100 | return uintptr(unsafe.Pointer(x)) | 119 | return uintptr(unsafe.Pointer(x)) | ||
| 101 | } | 120 | } | ||
| @@ -213,6 +232,12 @@ type DBusMethodInfo struct { | |||||
| 213 | Annotations uintptr | 232 | Annotations uintptr | ||
| 214 | } | 233 | } | ||
| 215 | 234 | ||||
| 235 | + | var xDBusMethodInfoGLibType func() types.GType | |||
| 236 | + | ||||
| 237 | + | func DBusMethodInfoGLibType() types.GType { | |||
| 238 | + | return xDBusMethodInfoGLibType() | |||
| 239 | + | } | |||
| 240 | + | ||||
| 216 | func (x *DBusMethodInfo) GoPointer() uintptr { | 241 | func (x *DBusMethodInfo) GoPointer() uintptr { | ||
| 217 | return uintptr(unsafe.Pointer(x)) | 242 | return uintptr(unsafe.Pointer(x)) | ||
| 218 | } | 243 | } | ||
| @@ -251,6 +276,12 @@ type DBusNodeInfo struct { | |||||
| 251 | Annotations uintptr | 276 | Annotations uintptr | ||
| 252 | } | 277 | } | ||
| 253 | 278 | ||||
| 279 | + | var xDBusNodeInfoGLibType func() types.GType | |||
| 280 | + | ||||
| 281 | + | func DBusNodeInfoGLibType() types.GType { | |||
| 282 | + | return xDBusNodeInfoGLibType() | |||
| 283 | + | } | |||
| 284 | + | ||||
| 254 | func (x *DBusNodeInfo) GoPointer() uintptr { | 285 | func (x *DBusNodeInfo) GoPointer() uintptr { | ||
| 255 | return uintptr(unsafe.Pointer(x)) | 286 | return uintptr(unsafe.Pointer(x)) | ||
| 256 | } | 287 | } | ||
| @@ -333,6 +364,12 @@ type DBusPropertyInfo struct { | |||||
| 333 | Annotations uintptr | 364 | Annotations uintptr | ||
| 334 | } | 365 | } | ||
| 335 | 366 | ||||
| 367 | + | var xDBusPropertyInfoGLibType func() types.GType | |||
| 368 | + | ||||
| 369 | + | func DBusPropertyInfoGLibType() types.GType { | |||
| 370 | + | return xDBusPropertyInfoGLibType() | |||
| 371 | + | } | |||
| 372 | + | ||||
| 336 | func (x *DBusPropertyInfo) GoPointer() uintptr { | 373 | func (x *DBusPropertyInfo) GoPointer() uintptr { | ||
| 337 | return uintptr(unsafe.Pointer(x)) | 374 | return uintptr(unsafe.Pointer(x)) | ||
| 338 | } | 375 | } | ||
| @@ -369,6 +406,12 @@ type DBusSignalInfo struct { | |||||
| 369 | Annotations uintptr | 406 | Annotations uintptr | ||
| 370 | } | 407 | } | ||
| 371 | 408 | ||||
| 409 | + | var xDBusSignalInfoGLibType func() types.GType | |||
| 410 | + | ||||
| 411 | + | func DBusSignalInfoGLibType() types.GType { | |||
| 412 | + | return xDBusSignalInfoGLibType() | |||
| 413 | + | } | |||
| 414 | + | ||||
| 372 | func (x *DBusSignalInfo) GoPointer() uintptr { | 415 | func (x *DBusSignalInfo) GoPointer() uintptr { | ||
| 373 | return uintptr(unsafe.Pointer(x)) | 416 | return uintptr(unsafe.Pointer(x)) | ||
| 374 | } | 417 | } | ||
| @@ -410,14 +453,21 @@ func init() { | |||||
| 410 | if err != nil { | 453 | if err != nil { | ||
| 411 | panic(err) | 454 | panic(err) | ||
| 412 | } | 455 | } | ||
| 456 | + | ||||
| 413 | core.PuregoSafeRegister(&xDbusAnnotationInfoLookup, lib, "g_dbus_annotation_info_lookup") | 457 | core.PuregoSafeRegister(&xDbusAnnotationInfoLookup, lib, "g_dbus_annotation_info_lookup") | ||
| 414 | 458 | ||||
| 459 | + | core.PuregoSafeRegister(&xDBusAnnotationInfoGLibType, lib, "g_dbus_annotation_info_get_type") | |||
| 460 | + | ||||
| 415 | core.PuregoSafeRegister(&xDBusAnnotationInfoRef, lib, "g_dbus_annotation_info_ref") | 461 | core.PuregoSafeRegister(&xDBusAnnotationInfoRef, lib, "g_dbus_annotation_info_ref") | ||
| 416 | core.PuregoSafeRegister(&xDBusAnnotationInfoUnref, lib, "g_dbus_annotation_info_unref") | 462 | core.PuregoSafeRegister(&xDBusAnnotationInfoUnref, lib, "g_dbus_annotation_info_unref") | ||
| 417 | 463 | ||||
| 464 | + | core.PuregoSafeRegister(&xDBusArgInfoGLibType, lib, "g_dbus_arg_info_get_type") | |||
| 465 | + | ||||
| 418 | core.PuregoSafeRegister(&xDBusArgInfoRef, lib, "g_dbus_arg_info_ref") | 466 | core.PuregoSafeRegister(&xDBusArgInfoRef, lib, "g_dbus_arg_info_ref") | ||
| 419 | core.PuregoSafeRegister(&xDBusArgInfoUnref, lib, "g_dbus_arg_info_unref") | 467 | core.PuregoSafeRegister(&xDBusArgInfoUnref, lib, "g_dbus_arg_info_unref") | ||
| 420 | 468 | ||||
| 469 | + | core.PuregoSafeRegister(&xDBusInterfaceInfoGLibType, lib, "g_dbus_interface_info_get_type") | |||
| 470 | + | ||||
| 421 | core.PuregoSafeRegister(&xDBusInterfaceInfoCacheBuild, lib, "g_dbus_interface_info_cache_build") | 471 | core.PuregoSafeRegister(&xDBusInterfaceInfoCacheBuild, lib, "g_dbus_interface_info_cache_build") | ||
| 422 | core.PuregoSafeRegister(&xDBusInterfaceInfoCacheRelease, lib, "g_dbus_interface_info_cache_release") | 472 | core.PuregoSafeRegister(&xDBusInterfaceInfoCacheRelease, lib, "g_dbus_interface_info_cache_release") | ||
| 423 | core.PuregoSafeRegister(&xDBusInterfaceInfoGenerateXml, lib, "g_dbus_interface_info_generate_xml") | 473 | core.PuregoSafeRegister(&xDBusInterfaceInfoGenerateXml, lib, "g_dbus_interface_info_generate_xml") | ||
| @@ -427,9 +477,13 @@ func init() { | |||||
| 427 | core.PuregoSafeRegister(&xDBusInterfaceInfoRef, lib, "g_dbus_interface_info_ref") | 477 | core.PuregoSafeRegister(&xDBusInterfaceInfoRef, lib, "g_dbus_interface_info_ref") | ||
| 428 | core.PuregoSafeRegister(&xDBusInterfaceInfoUnref, lib, "g_dbus_interface_info_unref") | 478 | core.PuregoSafeRegister(&xDBusInterfaceInfoUnref, lib, "g_dbus_interface_info_unref") | ||
| 429 | 479 | ||||
| 480 | + | core.PuregoSafeRegister(&xDBusMethodInfoGLibType, lib, "g_dbus_method_info_get_type") | |||
| 481 | + | ||||
| 430 | core.PuregoSafeRegister(&xDBusMethodInfoRef, lib, "g_dbus_method_info_ref") | 482 | core.PuregoSafeRegister(&xDBusMethodInfoRef, lib, "g_dbus_method_info_ref") | ||
| 431 | core.PuregoSafeRegister(&xDBusMethodInfoUnref, lib, "g_dbus_method_info_unref") | 483 | core.PuregoSafeRegister(&xDBusMethodInfoUnref, lib, "g_dbus_method_info_unref") | ||
| 432 | 484 | ||||
| 485 | + | core.PuregoSafeRegister(&xDBusNodeInfoGLibType, lib, "g_dbus_node_info_get_type") | |||
| 486 | + | ||||
| 433 | core.PuregoSafeRegister(&xNewDBusNodeInfoForXml, lib, "g_dbus_node_info_new_for_xml") | 487 | core.PuregoSafeRegister(&xNewDBusNodeInfoForXml, lib, "g_dbus_node_info_new_for_xml") | ||
| 434 | 488 | ||||
| 435 | core.PuregoSafeRegister(&xDBusNodeInfoGenerateXml, lib, "g_dbus_node_info_generate_xml") | 489 | core.PuregoSafeRegister(&xDBusNodeInfoGenerateXml, lib, "g_dbus_node_info_generate_xml") | ||
| @@ -437,9 +491,13 @@ func init() { | |||||
| 437 | core.PuregoSafeRegister(&xDBusNodeInfoRef, lib, "g_dbus_node_info_ref") | 491 | core.PuregoSafeRegister(&xDBusNodeInfoRef, lib, "g_dbus_node_info_ref") | ||
| 438 | core.PuregoSafeRegister(&xDBusNodeInfoUnref, lib, "g_dbus_node_info_unref") | 492 | core.PuregoSafeRegister(&xDBusNodeInfoUnref, lib, "g_dbus_node_info_unref") | ||
| 439 | 493 | ||||
| 494 | + | core.PuregoSafeRegister(&xDBusPropertyInfoGLibType, lib, "g_dbus_property_info_get_type") | |||
| 495 | + | ||||
| 440 | core.PuregoSafeRegister(&xDBusPropertyInfoRef, lib, "g_dbus_property_info_ref") | 496 | core.PuregoSafeRegister(&xDBusPropertyInfoRef, lib, "g_dbus_property_info_ref") | ||
| 441 | core.PuregoSafeRegister(&xDBusPropertyInfoUnref, lib, "g_dbus_property_info_unref") | 497 | core.PuregoSafeRegister(&xDBusPropertyInfoUnref, lib, "g_dbus_property_info_unref") | ||
| 442 | 498 | ||||
| 499 | + | core.PuregoSafeRegister(&xDBusSignalInfoGLibType, lib, "g_dbus_signal_info_get_type") | |||
| 500 | + | ||||
| 443 | core.PuregoSafeRegister(&xDBusSignalInfoRef, lib, "g_dbus_signal_info_ref") | 501 | core.PuregoSafeRegister(&xDBusSignalInfoRef, lib, "g_dbus_signal_info_ref") | ||
| 444 | core.PuregoSafeRegister(&xDBusSignalInfoUnref, lib, "g_dbus_signal_info_unref") | 502 | core.PuregoSafeRegister(&xDBusSignalInfoUnref, lib, "g_dbus_signal_info_unref") | ||
| 445 | 503 | ||||
M v4/gio/gdbusnameowning.go +1 -0
| @@ -125,6 +125,7 @@ func init() { | |||||
| 125 | if err != nil { | 125 | if err != nil { | ||
| 126 | panic(err) | 126 | panic(err) | ||
| 127 | } | 127 | } | ||
| 128 | + | ||||
| 128 | core.PuregoSafeRegister(&xBusOwnName, lib, "g_bus_own_name") | 129 | core.PuregoSafeRegister(&xBusOwnName, lib, "g_bus_own_name") | ||
| 129 | core.PuregoSafeRegister(&xBusOwnNameOnConnection, lib, "g_bus_own_name_on_connection") | 130 | core.PuregoSafeRegister(&xBusOwnNameOnConnection, lib, "g_bus_own_name_on_connection") | ||
| 130 | core.PuregoSafeRegister(&xBusOwnNameOnConnectionWithClosures, lib, "g_bus_own_name_on_connection_with_closures") | 131 | core.PuregoSafeRegister(&xBusOwnNameOnConnectionWithClosures, lib, "g_bus_own_name_on_connection_with_closures") | ||
M v4/gio/gdbusnamewatching.go +1 -0
| @@ -106,6 +106,7 @@ func init() { | |||||
| 106 | if err != nil { | 106 | if err != nil { | ||
| 107 | panic(err) | 107 | panic(err) | ||
| 108 | } | 108 | } | ||
| 109 | + | ||||
| 109 | core.PuregoSafeRegister(&xBusUnwatchName, lib, "g_bus_unwatch_name") | 110 | core.PuregoSafeRegister(&xBusUnwatchName, lib, "g_bus_unwatch_name") | ||
| 110 | core.PuregoSafeRegister(&xBusWatchName, lib, "g_bus_watch_name") | 111 | core.PuregoSafeRegister(&xBusWatchName, lib, "g_bus_watch_name") | ||
| 111 | core.PuregoSafeRegister(&xBusWatchNameOnConnection, lib, "g_bus_watch_name_on_connection") | 112 | core.PuregoSafeRegister(&xBusWatchNameOnConnection, lib, "g_bus_watch_name_on_connection") | ||
M v4/gio/gdbusobject.go +10 -0
| @@ -7,6 +7,7 @@ import ( | |||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 10 | ) | 11 | ) | ||
| 11 | 12 | ||||
| 12 | // Base object type for D-Bus objects. | 13 | // Base object type for D-Bus objects. | ||
| @@ -29,6 +30,13 @@ type DBusObject interface { | |||||
| 29 | GetInterfaces() *glib.List | 30 | GetInterfaces() *glib.List | ||
| 30 | GetObjectPath() string | 31 | GetObjectPath() string | ||
| 31 | } | 32 | } | ||
| 33 | + | ||||
| 34 | + | var xDBusObjectGLibType func() types.GType | |||
| 35 | + | ||||
| 36 | + | func DBusObjectGLibType() types.GType { | |||
| 37 | + | return xDBusObjectGLibType() | |||
| 38 | + | } | |||
| 39 | + | ||||
| 32 | type DBusObjectBase struct { | 40 | type DBusObjectBase struct { | ||
| 33 | Ptr uintptr | 41 | Ptr uintptr | ||
| 34 | } | 42 | } | ||
| @@ -80,6 +88,8 @@ func init() { | |||||
| 80 | panic(err) | 88 | panic(err) | ||
| 81 | } | 89 | } | ||
| 82 | 90 | ||||
| 91 | + | core.PuregoSafeRegister(&xDBusObjectGLibType, lib, "g_dbus_object_get_type") | |||
| 92 | + | ||||
| 83 | core.PuregoSafeRegister(&XGDbusObjectGetInterface, lib, "g_dbus_object_get_interface") | 93 | core.PuregoSafeRegister(&XGDbusObjectGetInterface, lib, "g_dbus_object_get_interface") | ||
| 84 | core.PuregoSafeRegister(&XGDbusObjectGetInterfaces, lib, "g_dbus_object_get_interfaces") | 94 | core.PuregoSafeRegister(&XGDbusObjectGetInterfaces, lib, "g_dbus_object_get_interfaces") | ||
| 85 | core.PuregoSafeRegister(&XGDbusObjectGetObjectPath, lib, "g_dbus_object_get_object_path") | 95 | core.PuregoSafeRegister(&XGDbusObjectGetObjectPath, lib, "g_dbus_object_get_object_path") | ||
M v4/gio/gdbusobjectmanager.go +10 -0
| @@ -7,6 +7,7 @@ import ( | |||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 10 | ) | 11 | ) | ||
| 11 | 12 | ||||
| 12 | // Base type for D-Bus object managers. | 13 | // Base type for D-Bus object managers. | ||
| @@ -33,6 +34,13 @@ type DBusObjectManager interface { | |||||
| 33 | GetObjectPath() string | 34 | GetObjectPath() string | ||
| 34 | GetObjects() *glib.List | 35 | GetObjects() *glib.List | ||
| 35 | } | 36 | } | ||
| 37 | + | ||||
| 38 | + | var xDBusObjectManagerGLibType func() types.GType | |||
| 39 | + | ||||
| 40 | + | func DBusObjectManagerGLibType() types.GType { | |||
| 41 | + | return xDBusObjectManagerGLibType() | |||
| 42 | + | } | |||
| 43 | + | ||||
| 36 | type DBusObjectManagerBase struct { | 44 | type DBusObjectManagerBase struct { | ||
| 37 | Ptr uintptr | 45 | Ptr uintptr | ||
| 38 | } | 46 | } | ||
| @@ -99,6 +107,8 @@ func init() { | |||||
| 99 | panic(err) | 107 | panic(err) | ||
| 100 | } | 108 | } | ||
| 101 | 109 | ||||
| 110 | + | core.PuregoSafeRegister(&xDBusObjectManagerGLibType, lib, "g_dbus_object_manager_get_type") | |||
| 111 | + | ||||
| 102 | core.PuregoSafeRegister(&XGDbusObjectManagerGetInterface, lib, "g_dbus_object_manager_get_interface") | 112 | core.PuregoSafeRegister(&XGDbusObjectManagerGetInterface, lib, "g_dbus_object_manager_get_interface") | ||
| 103 | core.PuregoSafeRegister(&XGDbusObjectManagerGetObject, lib, "g_dbus_object_manager_get_object") | 113 | core.PuregoSafeRegister(&XGDbusObjectManagerGetObject, lib, "g_dbus_object_manager_get_object") | ||
| 104 | core.PuregoSafeRegister(&XGDbusObjectManagerGetObjectPath, lib, "g_dbus_object_manager_get_object_path") | 114 | core.PuregoSafeRegister(&XGDbusObjectManagerGetObjectPath, lib, "g_dbus_object_manager_get_object_path") | ||
M v4/gio/gdbusobjectmanagerclient.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | // Class structure for #GDBusObjectManagerClient. | 14 | // Class structure for #GDBusObjectManagerClient. | ||
| @@ -107,6 +108,12 @@ type DBusObjectManagerClient struct { | |||||
| 107 | gobject.Object | 108 | gobject.Object | ||
| 108 | } | 109 | } | ||
| 109 | 110 | ||||
| 111 | + | var xDBusObjectManagerClientGLibType func() types.GType | |||
| 112 | + | ||||
| 113 | + | func DBusObjectManagerClientGLibType() types.GType { | |||
| 114 | + | return xDBusObjectManagerClientGLibType() | |||
| 115 | + | } | |||
| 116 | + | ||||
| 110 | func DBusObjectManagerClientNewFromInternalPtr(ptr uintptr) *DBusObjectManagerClient { | 117 | func DBusObjectManagerClientNewFromInternalPtr(ptr uintptr) *DBusObjectManagerClient { | ||
| 111 | cls := &DBusObjectManagerClient{} | 118 | cls := &DBusObjectManagerClient{} | ||
| 112 | cls.Ptr = ptr | 119 | cls.Ptr = ptr | ||
| @@ -525,6 +532,8 @@ func init() { | |||||
| 525 | panic(err) | 532 | panic(err) | ||
| 526 | } | 533 | } | ||
| 527 | 534 | ||||
| 535 | + | core.PuregoSafeRegister(&xDBusObjectManagerClientGLibType, lib, "g_dbus_object_manager_client_get_type") | |||
| 536 | + | ||||
| 528 | core.PuregoSafeRegister(&xNewDBusObjectManagerClientFinish, lib, "g_dbus_object_manager_client_new_finish") | 537 | core.PuregoSafeRegister(&xNewDBusObjectManagerClientFinish, lib, "g_dbus_object_manager_client_new_finish") | ||
| 529 | core.PuregoSafeRegister(&xNewDBusObjectManagerClientForBusFinish, lib, "g_dbus_object_manager_client_new_for_bus_finish") | 538 | core.PuregoSafeRegister(&xNewDBusObjectManagerClientForBusFinish, lib, "g_dbus_object_manager_client_new_for_bus_finish") | ||
| 530 | core.PuregoSafeRegister(&xNewDBusObjectManagerClientForBusSync, lib, "g_dbus_object_manager_client_new_for_bus_sync") | 539 | core.PuregoSafeRegister(&xNewDBusObjectManagerClientForBusSync, lib, "g_dbus_object_manager_client_new_for_bus_sync") | ||
M v4/gio/gdbusobjectmanagerserver.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | // Class structure for #GDBusObjectManagerServer. | 14 | // Class structure for #GDBusObjectManagerServer. | ||
| @@ -54,6 +55,12 @@ type DBusObjectManagerServer struct { | |||||
| 54 | gobject.Object | 55 | gobject.Object | ||
| 55 | } | 56 | } | ||
| 56 | 57 | ||||
| 58 | + | var xDBusObjectManagerServerGLibType func() types.GType | |||
| 59 | + | ||||
| 60 | + | func DBusObjectManagerServerGLibType() types.GType { | |||
| 61 | + | return xDBusObjectManagerServerGLibType() | |||
| 62 | + | } | |||
| 63 | + | ||||
| 57 | func DBusObjectManagerServerNewFromInternalPtr(ptr uintptr) *DBusObjectManagerServer { | 64 | func DBusObjectManagerServerNewFromInternalPtr(ptr uintptr) *DBusObjectManagerServer { | ||
| 58 | cls := &DBusObjectManagerServer{} | 65 | cls := &DBusObjectManagerServer{} | ||
| 59 | cls.Ptr = ptr | 66 | cls.Ptr = ptr | ||
| @@ -217,6 +224,8 @@ func init() { | |||||
| 217 | panic(err) | 224 | panic(err) | ||
| 218 | } | 225 | } | ||
| 219 | 226 | ||||
| 227 | + | core.PuregoSafeRegister(&xDBusObjectManagerServerGLibType, lib, "g_dbus_object_manager_server_get_type") | |||
| 228 | + | ||||
| 220 | core.PuregoSafeRegister(&xNewDBusObjectManagerServer, lib, "g_dbus_object_manager_server_new") | 229 | core.PuregoSafeRegister(&xNewDBusObjectManagerServer, lib, "g_dbus_object_manager_server_new") | ||
| 221 | 230 | ||||
| 222 | core.PuregoSafeRegister(&xDBusObjectManagerServerExport, lib, "g_dbus_object_manager_server_export") | 231 | core.PuregoSafeRegister(&xDBusObjectManagerServerExport, lib, "g_dbus_object_manager_server_export") | ||
M v4/gio/gdbusobjectproxy.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | // Class structure for #GDBusObjectProxy. | 14 | // Class structure for #GDBusObjectProxy. | ||
| @@ -36,6 +37,12 @@ type DBusObjectProxy struct { | |||||
| 36 | gobject.Object | 37 | gobject.Object | ||
| 37 | } | 38 | } | ||
| 38 | 39 | ||||
| 40 | + | var xDBusObjectProxyGLibType func() types.GType | |||
| 41 | + | ||||
| 42 | + | func DBusObjectProxyGLibType() types.GType { | |||
| 43 | + | return xDBusObjectProxyGLibType() | |||
| 44 | + | } | |||
| 45 | + | ||||
| 39 | func DBusObjectProxyNewFromInternalPtr(ptr uintptr) *DBusObjectProxy { | 46 | func DBusObjectProxyNewFromInternalPtr(ptr uintptr) *DBusObjectProxy { | ||
| 40 | cls := &DBusObjectProxy{} | 47 | cls := &DBusObjectProxy{} | ||
| 41 | cls.Ptr = ptr | 48 | cls.Ptr = ptr | ||
| @@ -119,6 +126,8 @@ func init() { | |||||
| 119 | panic(err) | 126 | panic(err) | ||
| 120 | } | 127 | } | ||
| 121 | 128 | ||||
| 129 | + | core.PuregoSafeRegister(&xDBusObjectProxyGLibType, lib, "g_dbus_object_proxy_get_type") | |||
| 130 | + | ||||
| 122 | core.PuregoSafeRegister(&xNewDBusObjectProxy, lib, "g_dbus_object_proxy_new") | 131 | core.PuregoSafeRegister(&xNewDBusObjectProxy, lib, "g_dbus_object_proxy_new") | ||
| 123 | 132 | ||||
| 124 | core.PuregoSafeRegister(&xDBusObjectProxyGetConnection, lib, "g_dbus_object_proxy_get_connection") | 133 | core.PuregoSafeRegister(&xDBusObjectProxyGetConnection, lib, "g_dbus_object_proxy_get_connection") | ||
M v4/gio/gdbusobjectskeleton.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | // Class structure for #GDBusObjectSkeleton. | 14 | // Class structure for #GDBusObjectSkeleton. | ||
| @@ -37,6 +38,12 @@ type DBusObjectSkeleton struct { | |||||
| 37 | gobject.Object | 38 | gobject.Object | ||
| 38 | } | 39 | } | ||
| 39 | 40 | ||||
| 41 | + | var xDBusObjectSkeletonGLibType func() types.GType | |||
| 42 | + | ||||
| 43 | + | func DBusObjectSkeletonGLibType() types.GType { | |||
| 44 | + | return xDBusObjectSkeletonGLibType() | |||
| 45 | + | } | |||
| 46 | + | ||||
| 40 | func DBusObjectSkeletonNewFromInternalPtr(ptr uintptr) *DBusObjectSkeleton { | 47 | func DBusObjectSkeletonNewFromInternalPtr(ptr uintptr) *DBusObjectSkeleton { | ||
| 41 | cls := &DBusObjectSkeleton{} | 48 | cls := &DBusObjectSkeleton{} | ||
| 42 | cls.Ptr = ptr | 49 | cls.Ptr = ptr | ||
| @@ -185,6 +192,8 @@ func init() { | |||||
| 185 | panic(err) | 192 | panic(err) | ||
| 186 | } | 193 | } | ||
| 187 | 194 | ||||
| 195 | + | core.PuregoSafeRegister(&xDBusObjectSkeletonGLibType, lib, "g_dbus_object_skeleton_get_type") | |||
| 196 | + | ||||
| 188 | core.PuregoSafeRegister(&xNewDBusObjectSkeleton, lib, "g_dbus_object_skeleton_new") | 197 | core.PuregoSafeRegister(&xNewDBusObjectSkeleton, lib, "g_dbus_object_skeleton_new") | ||
| 189 | 198 | ||||
| 190 | core.PuregoSafeRegister(&xDBusObjectSkeletonAddInterface, lib, "g_dbus_object_skeleton_add_interface") | 199 | core.PuregoSafeRegister(&xDBusObjectSkeletonAddInterface, lib, "g_dbus_object_skeleton_add_interface") | ||
M v4/gio/gdbusproxy.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | // Class structure for #GDBusProxy. | 14 | // Class structure for #GDBusProxy. | ||
| @@ -76,6 +77,12 @@ type DBusProxy struct { | |||||
| 76 | gobject.Object | 77 | gobject.Object | ||
| 77 | } | 78 | } | ||
| 78 | 79 | ||||
| 80 | + | var xDBusProxyGLibType func() types.GType | |||
| 81 | + | ||||
| 82 | + | func DBusProxyGLibType() types.GType { | |||
| 83 | + | return xDBusProxyGLibType() | |||
| 84 | + | } | |||
| 85 | + | ||||
| 79 | func DBusProxyNewFromInternalPtr(ptr uintptr) *DBusProxy { | 86 | func DBusProxyNewFromInternalPtr(ptr uintptr) *DBusProxy { | ||
| 80 | cls := &DBusProxy{} | 87 | cls := &DBusProxy{} | ||
| 81 | cls.Ptr = ptr | 88 | cls.Ptr = ptr | ||
| @@ -817,6 +824,8 @@ func init() { | |||||
| 817 | panic(err) | 824 | panic(err) | ||
| 818 | } | 825 | } | ||
| 819 | 826 | ||||
| 827 | + | core.PuregoSafeRegister(&xDBusProxyGLibType, lib, "g_dbus_proxy_get_type") | |||
| 828 | + | ||||
| 820 | core.PuregoSafeRegister(&xNewDBusProxyFinish, lib, "g_dbus_proxy_new_finish") | 829 | core.PuregoSafeRegister(&xNewDBusProxyFinish, lib, "g_dbus_proxy_new_finish") | ||
| 821 | core.PuregoSafeRegister(&xNewDBusProxyForBusFinish, lib, "g_dbus_proxy_new_for_bus_finish") | 830 | core.PuregoSafeRegister(&xNewDBusProxyForBusFinish, lib, "g_dbus_proxy_new_for_bus_finish") | ||
| 822 | core.PuregoSafeRegister(&xNewDBusProxyForBusSync, lib, "g_dbus_proxy_new_for_bus_sync") | 831 | core.PuregoSafeRegister(&xNewDBusProxyForBusSync, lib, "g_dbus_proxy_new_for_bus_sync") | ||
M v4/gio/gdbusutils.go +1 -0
| @@ -197,6 +197,7 @@ func init() { | |||||
| 197 | if err != nil { | 197 | if err != nil { | ||
| 198 | panic(err) | 198 | panic(err) | ||
| 199 | } | 199 | } | ||
| 200 | + | ||||
| 200 | core.PuregoSafeRegister(&xDbusEscapeObjectPath, lib, "g_dbus_escape_object_path") | 201 | core.PuregoSafeRegister(&xDbusEscapeObjectPath, lib, "g_dbus_escape_object_path") | ||
| 201 | core.PuregoSafeRegister(&xDbusEscapeObjectPathBytestring, lib, "g_dbus_escape_object_path_bytestring") | 202 | core.PuregoSafeRegister(&xDbusEscapeObjectPathBytestring, lib, "g_dbus_escape_object_path_bytestring") | ||
| 202 | core.PuregoSafeRegister(&xDbusGenerateGuid, lib, "g_dbus_generate_guid") | 203 | core.PuregoSafeRegister(&xDbusGenerateGuid, lib, "g_dbus_generate_guid") | ||
M v4/gio/gdebugcontroller.go +10 -0
| @@ -6,6 +6,7 @@ import ( | |||||
| 6 | 6 | ||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 9 | ) | 10 | ) | ||
| 10 | 11 | ||||
| 11 | // The virtual function table for #GDebugController. | 12 | // The virtual function table for #GDebugController. | ||
| @@ -38,6 +39,13 @@ type DebugController interface { | |||||
| 38 | GetDebugEnabled() bool | 39 | GetDebugEnabled() bool | ||
| 39 | SetDebugEnabled(DebugEnabledVar bool) | 40 | SetDebugEnabled(DebugEnabledVar bool) | ||
| 40 | } | 41 | } | ||
| 42 | + | ||||
| 43 | + | var xDebugControllerGLibType func() types.GType | |||
| 44 | + | ||||
| 45 | + | func DebugControllerGLibType() types.GType { | |||
| 46 | + | return xDebugControllerGLibType() | |||
| 47 | + | } | |||
| 48 | + | ||||
| 41 | type DebugControllerBase struct { | 49 | type DebugControllerBase struct { | ||
| 42 | Ptr uintptr | 50 | Ptr uintptr | ||
| 43 | } | 51 | } | ||
| @@ -79,6 +87,8 @@ func init() { | |||||
| 79 | panic(err) | 87 | panic(err) | ||
| 80 | } | 88 | } | ||
| 81 | 89 | ||||
| 90 | + | core.PuregoSafeRegister(&xDebugControllerGLibType, lib, "g_debug_controller_get_type") | |||
| 91 | + | ||||
| 82 | core.PuregoSafeRegister(&XGDebugControllerGetDebugEnabled, lib, "g_debug_controller_get_debug_enabled") | 92 | core.PuregoSafeRegister(&XGDebugControllerGetDebugEnabled, lib, "g_debug_controller_get_debug_enabled") | ||
| 83 | core.PuregoSafeRegister(&XGDebugControllerSetDebugEnabled, lib, "g_debug_controller_set_debug_enabled") | 93 | core.PuregoSafeRegister(&XGDebugControllerSetDebugEnabled, lib, "g_debug_controller_set_debug_enabled") | ||
| 84 | 94 | ||||
M v4/gio/gdebugcontrollerdbus.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | // The virtual function table for #GDebugControllerDBus. | 14 | // The virtual function table for #GDebugControllerDBus. | ||
| @@ -137,6 +138,12 @@ type DebugControllerDBus struct { | |||||
| 137 | gobject.Object | 138 | gobject.Object | ||
| 138 | } | 139 | } | ||
| 139 | 140 | ||||
| 141 | + | var xDebugControllerDBusGLibType func() types.GType | |||
| 142 | + | ||||
| 143 | + | func DebugControllerDBusGLibType() types.GType { | |||
| 144 | + | return xDebugControllerDBusGLibType() | |||
| 145 | + | } | |||
| 146 | + | ||||
| 140 | func DebugControllerDBusNewFromInternalPtr(ptr uintptr) *DebugControllerDBus { | 147 | func DebugControllerDBusNewFromInternalPtr(ptr uintptr) *DebugControllerDBus { | ||
| 141 | cls := &DebugControllerDBus{} | 148 | cls := &DebugControllerDBus{} | ||
| 142 | cls.Ptr = ptr | 149 | cls.Ptr = ptr | ||
| @@ -307,6 +314,8 @@ func init() { | |||||
| 307 | panic(err) | 314 | panic(err) | ||
| 308 | } | 315 | } | ||
| 309 | 316 | ||||
| 317 | + | core.PuregoSafeRegister(&xDebugControllerDBusGLibType, lib, "g_debug_controller_dbus_get_type") | |||
| 318 | + | ||||
| 310 | core.PuregoSafeRegister(&xNewDebugControllerDBus, lib, "g_debug_controller_dbus_new") | 319 | core.PuregoSafeRegister(&xNewDebugControllerDBus, lib, "g_debug_controller_dbus_new") | ||
| 311 | 320 | ||||
| 312 | core.PuregoSafeRegister(&xDebugControllerDBusStop, lib, "g_debug_controller_dbus_stop") | 321 | core.PuregoSafeRegister(&xDebugControllerDBusStop, lib, "g_debug_controller_dbus_stop") | ||
M v4/gio/gdesktopappinfo.go +18 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | // During invocation, g_desktop_app_info_launch_uris_as_manager() may | 14 | // During invocation, g_desktop_app_info_launch_uris_as_manager() may | ||
| @@ -40,6 +41,13 @@ type DesktopAppInfoLookup interface { | |||||
| 40 | SetGoPointer(uintptr) | 41 | SetGoPointer(uintptr) | ||
| 41 | GetDefaultForUriScheme(UriSchemeVar string) *AppInfoBase | 42 | GetDefaultForUriScheme(UriSchemeVar string) *AppInfoBase | ||
| 42 | } | 43 | } | ||
| 44 | + | ||||
| 45 | + | var xDesktopAppInfoLookupGLibType func() types.GType | |||
| 46 | + | ||||
| 47 | + | func DesktopAppInfoLookupGLibType() types.GType { | |||
| 48 | + | return xDesktopAppInfoLookupGLibType() | |||
| 49 | + | } | |||
| 50 | + | ||||
| 43 | type DesktopAppInfoLookupBase struct { | 51 | type DesktopAppInfoLookupBase struct { | ||
| 44 | Ptr uintptr | 52 | Ptr uintptr | ||
| 45 | } | 53 | } | ||
| @@ -91,6 +99,12 @@ type DesktopAppInfo struct { | |||||
| 91 | gobject.Object | 99 | gobject.Object | ||
| 92 | } | 100 | } | ||
| 93 | 101 | ||||
| 102 | + | var xDesktopAppInfoGLibType func() types.GType | |||
| 103 | + | ||||
| 104 | + | func DesktopAppInfoGLibType() types.GType { | |||
| 105 | + | return xDesktopAppInfoGLibType() | |||
| 106 | + | } | |||
| 107 | + | ||||
| 94 | func DesktopAppInfoNewFromInternalPtr(ptr uintptr) *DesktopAppInfo { | 108 | func DesktopAppInfoNewFromInternalPtr(ptr uintptr) *DesktopAppInfo { | ||
| 95 | cls := &DesktopAppInfo{} | 109 | cls := &DesktopAppInfo{} | ||
| 96 | cls.Ptr = ptr | 110 | cls.Ptr = ptr | ||
| @@ -756,6 +770,8 @@ func init() { | |||||
| 756 | panic(err) | 770 | panic(err) | ||
| 757 | } | 771 | } | ||
| 758 | 772 | ||||
| 773 | + | core.PuregoSafeRegister(&xDesktopAppInfoGLibType, lib, "g_desktop_app_info_get_type") | |||
| 774 | + | ||||
| 759 | core.PuregoSafeRegister(&xNewDesktopAppInfo, lib, "g_desktop_app_info_new") | 775 | core.PuregoSafeRegister(&xNewDesktopAppInfo, lib, "g_desktop_app_info_new") | ||
| 760 | core.PuregoSafeRegister(&xNewDesktopAppInfoFromFilename, lib, "g_desktop_app_info_new_from_filename") | 776 | core.PuregoSafeRegister(&xNewDesktopAppInfoFromFilename, lib, "g_desktop_app_info_new_from_filename") | ||
| 761 | core.PuregoSafeRegister(&xNewDesktopAppInfoFromKeyfile, lib, "g_desktop_app_info_new_from_keyfile") | 777 | core.PuregoSafeRegister(&xNewDesktopAppInfoFromKeyfile, lib, "g_desktop_app_info_new_from_keyfile") | ||
| @@ -783,6 +799,8 @@ func init() { | |||||
| 783 | core.PuregoSafeRegister(&xDesktopAppInfoSearch, lib, "g_desktop_app_info_search") | 799 | core.PuregoSafeRegister(&xDesktopAppInfoSearch, lib, "g_desktop_app_info_search") | ||
| 784 | core.PuregoSafeRegister(&xDesktopAppInfoSetDesktopEnv, lib, "g_desktop_app_info_set_desktop_env") | 800 | core.PuregoSafeRegister(&xDesktopAppInfoSetDesktopEnv, lib, "g_desktop_app_info_set_desktop_env") | ||
| 785 | 801 | ||||
| 802 | + | core.PuregoSafeRegister(&xDesktopAppInfoLookupGLibType, lib, "g_desktop_app_info_lookup_get_type") | |||
| 803 | + | ||||
| 786 | core.PuregoSafeRegister(&XGDesktopAppInfoLookupGetDefaultForUriScheme, lib, "g_desktop_app_info_lookup_get_default_for_uri_scheme") | 804 | core.PuregoSafeRegister(&XGDesktopAppInfoLookupGetDefaultForUriScheme, lib, "g_desktop_app_info_lookup_get_default_for_uri_scheme") | ||
| 787 | 805 | ||||
| 788 | } | 806 | } | ||
M v4/gio/gdrive.go +10 -0
| @@ -7,6 +7,7 @@ import ( | |||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 10 | ) | 11 | ) | ||
| 11 | 12 | ||||
| 12 | // Interface for creating #GDrive implementations. | 13 | // Interface for creating #GDrive implementations. | ||
| @@ -76,6 +77,13 @@ type Drive interface { | |||||
| 76 | Stop(FlagsVar MountUnmountFlags, MountOperationVar *MountOperation, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) | 77 | Stop(FlagsVar MountUnmountFlags, MountOperationVar *MountOperation, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) | ||
| 77 | StopFinish(ResultVar AsyncResult) bool | 78 | StopFinish(ResultVar AsyncResult) bool | ||
| 78 | } | 79 | } | ||
| 80 | + | ||||
| 81 | + | var xDriveGLibType func() types.GType | |||
| 82 | + | ||||
| 83 | + | func DriveGLibType() types.GType { | |||
| 84 | + | return xDriveGLibType() | |||
| 85 | + | } | |||
| 86 | + | ||||
| 79 | type DriveBase struct { | 87 | type DriveBase struct { | ||
| 80 | Ptr uintptr | 88 | Ptr uintptr | ||
| 81 | } | 89 | } | ||
| @@ -392,6 +400,8 @@ func init() { | |||||
| 392 | panic(err) | 400 | panic(err) | ||
| 393 | } | 401 | } | ||
| 394 | 402 | ||||
| 403 | + | core.PuregoSafeRegister(&xDriveGLibType, lib, "g_drive_get_type") | |||
| 404 | + | ||||
| 395 | core.PuregoSafeRegister(&XGDriveCanEject, lib, "g_drive_can_eject") | 405 | core.PuregoSafeRegister(&XGDriveCanEject, lib, "g_drive_can_eject") | ||
| 396 | core.PuregoSafeRegister(&XGDriveCanPollForMedia, lib, "g_drive_can_poll_for_media") | 406 | core.PuregoSafeRegister(&XGDriveCanPollForMedia, lib, "g_drive_can_poll_for_media") | ||
| 397 | core.PuregoSafeRegister(&XGDriveCanStart, lib, "g_drive_can_start") | 407 | core.PuregoSafeRegister(&XGDriveCanStart, lib, "g_drive_can_start") | ||
M v4/gio/gdtlsclientconnection.go +11 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | // vtable for a #GDtlsClientConnection implementation. | 14 | // vtable for a #GDtlsClientConnection implementation. | ||
| @@ -30,6 +31,13 @@ type DtlsClientConnection interface { | |||||
| 30 | SetServerIdentity(IdentityVar SocketConnectable) | 31 | SetServerIdentity(IdentityVar SocketConnectable) | ||
| 31 | SetValidationFlags(FlagsVar TlsCertificateFlags) | 32 | SetValidationFlags(FlagsVar TlsCertificateFlags) | ||
| 32 | } | 33 | } | ||
| 34 | + | ||||
| 35 | + | var xDtlsClientConnectionGLibType func() types.GType | |||
| 36 | + | ||||
| 37 | + | func DtlsClientConnectionGLibType() types.GType { | |||
| 38 | + | return xDtlsClientConnectionGLibType() | |||
| 39 | + | } | |||
| 40 | + | ||||
| 33 | type DtlsClientConnectionBase struct { | 41 | type DtlsClientConnectionBase struct { | ||
| 34 | Ptr uintptr | 42 | Ptr uintptr | ||
| 35 | } | 43 | } | ||
| @@ -129,8 +137,11 @@ func init() { | |||||
| 129 | if err != nil { | 137 | if err != nil { | ||
| 130 | panic(err) | 138 | panic(err) | ||
| 131 | } | 139 | } | ||
| 140 | + | ||||
| 132 | core.PuregoSafeRegister(&xDtlsClientConnectionNew, lib, "g_dtls_client_connection_new") | 141 | core.PuregoSafeRegister(&xDtlsClientConnectionNew, lib, "g_dtls_client_connection_new") | ||
| 133 | 142 | ||||
| 143 | + | core.PuregoSafeRegister(&xDtlsClientConnectionGLibType, lib, "g_dtls_client_connection_get_type") | |||
| 144 | + | ||||
| 134 | core.PuregoSafeRegister(&XGDtlsClientConnectionGetAcceptedCas, lib, "g_dtls_client_connection_get_accepted_cas") | 145 | core.PuregoSafeRegister(&XGDtlsClientConnectionGetAcceptedCas, lib, "g_dtls_client_connection_get_accepted_cas") | ||
| 135 | core.PuregoSafeRegister(&XGDtlsClientConnectionGetServerIdentity, lib, "g_dtls_client_connection_get_server_identity") | 146 | core.PuregoSafeRegister(&XGDtlsClientConnectionGetServerIdentity, lib, "g_dtls_client_connection_get_server_identity") | ||
| 136 | core.PuregoSafeRegister(&XGDtlsClientConnectionGetValidationFlags, lib, "g_dtls_client_connection_get_validation_flags") | 147 | core.PuregoSafeRegister(&XGDtlsClientConnectionGetValidationFlags, lib, "g_dtls_client_connection_get_validation_flags") | ||
M v4/gio/gdtlsconnection.go +10 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | // Virtual method table for a #GDtlsConnection implementation. | 14 | // Virtual method table for a #GDtlsConnection implementation. | ||
| @@ -69,6 +70,13 @@ type DtlsConnection interface { | |||||
| 69 | ShutdownAsync(ShutdownReadVar bool, ShutdownWriteVar bool, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) | 70 | ShutdownAsync(ShutdownReadVar bool, ShutdownWriteVar bool, IoPriorityVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) | ||
| 70 | ShutdownFinish(ResultVar AsyncResult) bool | 71 | ShutdownFinish(ResultVar AsyncResult) bool | ||
| 71 | } | 72 | } | ||
| 73 | + | ||||
| 74 | + | var xDtlsConnectionGLibType func() types.GType | |||
| 75 | + | ||||
| 76 | + | func DtlsConnectionGLibType() types.GType { | |||
| 77 | + | return xDtlsConnectionGLibType() | |||
| 78 | + | } | |||
| 79 | + | ||||
| 72 | type DtlsConnectionBase struct { | 80 | type DtlsConnectionBase struct { | ||
| 73 | Ptr uintptr | 81 | Ptr uintptr | ||
| 74 | } | 82 | } | ||
| @@ -543,6 +551,8 @@ func init() { | |||||
| 543 | panic(err) | 551 | panic(err) | ||
| 544 | } | 552 | } | ||
| 545 | 553 | ||||
| 554 | + | core.PuregoSafeRegister(&xDtlsConnectionGLibType, lib, "g_dtls_connection_get_type") | |||
| 555 | + | ||||
| 546 | core.PuregoSafeRegister(&XGDtlsConnectionClose, lib, "g_dtls_connection_close") | 556 | core.PuregoSafeRegister(&XGDtlsConnectionClose, lib, "g_dtls_connection_close") | ||
| 547 | core.PuregoSafeRegister(&XGDtlsConnectionCloseAsync, lib, "g_dtls_connection_close_async") | 557 | core.PuregoSafeRegister(&XGDtlsConnectionCloseAsync, lib, "g_dtls_connection_close_async") | ||
| 548 | core.PuregoSafeRegister(&XGDtlsConnectionCloseFinish, lib, "g_dtls_connection_close_finish") | 558 | core.PuregoSafeRegister(&XGDtlsConnectionCloseFinish, lib, "g_dtls_connection_close_finish") | ||
M v4/gio/gdtlsserverconnection.go +11 -0
| @@ -7,6 +7,7 @@ import ( | |||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 10 | ) | 11 | ) | ||
| 11 | 12 | ||||
| 12 | // vtable for a #GDtlsServerConnection implementation. | 13 | // vtable for a #GDtlsServerConnection implementation. | ||
| @@ -24,6 +25,13 @@ type DtlsServerConnection interface { | |||||
| 24 | GoPointer() uintptr | 25 | GoPointer() uintptr | ||
| 25 | SetGoPointer(uintptr) | 26 | SetGoPointer(uintptr) | ||
| 26 | } | 27 | } | ||
| 28 | + | ||||
| 29 | + | var xDtlsServerConnectionGLibType func() types.GType | |||
| 30 | + | ||||
| 31 | + | func DtlsServerConnectionGLibType() types.GType { | |||
| 32 | + | return xDtlsServerConnectionGLibType() | |||
| 33 | + | } | |||
| 34 | + | ||||
| 27 | type DtlsServerConnectionBase struct { | 35 | type DtlsServerConnectionBase struct { | ||
| 28 | Ptr uintptr | 36 | Ptr uintptr | ||
| 29 | } | 37 | } | ||
| @@ -62,6 +70,9 @@ func init() { | |||||
| 62 | if err != nil { | 70 | if err != nil { | ||
| 63 | panic(err) | 71 | panic(err) | ||
| 64 | } | 72 | } | ||
| 73 | + | ||||
| 65 | core.PuregoSafeRegister(&xDtlsServerConnectionNew, lib, "g_dtls_server_connection_new") | 74 | core.PuregoSafeRegister(&xDtlsServerConnectionNew, lib, "g_dtls_server_connection_new") | ||
| 66 | 75 | ||||
| 76 | + | core.PuregoSafeRegister(&xDtlsServerConnectionGLibType, lib, "g_dtls_server_connection_get_type") | |||
| 77 | + | ||||
| 67 | } | 78 | } | ||
M v4/gio/gemblem.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | type EmblemClass struct { | 14 | type EmblemClass struct { | ||
| @@ -27,6 +28,12 @@ type Emblem struct { | |||||
| 27 | gobject.Object | 28 | gobject.Object | ||
| 28 | } | 29 | } | ||
| 29 | 30 | ||||
| 31 | + | var xEmblemGLibType func() types.GType | |||
| 32 | + | ||||
| 33 | + | func EmblemGLibType() types.GType { | |||
| 34 | + | return xEmblemGLibType() | |||
| 35 | + | } | |||
| 36 | + | ||||
| 30 | func EmblemNewFromInternalPtr(ptr uintptr) *Emblem { | 37 | func EmblemNewFromInternalPtr(ptr uintptr) *Emblem { | ||
| 31 | cls := &Emblem{} | 38 | cls := &Emblem{} | ||
| 32 | cls.Ptr = ptr | 39 | cls.Ptr = ptr | ||
| @@ -145,6 +152,8 @@ func init() { | |||||
| 145 | panic(err) | 152 | panic(err) | ||
| 146 | } | 153 | } | ||
| 147 | 154 | ||||
| 155 | + | core.PuregoSafeRegister(&xEmblemGLibType, lib, "g_emblem_get_type") | |||
| 156 | + | ||||
| 148 | core.PuregoSafeRegister(&xNewEmblem, lib, "g_emblem_new") | 157 | core.PuregoSafeRegister(&xNewEmblem, lib, "g_emblem_new") | ||
| 149 | core.PuregoSafeRegister(&xNewEmblemWithOrigin, lib, "g_emblem_new_with_origin") | 158 | core.PuregoSafeRegister(&xNewEmblemWithOrigin, lib, "g_emblem_new_with_origin") | ||
| 150 | 159 | ||||
M v4/gio/gemblemedicon.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | type EmblemedIconClass struct { | 14 | type EmblemedIconClass struct { | ||
| @@ -35,6 +36,12 @@ type EmblemedIcon struct { | |||||
| 35 | gobject.Object | 36 | gobject.Object | ||
| 36 | } | 37 | } | ||
| 37 | 38 | ||||
| 39 | + | var xEmblemedIconGLibType func() types.GType | |||
| 40 | + | ||||
| 41 | + | func EmblemedIconGLibType() types.GType { | |||
| 42 | + | return xEmblemedIconGLibType() | |||
| 43 | + | } | |||
| 44 | + | ||||
| 38 | func EmblemedIconNewFromInternalPtr(ptr uintptr) *EmblemedIcon { | 45 | func EmblemedIconNewFromInternalPtr(ptr uintptr) *EmblemedIcon { | ||
| 39 | cls := &EmblemedIcon{} | 46 | cls := &EmblemedIcon{} | ||
| 40 | cls.Ptr = ptr | 47 | cls.Ptr = ptr | ||
| @@ -155,6 +162,8 @@ func init() { | |||||
| 155 | panic(err) | 162 | panic(err) | ||
| 156 | } | 163 | } | ||
| 157 | 164 | ||||
| 165 | + | core.PuregoSafeRegister(&xEmblemedIconGLibType, lib, "g_emblemed_icon_get_type") | |||
| 166 | + | ||||
| 158 | core.PuregoSafeRegister(&xNewEmblemedIcon, lib, "g_emblemed_icon_new") | 167 | core.PuregoSafeRegister(&xNewEmblemedIcon, lib, "g_emblemed_icon_new") | ||
| 159 | 168 | ||||
| 160 | core.PuregoSafeRegister(&xEmblemedIconAddEmblem, lib, "g_emblemed_icon_add_emblem") | 169 | core.PuregoSafeRegister(&xEmblemedIconAddEmblem, lib, "g_emblemed_icon_add_emblem") | ||
M v4/gio/gfile.go +11 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | // An interface for writing VFS file handles. | 14 | // An interface for writing VFS file handles. | ||
| @@ -233,6 +234,13 @@ type File interface { | |||||
| 233 | UnmountMountableWithOperation(FlagsVar MountUnmountFlags, MountOperationVar *MountOperation, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) | 234 | UnmountMountableWithOperation(FlagsVar MountUnmountFlags, MountOperationVar *MountOperation, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) | ||
| 234 | UnmountMountableWithOperationFinish(ResultVar AsyncResult) bool | 235 | UnmountMountableWithOperationFinish(ResultVar AsyncResult) bool | ||
| 235 | } | 236 | } | ||
| 237 | + | ||||
| 238 | + | var xFileGLibType func() types.GType | |||
| 239 | + | ||||
| 240 | + | func FileGLibType() types.GType { | |||
| 241 | + | return xFileGLibType() | |||
| 242 | + | } | |||
| 243 | + | ||||
| 236 | type FileBase struct { | 244 | type FileBase struct { | ||
| 237 | Ptr uintptr | 245 | Ptr uintptr | ||
| 238 | } | 246 | } | ||
| @@ -2996,6 +3004,7 @@ func init() { | |||||
| 2996 | if err != nil { | 3004 | if err != nil { | ||
| 2997 | panic(err) | 3005 | panic(err) | ||
| 2998 | } | 3006 | } | ||
| 3007 | + | ||||
| 2999 | core.PuregoSafeRegister(&xFileNewForCommandlineArg, lib, "g_file_new_for_commandline_arg") | 3008 | core.PuregoSafeRegister(&xFileNewForCommandlineArg, lib, "g_file_new_for_commandline_arg") | ||
| 3000 | core.PuregoSafeRegister(&xFileNewForCommandlineArgAndCwd, lib, "g_file_new_for_commandline_arg_and_cwd") | 3009 | core.PuregoSafeRegister(&xFileNewForCommandlineArgAndCwd, lib, "g_file_new_for_commandline_arg_and_cwd") | ||
| 3001 | core.PuregoSafeRegister(&xFileNewForPath, lib, "g_file_new_for_path") | 3010 | core.PuregoSafeRegister(&xFileNewForPath, lib, "g_file_new_for_path") | ||
| @@ -3003,6 +3012,8 @@ func init() { | |||||
| 3003 | core.PuregoSafeRegister(&xFileNewTmp, lib, "g_file_new_tmp") | 3012 | core.PuregoSafeRegister(&xFileNewTmp, lib, "g_file_new_tmp") | ||
| 3004 | core.PuregoSafeRegister(&xFileParseName, lib, "g_file_parse_name") | 3013 | core.PuregoSafeRegister(&xFileParseName, lib, "g_file_parse_name") | ||
| 3005 | 3014 | ||||
| 3015 | + | core.PuregoSafeRegister(&xFileGLibType, lib, "g_file_get_type") | |||
| 3016 | + | ||||
| 3006 | core.PuregoSafeRegister(&XGFileAppendTo, lib, "g_file_append_to") | 3017 | core.PuregoSafeRegister(&XGFileAppendTo, lib, "g_file_append_to") | ||
| 3007 | core.PuregoSafeRegister(&XGFileAppendToAsync, lib, "g_file_append_to_async") | 3018 | core.PuregoSafeRegister(&XGFileAppendToAsync, lib, "g_file_append_to_async") | ||
| 3008 | core.PuregoSafeRegister(&XGFileAppendToFinish, lib, "g_file_append_to_finish") | 3019 | core.PuregoSafeRegister(&XGFileAppendToFinish, lib, "g_file_append_to_finish") | ||
M v4/gio/gfileattribute.go +9 -0
| @@ -6,6 +6,7 @@ import ( | |||||
| 6 | 6 | ||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 9 | ) | 10 | ) | ||
| 10 | 11 | ||||
| 11 | // Information about a specific attribute. | 12 | // Information about a specific attribute. | ||
| @@ -29,6 +30,12 @@ type FileAttributeInfoList struct { | |||||
| 29 | NInfos int | 30 | NInfos int | ||
| 30 | } | 31 | } | ||
| 31 | 32 | ||||
| 33 | + | var xFileAttributeInfoListGLibType func() types.GType | |||
| 34 | + | ||||
| 35 | + | func FileAttributeInfoListGLibType() types.GType { | |||
| 36 | + | return xFileAttributeInfoListGLibType() | |||
| 37 | + | } | |||
| 38 | + | ||||
| 32 | func (x *FileAttributeInfoList) GoPointer() uintptr { | 39 | func (x *FileAttributeInfoList) GoPointer() uintptr { | ||
| 33 | return uintptr(unsafe.Pointer(x)) | 40 | return uintptr(unsafe.Pointer(x)) | ||
| 34 | } | 41 | } | ||
| @@ -95,6 +102,8 @@ func init() { | |||||
| 95 | panic(err) | 102 | panic(err) | ||
| 96 | } | 103 | } | ||
| 97 | 104 | ||||
| 105 | + | core.PuregoSafeRegister(&xFileAttributeInfoListGLibType, lib, "g_file_attribute_info_list_get_type") | |||
| 106 | + | ||||
| 98 | core.PuregoSafeRegister(&xNewFileAttributeInfoList, lib, "g_file_attribute_info_list_new") | 107 | core.PuregoSafeRegister(&xNewFileAttributeInfoList, lib, "g_file_attribute_info_list_new") | ||
| 99 | 108 | ||||
| 100 | core.PuregoSafeRegister(&xFileAttributeInfoListAdd, lib, "g_file_attribute_info_list_add") | 109 | core.PuregoSafeRegister(&xFileAttributeInfoListAdd, lib, "g_file_attribute_info_list_add") | ||
M v4/gio/gfiledescriptorbased.go +10 -0
| @@ -6,6 +6,7 @@ import ( | |||||
| 6 | 6 | ||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 9 | ) | 10 | ) | ||
| 10 | 11 | ||||
| 11 | // An interface for file descriptor based io objects. | 12 | // An interface for file descriptor based io objects. | ||
| @@ -28,6 +29,13 @@ type FileDescriptorBased interface { | |||||
| 28 | SetGoPointer(uintptr) | 29 | SetGoPointer(uintptr) | ||
| 29 | GetFd() int | 30 | GetFd() int | ||
| 30 | } | 31 | } | ||
| 32 | + | ||||
| 33 | + | var xFileDescriptorBasedGLibType func() types.GType | |||
| 34 | + | ||||
| 35 | + | func FileDescriptorBasedGLibType() types.GType { | |||
| 36 | + | return xFileDescriptorBasedGLibType() | |||
| 37 | + | } | |||
| 38 | + | ||||
| 31 | type FileDescriptorBasedBase struct { | 39 | type FileDescriptorBasedBase struct { | ||
| 32 | Ptr uintptr | 40 | Ptr uintptr | ||
| 33 | } | 41 | } | ||
| @@ -55,6 +63,8 @@ func init() { | |||||
| 55 | panic(err) | 63 | panic(err) | ||
| 56 | } | 64 | } | ||
| 57 | 65 | ||||
| 66 | + | core.PuregoSafeRegister(&xFileDescriptorBasedGLibType, lib, "g_file_descriptor_based_get_type") | |||
| 67 | + | ||||
| 58 | core.PuregoSafeRegister(&XGFileDescriptorBasedGetFd, lib, "g_file_descriptor_based_get_fd") | 68 | core.PuregoSafeRegister(&XGFileDescriptorBasedGetFd, lib, "g_file_descriptor_based_get_fd") | ||
| 59 | 69 | ||||
| 60 | } | 70 | } | ||
M v4/gio/gfileenumerator.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | type FileEnumeratorClass struct { | 14 | type FileEnumeratorClass struct { | ||
| @@ -55,6 +56,12 @@ type FileEnumerator struct { | |||||
| 55 | gobject.Object | 56 | gobject.Object | ||
| 56 | } | 57 | } | ||
| 57 | 58 | ||||
| 59 | + | var xFileEnumeratorGLibType func() types.GType | |||
| 60 | + | ||||
| 61 | + | func FileEnumeratorGLibType() types.GType { | |||
| 62 | + | return xFileEnumeratorGLibType() | |||
| 63 | + | } | |||
| 64 | + | ||||
| 58 | func FileEnumeratorNewFromInternalPtr(ptr uintptr) *FileEnumerator { | 65 | func FileEnumeratorNewFromInternalPtr(ptr uintptr) *FileEnumerator { | ||
| 59 | cls := &FileEnumerator{} | 66 | cls := &FileEnumerator{} | ||
| 60 | cls.Ptr = ptr | 67 | cls.Ptr = ptr | ||
| @@ -331,6 +338,8 @@ func init() { | |||||
| 331 | panic(err) | 338 | panic(err) | ||
| 332 | } | 339 | } | ||
| 333 | 340 | ||||
| 341 | + | core.PuregoSafeRegister(&xFileEnumeratorGLibType, lib, "g_file_enumerator_get_type") | |||
| 342 | + | ||||
| 334 | core.PuregoSafeRegister(&xFileEnumeratorClose, lib, "g_file_enumerator_close") | 343 | core.PuregoSafeRegister(&xFileEnumeratorClose, lib, "g_file_enumerator_close") | ||
| 335 | core.PuregoSafeRegister(&xFileEnumeratorCloseAsync, lib, "g_file_enumerator_close_async") | 344 | core.PuregoSafeRegister(&xFileEnumeratorCloseAsync, lib, "g_file_enumerator_close_async") | ||
| 336 | core.PuregoSafeRegister(&xFileEnumeratorCloseFinish, lib, "g_file_enumerator_close_finish") | 345 | core.PuregoSafeRegister(&xFileEnumeratorCloseFinish, lib, "g_file_enumerator_close_finish") | ||
M v4/gio/gfileicon.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | type FileIconClass struct { | 14 | type FileIconClass struct { | ||
| @@ -23,6 +24,12 @@ type FileIcon struct { | |||||
| 23 | gobject.Object | 24 | gobject.Object | ||
| 24 | } | 25 | } | ||
| 25 | 26 | ||||
| 27 | + | var xFileIconGLibType func() types.GType | |||
| 28 | + | ||||
| 29 | + | func FileIconGLibType() types.GType { | |||
| 30 | + | return xFileIconGLibType() | |||
| 31 | + | } | |||
| 32 | + | ||||
| 26 | func FileIconNewFromInternalPtr(ptr uintptr) *FileIcon { | 33 | func FileIconNewFromInternalPtr(ptr uintptr) *FileIcon { | ||
| 27 | cls := &FileIcon{} | 34 | cls := &FileIcon{} | ||
| 28 | cls.Ptr = ptr | 35 | cls.Ptr = ptr | ||
| @@ -164,6 +171,8 @@ func init() { | |||||
| 164 | panic(err) | 171 | panic(err) | ||
| 165 | } | 172 | } | ||
| 166 | 173 | ||||
| 174 | + | core.PuregoSafeRegister(&xFileIconGLibType, lib, "g_file_icon_get_type") | |||
| 175 | + | ||||
| 167 | core.PuregoSafeRegister(&xNewFileIcon, lib, "g_file_icon_new") | 176 | core.PuregoSafeRegister(&xNewFileIcon, lib, "g_file_icon_new") | ||
| 168 | 177 | ||||
| 169 | core.PuregoSafeRegister(&xFileIconGetFile, lib, "g_file_icon_get_file") | 178 | core.PuregoSafeRegister(&xFileIconGetFile, lib, "g_file_icon_get_file") | ||
M v4/gio/gfileinfo.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | type FileInfoClass struct { | 14 | type FileInfoClass struct { | ||
| @@ -598,6 +599,12 @@ type FileInfo struct { | |||||
| 598 | gobject.Object | 599 | gobject.Object | ||
| 599 | } | 600 | } | ||
| 600 | 601 | ||||
| 602 | + | var xFileInfoGLibType func() types.GType | |||
| 603 | + | ||||
| 604 | + | func FileInfoGLibType() types.GType { | |||
| 605 | + | return xFileInfoGLibType() | |||
| 606 | + | } | |||
| 607 | + | ||||
| 601 | func FileInfoNewFromInternalPtr(ptr uintptr) *FileInfo { | 608 | func FileInfoNewFromInternalPtr(ptr uintptr) *FileInfo { | ||
| 602 | cls := &FileInfo{} | 609 | cls := &FileInfo{} | ||
| 603 | cls.Ptr = ptr | 610 | cls.Ptr = ptr | ||
| @@ -1355,6 +1362,8 @@ func init() { | |||||
| 1355 | panic(err) | 1362 | panic(err) | ||
| 1356 | } | 1363 | } | ||
| 1357 | 1364 | ||||
| 1365 | + | core.PuregoSafeRegister(&xFileInfoGLibType, lib, "g_file_info_get_type") | |||
| 1366 | + | ||||
| 1358 | core.PuregoSafeRegister(&xNewFileInfo, lib, "g_file_info_new") | 1367 | core.PuregoSafeRegister(&xNewFileInfo, lib, "g_file_info_new") | ||
| 1359 | 1368 | ||||
| 1360 | core.PuregoSafeRegister(&xFileInfoClearStatus, lib, "g_file_info_clear_status") | 1369 | core.PuregoSafeRegister(&xFileInfoClearStatus, lib, "g_file_info_clear_status") | ||
M v4/gio/gfileinputstream.go +9 -0
| @@ -7,6 +7,7 @@ import ( | |||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 10 | ) | 11 | ) | ||
| 11 | 12 | ||||
| 12 | type FileInputStreamClass struct { | 13 | type FileInputStreamClass struct { | ||
| @@ -37,6 +38,12 @@ type FileInputStream struct { | |||||
| 37 | InputStream | 38 | InputStream | ||
| 38 | } | 39 | } | ||
| 39 | 40 | ||||
| 41 | + | var xFileInputStreamGLibType func() types.GType | |||
| 42 | + | ||||
| 43 | + | func FileInputStreamGLibType() types.GType { | |||
| 44 | + | return xFileInputStreamGLibType() | |||
| 45 | + | } | |||
| 46 | + | ||||
| 40 | func FileInputStreamNewFromInternalPtr(ptr uintptr) *FileInputStream { | 47 | func FileInputStreamNewFromInternalPtr(ptr uintptr) *FileInputStream { | ||
| 41 | cls := &FileInputStream{} | 48 | cls := &FileInputStream{} | ||
| 42 | cls.Ptr = ptr | 49 | cls.Ptr = ptr | ||
| @@ -189,6 +196,8 @@ func init() { | |||||
| 189 | panic(err) | 196 | panic(err) | ||
| 190 | } | 197 | } | ||
| 191 | 198 | ||||
| 199 | + | core.PuregoSafeRegister(&xFileInputStreamGLibType, lib, "g_file_input_stream_get_type") | |||
| 200 | + | ||||
| 192 | core.PuregoSafeRegister(&xFileInputStreamQueryInfo, lib, "g_file_input_stream_query_info") | 201 | core.PuregoSafeRegister(&xFileInputStreamQueryInfo, lib, "g_file_input_stream_query_info") | ||
| 193 | core.PuregoSafeRegister(&xFileInputStreamQueryInfoAsync, lib, "g_file_input_stream_query_info_async") | 202 | core.PuregoSafeRegister(&xFileInputStreamQueryInfoAsync, lib, "g_file_input_stream_query_info_async") | ||
| 194 | core.PuregoSafeRegister(&xFileInputStreamQueryInfoFinish, lib, "g_file_input_stream_query_info_finish") | 203 | core.PuregoSafeRegister(&xFileInputStreamQueryInfoFinish, lib, "g_file_input_stream_query_info_finish") | ||
M v4/gio/gfileiostream.go +9 -0
| @@ -7,6 +7,7 @@ import ( | |||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 10 | ) | 11 | ) | ||
| 11 | 12 | ||||
| 12 | type FileIOStreamClass struct { | 13 | type FileIOStreamClass struct { | ||
| @@ -48,6 +49,12 @@ type FileIOStream struct { | |||||
| 48 | IOStream | 49 | IOStream | ||
| 49 | } | 50 | } | ||
| 50 | 51 | ||||
| 52 | + | var xFileIOStreamGLibType func() types.GType | |||
| 53 | + | ||||
| 54 | + | func FileIOStreamGLibType() types.GType { | |||
| 55 | + | return xFileIOStreamGLibType() | |||
| 56 | + | } | |||
| 57 | + | ||||
| 51 | func FileIOStreamNewFromInternalPtr(ptr uintptr) *FileIOStream { | 58 | func FileIOStreamNewFromInternalPtr(ptr uintptr) *FileIOStream { | ||
| 52 | cls := &FileIOStream{} | 59 | cls := &FileIOStream{} | ||
| 53 | cls.Ptr = ptr | 60 | cls.Ptr = ptr | ||
| @@ -219,6 +226,8 @@ func init() { | |||||
| 219 | panic(err) | 226 | panic(err) | ||
| 220 | } | 227 | } | ||
| 221 | 228 | ||||
| 229 | + | core.PuregoSafeRegister(&xFileIOStreamGLibType, lib, "g_file_io_stream_get_type") | |||
| 230 | + | ||||
| 222 | core.PuregoSafeRegister(&xFileIOStreamGetEtag, lib, "g_file_io_stream_get_etag") | 231 | core.PuregoSafeRegister(&xFileIOStreamGetEtag, lib, "g_file_io_stream_get_etag") | ||
| 223 | core.PuregoSafeRegister(&xFileIOStreamQueryInfo, lib, "g_file_io_stream_query_info") | 232 | core.PuregoSafeRegister(&xFileIOStreamQueryInfo, lib, "g_file_io_stream_query_info") | ||
| 224 | core.PuregoSafeRegister(&xFileIOStreamQueryInfoAsync, lib, "g_file_io_stream_query_info_async") | 233 | core.PuregoSafeRegister(&xFileIOStreamQueryInfoAsync, lib, "g_file_io_stream_query_info_async") | ||
M v4/gio/gfilemonitor.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | type FileMonitorClass struct { | 14 | type FileMonitorClass struct { | ||
| @@ -43,6 +44,12 @@ type FileMonitor struct { | |||||
| 43 | gobject.Object | 44 | gobject.Object | ||
| 44 | } | 45 | } | ||
| 45 | 46 | ||||
| 47 | + | var xFileMonitorGLibType func() types.GType | |||
| 48 | + | ||||
| 49 | + | func FileMonitorGLibType() types.GType { | |||
| 50 | + | return xFileMonitorGLibType() | |||
| 51 | + | } | |||
| 52 | + | ||||
| 46 | func FileMonitorNewFromInternalPtr(ptr uintptr) *FileMonitor { | 53 | func FileMonitorNewFromInternalPtr(ptr uintptr) *FileMonitor { | ||
| 47 | cls := &FileMonitor{} | 54 | cls := &FileMonitor{} | ||
| 48 | cls.Ptr = ptr | 55 | cls.Ptr = ptr | ||
| @@ -153,6 +160,8 @@ func init() { | |||||
| 153 | panic(err) | 160 | panic(err) | ||
| 154 | } | 161 | } | ||
| 155 | 162 | ||||
| 163 | + | core.PuregoSafeRegister(&xFileMonitorGLibType, lib, "g_file_monitor_get_type") | |||
| 164 | + | ||||
| 156 | core.PuregoSafeRegister(&xFileMonitorCancel, lib, "g_file_monitor_cancel") | 165 | core.PuregoSafeRegister(&xFileMonitorCancel, lib, "g_file_monitor_cancel") | ||
| 157 | core.PuregoSafeRegister(&xFileMonitorEmitEvent, lib, "g_file_monitor_emit_event") | 166 | core.PuregoSafeRegister(&xFileMonitorEmitEvent, lib, "g_file_monitor_emit_event") | ||
| 158 | core.PuregoSafeRegister(&xFileMonitorIsCancelled, lib, "g_file_monitor_is_cancelled") | 167 | core.PuregoSafeRegister(&xFileMonitorIsCancelled, lib, "g_file_monitor_is_cancelled") | ||
M v4/gio/gfilenamecompleter.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | type FilenameCompleterClass struct { | 14 | type FilenameCompleterClass struct { | ||
| @@ -25,6 +26,12 @@ type FilenameCompleter struct { | |||||
| 25 | gobject.Object | 26 | gobject.Object | ||
| 26 | } | 27 | } | ||
| 27 | 28 | ||||
| 29 | + | var xFilenameCompleterGLibType func() types.GType | |||
| 30 | + | ||||
| 31 | + | func FilenameCompleterGLibType() types.GType { | |||
| 32 | + | return xFilenameCompleterGLibType() | |||
| 33 | + | } | |||
| 34 | + | ||||
| 28 | func FilenameCompleterNewFromInternalPtr(ptr uintptr) *FilenameCompleter { | 35 | func FilenameCompleterNewFromInternalPtr(ptr uintptr) *FilenameCompleter { | ||
| 29 | cls := &FilenameCompleter{} | 36 | cls := &FilenameCompleter{} | ||
| 30 | cls.Ptr = ptr | 37 | cls.Ptr = ptr | ||
| @@ -109,6 +116,8 @@ func init() { | |||||
| 109 | panic(err) | 116 | panic(err) | ||
| 110 | } | 117 | } | ||
| 111 | 118 | ||||
| 119 | + | core.PuregoSafeRegister(&xFilenameCompleterGLibType, lib, "g_filename_completer_get_type") | |||
| 120 | + | ||||
| 112 | core.PuregoSafeRegister(&xNewFilenameCompleter, lib, "g_filename_completer_new") | 121 | core.PuregoSafeRegister(&xNewFilenameCompleter, lib, "g_filename_completer_new") | ||
| 113 | 122 | ||||
| 114 | core.PuregoSafeRegister(&xFilenameCompleterGetCompletionSuffix, lib, "g_filename_completer_get_completion_suffix") | 123 | core.PuregoSafeRegister(&xFilenameCompleterGetCompletionSuffix, lib, "g_filename_completer_get_completion_suffix") | ||
M v4/gio/gfileoutputstream.go +9 -0
| @@ -7,6 +7,7 @@ import ( | |||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 10 | ) | 11 | ) | ||
| 11 | 12 | ||||
| 12 | type FileOutputStreamClass struct { | 13 | type FileOutputStreamClass struct { | ||
| @@ -42,6 +43,12 @@ type FileOutputStream struct { | |||||
| 42 | OutputStream | 43 | OutputStream | ||
| 43 | } | 44 | } | ||
| 44 | 45 | ||||
| 46 | + | var xFileOutputStreamGLibType func() types.GType | |||
| 47 | + | ||||
| 48 | + | func FileOutputStreamGLibType() types.GType { | |||
| 49 | + | return xFileOutputStreamGLibType() | |||
| 50 | + | } | |||
| 51 | + | ||||
| 45 | func FileOutputStreamNewFromInternalPtr(ptr uintptr) *FileOutputStream { | 52 | func FileOutputStreamNewFromInternalPtr(ptr uintptr) *FileOutputStream { | ||
| 46 | cls := &FileOutputStream{} | 53 | cls := &FileOutputStream{} | ||
| 47 | cls.Ptr = ptr | 54 | cls.Ptr = ptr | ||
| @@ -213,6 +220,8 @@ func init() { | |||||
| 213 | panic(err) | 220 | panic(err) | ||
| 214 | } | 221 | } | ||
| 215 | 222 | ||||
| 223 | + | core.PuregoSafeRegister(&xFileOutputStreamGLibType, lib, "g_file_output_stream_get_type") | |||
| 224 | + | ||||
| 216 | core.PuregoSafeRegister(&xFileOutputStreamGetEtag, lib, "g_file_output_stream_get_etag") | 225 | core.PuregoSafeRegister(&xFileOutputStreamGetEtag, lib, "g_file_output_stream_get_etag") | ||
| 217 | core.PuregoSafeRegister(&xFileOutputStreamQueryInfo, lib, "g_file_output_stream_query_info") | 226 | core.PuregoSafeRegister(&xFileOutputStreamQueryInfo, lib, "g_file_output_stream_query_info") | ||
| 218 | core.PuregoSafeRegister(&xFileOutputStreamQueryInfoAsync, lib, "g_file_output_stream_query_info_async") | 227 | core.PuregoSafeRegister(&xFileOutputStreamQueryInfoAsync, lib, "g_file_output_stream_query_info_async") | ||
M v4/gio/gfilterinputstream.go +9 -0
| @@ -7,6 +7,7 @@ import ( | |||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 10 | ) | 11 | ) | ||
| 11 | 12 | ||||
| 12 | type FilterInputStreamClass struct { | 13 | type FilterInputStreamClass struct { | ||
| @@ -25,6 +26,12 @@ type FilterInputStream struct { | |||||
| 25 | InputStream | 26 | InputStream | ||
| 26 | } | 27 | } | ||
| 27 | 28 | ||||
| 29 | + | var xFilterInputStreamGLibType func() types.GType | |||
| 30 | + | ||||
| 31 | + | func FilterInputStreamGLibType() types.GType { | |||
| 32 | + | return xFilterInputStreamGLibType() | |||
| 33 | + | } | |||
| 34 | + | ||||
| 28 | func FilterInputStreamNewFromInternalPtr(ptr uintptr) *FilterInputStream { | 35 | func FilterInputStreamNewFromInternalPtr(ptr uintptr) *FilterInputStream { | ||
| 29 | cls := &FilterInputStream{} | 36 | cls := &FilterInputStream{} | ||
| 30 | cls.Ptr = ptr | 37 | cls.Ptr = ptr | ||
| @@ -81,6 +88,8 @@ func init() { | |||||
| 81 | panic(err) | 88 | panic(err) | ||
| 82 | } | 89 | } | ||
| 83 | 90 | ||||
| 91 | + | core.PuregoSafeRegister(&xFilterInputStreamGLibType, lib, "g_filter_input_stream_get_type") | |||
| 92 | + | ||||
| 84 | core.PuregoSafeRegister(&xFilterInputStreamGetBaseStream, lib, "g_filter_input_stream_get_base_stream") | 93 | core.PuregoSafeRegister(&xFilterInputStreamGetBaseStream, lib, "g_filter_input_stream_get_base_stream") | ||
| 85 | core.PuregoSafeRegister(&xFilterInputStreamGetCloseBaseStream, lib, "g_filter_input_stream_get_close_base_stream") | 94 | core.PuregoSafeRegister(&xFilterInputStreamGetCloseBaseStream, lib, "g_filter_input_stream_get_close_base_stream") | ||
| 86 | core.PuregoSafeRegister(&xFilterInputStreamSetCloseBaseStream, lib, "g_filter_input_stream_set_close_base_stream") | 95 | core.PuregoSafeRegister(&xFilterInputStreamSetCloseBaseStream, lib, "g_filter_input_stream_set_close_base_stream") | ||
M v4/gio/gfilteroutputstream.go +9 -0
| @@ -7,6 +7,7 @@ import ( | |||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 10 | ) | 11 | ) | ||
| 11 | 12 | ||||
| 12 | type FilterOutputStreamClass struct { | 13 | type FilterOutputStreamClass struct { | ||
| @@ -25,6 +26,12 @@ type FilterOutputStream struct { | |||||
| 25 | OutputStream | 26 | OutputStream | ||
| 26 | } | 27 | } | ||
| 27 | 28 | ||||
| 29 | + | var xFilterOutputStreamGLibType func() types.GType | |||
| 30 | + | ||||
| 31 | + | func FilterOutputStreamGLibType() types.GType { | |||
| 32 | + | return xFilterOutputStreamGLibType() | |||
| 33 | + | } | |||
| 34 | + | ||||
| 28 | func FilterOutputStreamNewFromInternalPtr(ptr uintptr) *FilterOutputStream { | 35 | func FilterOutputStreamNewFromInternalPtr(ptr uintptr) *FilterOutputStream { | ||
| 29 | cls := &FilterOutputStream{} | 36 | cls := &FilterOutputStream{} | ||
| 30 | cls.Ptr = ptr | 37 | cls.Ptr = ptr | ||
| @@ -81,6 +88,8 @@ func init() { | |||||
| 81 | panic(err) | 88 | panic(err) | ||
| 82 | } | 89 | } | ||
| 83 | 90 | ||||
| 91 | + | core.PuregoSafeRegister(&xFilterOutputStreamGLibType, lib, "g_filter_output_stream_get_type") | |||
| 92 | + | ||||
| 84 | core.PuregoSafeRegister(&xFilterOutputStreamGetBaseStream, lib, "g_filter_output_stream_get_base_stream") | 93 | core.PuregoSafeRegister(&xFilterOutputStreamGetBaseStream, lib, "g_filter_output_stream_get_base_stream") | ||
| 85 | core.PuregoSafeRegister(&xFilterOutputStreamGetCloseBaseStream, lib, "g_filter_output_stream_get_close_base_stream") | 94 | core.PuregoSafeRegister(&xFilterOutputStreamGetCloseBaseStream, lib, "g_filter_output_stream_get_close_base_stream") | ||
| 86 | core.PuregoSafeRegister(&xFilterOutputStreamSetCloseBaseStream, lib, "g_filter_output_stream_set_close_base_stream") | 95 | core.PuregoSafeRegister(&xFilterOutputStreamSetCloseBaseStream, lib, "g_filter_output_stream_set_close_base_stream") | ||
M v4/gio/gicon.go +11 -0
| @@ -7,6 +7,7 @@ import ( | |||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 10 | ) | 11 | ) | ||
| 11 | 12 | ||||
| 12 | // GIconIface is used to implement GIcon types for various | 13 | // GIconIface is used to implement GIcon types for various | ||
| @@ -55,6 +56,13 @@ type Icon interface { | |||||
| 55 | Serialize() *glib.Variant | 56 | Serialize() *glib.Variant | ||
| 56 | ToString() string | 57 | ToString() string | ||
| 57 | } | 58 | } | ||
| 59 | + | ||||
| 60 | + | var xIconGLibType func() types.GType | |||
| 61 | + | ||||
| 62 | + | func IconGLibType() types.GType { | |||
| 63 | + | return xIconGLibType() | |||
| 64 | + | } | |||
| 65 | + | ||||
| 58 | type IconBase struct { | 66 | type IconBase struct { | ||
| 59 | Ptr uintptr | 67 | Ptr uintptr | ||
| 60 | } | 68 | } | ||
| @@ -167,10 +175,13 @@ func init() { | |||||
| 167 | if err != nil { | 175 | if err != nil { | ||
| 168 | panic(err) | 176 | panic(err) | ||
| 169 | } | 177 | } | ||
| 178 | + | ||||
| 170 | core.PuregoSafeRegister(&xIconDeserialize, lib, "g_icon_deserialize") | 179 | core.PuregoSafeRegister(&xIconDeserialize, lib, "g_icon_deserialize") | ||
| 171 | core.PuregoSafeRegister(&xIconHash, lib, "g_icon_hash") | 180 | core.PuregoSafeRegister(&xIconHash, lib, "g_icon_hash") | ||
| 172 | core.PuregoSafeRegister(&xIconNewForString, lib, "g_icon_new_for_string") | 181 | core.PuregoSafeRegister(&xIconNewForString, lib, "g_icon_new_for_string") | ||
| 173 | 182 | ||||
| 183 | + | core.PuregoSafeRegister(&xIconGLibType, lib, "g_icon_get_type") | |||
| 184 | + | ||||
| 174 | core.PuregoSafeRegister(&XGIconEqual, lib, "g_icon_equal") | 185 | core.PuregoSafeRegister(&XGIconEqual, lib, "g_icon_equal") | ||
| 175 | core.PuregoSafeRegister(&XGIconSerialize, lib, "g_icon_serialize") | 186 | core.PuregoSafeRegister(&XGIconSerialize, lib, "g_icon_serialize") | ||
| 176 | core.PuregoSafeRegister(&XGIconToString, lib, "g_icon_to_string") | 187 | core.PuregoSafeRegister(&XGIconToString, lib, "g_icon_to_string") | ||
M v4/gio/ginetaddress.go +9 -0
| @@ -7,6 +7,7 @@ import ( | |||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 10 | ) | 11 | ) | ||
| 11 | 12 | ||||
| 12 | type InetAddressClass struct { | 13 | type InetAddressClass struct { | ||
| @@ -38,6 +39,12 @@ type InetAddress struct { | |||||
| 38 | gobject.Object | 39 | gobject.Object | ||
| 39 | } | 40 | } | ||
| 40 | 41 | ||||
| 42 | + | var xInetAddressGLibType func() types.GType | |||
| 43 | + | ||||
| 44 | + | func InetAddressGLibType() types.GType { | |||
| 45 | + | return xInetAddressGLibType() | |||
| 46 | + | } | |||
| 47 | + | ||||
| 41 | func InetAddressNewFromInternalPtr(ptr uintptr) *InetAddress { | 48 | func InetAddressNewFromInternalPtr(ptr uintptr) *InetAddress { | ||
| 42 | cls := &InetAddress{} | 49 | cls := &InetAddress{} | ||
| 43 | cls.Ptr = ptr | 50 | cls.Ptr = ptr | ||
| @@ -266,6 +273,8 @@ func init() { | |||||
| 266 | panic(err) | 273 | panic(err) | ||
| 267 | } | 274 | } | ||
| 268 | 275 | ||||
| 276 | + | core.PuregoSafeRegister(&xInetAddressGLibType, lib, "g_inet_address_get_type") | |||
| 277 | + | ||||
| 269 | core.PuregoSafeRegister(&xNewInetAddressAny, lib, "g_inet_address_new_any") | 278 | core.PuregoSafeRegister(&xNewInetAddressAny, lib, "g_inet_address_new_any") | ||
| 270 | core.PuregoSafeRegister(&xNewInetAddressFromBytes, lib, "g_inet_address_new_from_bytes") | 279 | core.PuregoSafeRegister(&xNewInetAddressFromBytes, lib, "g_inet_address_new_from_bytes") | ||
| 271 | core.PuregoSafeRegister(&xNewInetAddressFromString, lib, "g_inet_address_new_from_string") | 280 | core.PuregoSafeRegister(&xNewInetAddressFromString, lib, "g_inet_address_new_from_string") | ||
M v4/gio/ginetaddressmask.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | type InetAddressMaskClass struct { | 14 | type InetAddressMaskClass struct { | ||
| @@ -33,6 +34,12 @@ type InetAddressMask struct { | |||||
| 33 | gobject.Object | 34 | gobject.Object | ||
| 34 | } | 35 | } | ||
| 35 | 36 | ||||
| 37 | + | var xInetAddressMaskGLibType func() types.GType | |||
| 38 | + | ||||
| 39 | + | func InetAddressMaskGLibType() types.GType { | |||
| 40 | + | return xInetAddressMaskGLibType() | |||
| 41 | + | } | |||
| 42 | + | ||||
| 36 | func InetAddressMaskNewFromInternalPtr(ptr uintptr) *InetAddressMask { | 43 | func InetAddressMaskNewFromInternalPtr(ptr uintptr) *InetAddressMask { | ||
| 37 | cls := &InetAddressMask{} | 44 | cls := &InetAddressMask{} | ||
| 38 | cls.Ptr = ptr | 45 | cls.Ptr = ptr | ||
| @@ -210,6 +217,8 @@ func init() { | |||||
| 210 | panic(err) | 217 | panic(err) | ||
| 211 | } | 218 | } | ||
| 212 | 219 | ||||
| 220 | + | core.PuregoSafeRegister(&xInetAddressMaskGLibType, lib, "g_inet_address_mask_get_type") | |||
| 221 | + | ||||
| 213 | core.PuregoSafeRegister(&xNewInetAddressMask, lib, "g_inet_address_mask_new") | 222 | core.PuregoSafeRegister(&xNewInetAddressMask, lib, "g_inet_address_mask_new") | ||
| 214 | core.PuregoSafeRegister(&xNewInetAddressMaskFromString, lib, "g_inet_address_mask_new_from_string") | 223 | core.PuregoSafeRegister(&xNewInetAddressMaskFromString, lib, "g_inet_address_mask_new_from_string") | ||
| 215 | 224 | ||||
M v4/gio/ginetsocketaddress.go +9 -0
| @@ -7,6 +7,7 @@ import ( | |||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 10 | ) | 11 | ) | ||
| 11 | 12 | ||||
| 12 | type InetSocketAddressClass struct { | 13 | type InetSocketAddressClass struct { | ||
| @@ -30,6 +31,12 @@ type InetSocketAddress struct { | |||||
| 30 | SocketAddress | 31 | SocketAddress | ||
| 31 | } | 32 | } | ||
| 32 | 33 | ||||
| 34 | + | var xInetSocketAddressGLibType func() types.GType | |||
| 35 | + | ||||
| 36 | + | func InetSocketAddressGLibType() types.GType { | |||
| 37 | + | return xInetSocketAddressGLibType() | |||
| 38 | + | } | |||
| 39 | + | ||||
| 33 | func InetSocketAddressNewFromInternalPtr(ptr uintptr) *InetSocketAddress { | 40 | func InetSocketAddressNewFromInternalPtr(ptr uintptr) *InetSocketAddress { | ||
| 34 | cls := &InetSocketAddress{} | 41 | cls := &InetSocketAddress{} | ||
| 35 | cls.Ptr = ptr | 42 | cls.Ptr = ptr | ||
| @@ -178,6 +185,8 @@ func init() { | |||||
| 178 | panic(err) | 185 | panic(err) | ||
| 179 | } | 186 | } | ||
| 180 | 187 | ||||
| 188 | + | core.PuregoSafeRegister(&xInetSocketAddressGLibType, lib, "g_inet_socket_address_get_type") | |||
| 189 | + | ||||
| 181 | core.PuregoSafeRegister(&xNewInetSocketAddress, lib, "g_inet_socket_address_new") | 190 | core.PuregoSafeRegister(&xNewInetSocketAddress, lib, "g_inet_socket_address_new") | ||
| 182 | core.PuregoSafeRegister(&xNewInetSocketAddressFromString, lib, "g_inet_socket_address_new_from_string") | 191 | core.PuregoSafeRegister(&xNewInetSocketAddressFromString, lib, "g_inet_socket_address_new_from_string") | ||
| 183 | 192 | ||||
M v4/gio/ginitable.go +10 -0
| @@ -50,6 +50,13 @@ type Initable interface { | |||||
| 50 | SetGoPointer(uintptr) | 50 | SetGoPointer(uintptr) | ||
| 51 | Init(CancellableVar *Cancellable) bool | 51 | Init(CancellableVar *Cancellable) bool | ||
| 52 | } | 52 | } | ||
| 53 | + | ||||
| 54 | + | var xInitableGLibType func() types.GType | |||
| 55 | + | ||||
| 56 | + | func InitableGLibType() types.GType { | |||
| 57 | + | return xInitableGLibType() | |||
| 58 | + | } | |||
| 59 | + | ||||
| 53 | type InitableBase struct { | 60 | type InitableBase struct { | ||
| 54 | Ptr uintptr | 61 | Ptr uintptr | ||
| 55 | } | 62 | } | ||
| @@ -141,8 +148,11 @@ func init() { | |||||
| 141 | if err != nil { | 148 | if err != nil { | ||
| 142 | panic(err) | 149 | panic(err) | ||
| 143 | } | 150 | } | ||
| 151 | + | ||||
| 144 | core.PuregoSafeRegister(&xInitableNewv, lib, "g_initable_newv") | 152 | core.PuregoSafeRegister(&xInitableNewv, lib, "g_initable_newv") | ||
| 145 | 153 | ||||
| 154 | + | core.PuregoSafeRegister(&xInitableGLibType, lib, "g_initable_get_type") | |||
| 155 | + | ||||
| 146 | core.PuregoSafeRegister(&XGInitableInit, lib, "g_initable_init") | 156 | core.PuregoSafeRegister(&XGInitableInit, lib, "g_initable_init") | ||
| 147 | 157 | ||||
| 148 | } | 158 | } | ||
M v4/gio/ginputstream.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | type InputStreamClass struct { | 14 | type InputStreamClass struct { | ||
| @@ -40,6 +41,12 @@ type InputStream struct { | |||||
| 40 | gobject.Object | 41 | gobject.Object | ||
| 41 | } | 42 | } | ||
| 42 | 43 | ||||
| 44 | + | var xInputStreamGLibType func() types.GType | |||
| 45 | + | ||||
| 46 | + | func InputStreamGLibType() types.GType { | |||
| 47 | + | return xInputStreamGLibType() | |||
| 48 | + | } | |||
| 49 | + | ||||
| 43 | func InputStreamNewFromInternalPtr(ptr uintptr) *InputStream { | 50 | func InputStreamNewFromInternalPtr(ptr uintptr) *InputStream { | ||
| 44 | cls := &InputStream{} | 51 | cls := &InputStream{} | ||
| 45 | cls.Ptr = ptr | 52 | cls.Ptr = ptr | ||
| @@ -472,6 +479,8 @@ func init() { | |||||
| 472 | panic(err) | 479 | panic(err) | ||
| 473 | } | 480 | } | ||
| 474 | 481 | ||||
| 482 | + | core.PuregoSafeRegister(&xInputStreamGLibType, lib, "g_input_stream_get_type") | |||
| 483 | + | ||||
| 475 | core.PuregoSafeRegister(&xInputStreamClearPending, lib, "g_input_stream_clear_pending") | 484 | core.PuregoSafeRegister(&xInputStreamClearPending, lib, "g_input_stream_clear_pending") | ||
| 476 | core.PuregoSafeRegister(&xInputStreamClose, lib, "g_input_stream_close") | 485 | core.PuregoSafeRegister(&xInputStreamClose, lib, "g_input_stream_close") | ||
| 477 | core.PuregoSafeRegister(&xInputStreamCloseAsync, lib, "g_input_stream_close_async") | 486 | core.PuregoSafeRegister(&xInputStreamCloseAsync, lib, "g_input_stream_close_async") | ||
M v4/gio/gio-2.0.go +154 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | var xIoErrorQuark func() glib.Quark | 14 | var xIoErrorQuark func() glib.Quark | ||
| @@ -76,6 +77,12 @@ type AppInfoMonitor struct { | |||||
| 76 | gobject.Object | 77 | gobject.Object | ||
| 77 | } | 78 | } | ||
| 78 | 79 | ||||
| 80 | + | var xAppInfoMonitorGLibType func() types.GType | |||
| 81 | + | ||||
| 82 | + | func AppInfoMonitorGLibType() types.GType { | |||
| 83 | + | return xAppInfoMonitorGLibType() | |||
| 84 | + | } | |||
| 85 | + | ||||
| 79 | func AppInfoMonitorNewFromInternalPtr(ptr uintptr) *AppInfoMonitor { | 86 | func AppInfoMonitorNewFromInternalPtr(ptr uintptr) *AppInfoMonitor { | ||
| 80 | cls := &AppInfoMonitor{} | 87 | cls := &AppInfoMonitor{} | ||
| 81 | cls.Ptr = ptr | 88 | cls.Ptr = ptr | ||
| @@ -141,6 +148,12 @@ type BytesIcon struct { | |||||
| 141 | gobject.Object | 148 | gobject.Object | ||
| 142 | } | 149 | } | ||
| 143 | 150 | ||||
| 151 | + | var xBytesIconGLibType func() types.GType | |||
| 152 | + | ||||
| 153 | + | func BytesIconGLibType() types.GType { | |||
| 154 | + | return xBytesIconGLibType() | |||
| 155 | + | } | |||
| 156 | + | ||||
| 144 | func BytesIconNewFromInternalPtr(ptr uintptr) *BytesIcon { | 157 | func BytesIconNewFromInternalPtr(ptr uintptr) *BytesIcon { | ||
| 145 | cls := &BytesIcon{} | 158 | cls := &BytesIcon{} | ||
| 146 | cls.Ptr = ptr | 159 | cls.Ptr = ptr | ||
| @@ -278,6 +291,12 @@ type DBusActionGroup struct { | |||||
| 278 | gobject.Object | 291 | gobject.Object | ||
| 279 | } | 292 | } | ||
| 280 | 293 | ||||
| 294 | + | var xDBusActionGroupGLibType func() types.GType | |||
| 295 | + | ||||
| 296 | + | func DBusActionGroupGLibType() types.GType { | |||
| 297 | + | return xDBusActionGroupGLibType() | |||
| 298 | + | } | |||
| 299 | + | ||||
| 281 | func DBusActionGroupNewFromInternalPtr(ptr uintptr) *DBusActionGroup { | 300 | func DBusActionGroupNewFromInternalPtr(ptr uintptr) *DBusActionGroup { | ||
| 282 | cls := &DBusActionGroup{} | 301 | cls := &DBusActionGroup{} | ||
| 283 | cls.Ptr = ptr | 302 | cls.Ptr = ptr | ||
| @@ -653,6 +672,12 @@ type DBusAuthObserver struct { | |||||
| 653 | gobject.Object | 672 | gobject.Object | ||
| 654 | } | 673 | } | ||
| 655 | 674 | ||||
| 675 | + | var xDBusAuthObserverGLibType func() types.GType | |||
| 676 | + | ||||
| 677 | + | func DBusAuthObserverGLibType() types.GType { | |||
| 678 | + | return xDBusAuthObserverGLibType() | |||
| 679 | + | } | |||
| 680 | + | ||||
| 656 | func DBusAuthObserverNewFromInternalPtr(ptr uintptr) *DBusAuthObserver { | 681 | func DBusAuthObserverNewFromInternalPtr(ptr uintptr) *DBusAuthObserver { | ||
| 657 | cls := &DBusAuthObserver{} | 682 | cls := &DBusAuthObserver{} | ||
| 658 | cls.Ptr = ptr | 683 | cls.Ptr = ptr | ||
| @@ -795,6 +820,12 @@ type DBusConnection struct { | |||||
| 795 | gobject.Object | 820 | gobject.Object | ||
| 796 | } | 821 | } | ||
| 797 | 822 | ||||
| 823 | + | var xDBusConnectionGLibType func() types.GType | |||
| 824 | + | ||||
| 825 | + | func DBusConnectionGLibType() types.GType { | |||
| 826 | + | return xDBusConnectionGLibType() | |||
| 827 | + | } | |||
| 828 | + | ||||
| 798 | func DBusConnectionNewFromInternalPtr(ptr uintptr) *DBusConnection { | 829 | func DBusConnectionNewFromInternalPtr(ptr uintptr) *DBusConnection { | ||
| 799 | cls := &DBusConnection{} | 830 | cls := &DBusConnection{} | ||
| 800 | cls.Ptr = ptr | 831 | cls.Ptr = ptr | ||
| @@ -2114,6 +2145,12 @@ type DBusMenuModel struct { | |||||
| 2114 | MenuModel | 2145 | MenuModel | ||
| 2115 | } | 2146 | } | ||
| 2116 | 2147 | ||||
| 2148 | + | var xDBusMenuModelGLibType func() types.GType | |||
| 2149 | + | ||||
| 2150 | + | func DBusMenuModelGLibType() types.GType { | |||
| 2151 | + | return xDBusMenuModelGLibType() | |||
| 2152 | + | } | |||
| 2153 | + | ||||
| 2117 | func DBusMenuModelNewFromInternalPtr(ptr uintptr) *DBusMenuModel { | 2154 | func DBusMenuModelNewFromInternalPtr(ptr uintptr) *DBusMenuModel { | ||
| 2118 | cls := &DBusMenuModel{} | 2155 | cls := &DBusMenuModel{} | ||
| 2119 | cls.Ptr = ptr | 2156 | cls.Ptr = ptr | ||
| @@ -2157,6 +2194,12 @@ type DBusMessage struct { | |||||
| 2157 | gobject.Object | 2194 | gobject.Object | ||
| 2158 | } | 2195 | } | ||
| 2159 | 2196 | ||||
| 2197 | + | var xDBusMessageGLibType func() types.GType | |||
| 2198 | + | ||||
| 2199 | + | func DBusMessageGLibType() types.GType { | |||
| 2200 | + | return xDBusMessageGLibType() | |||
| 2201 | + | } | |||
| 2202 | + | ||||
| 2160 | func DBusMessageNewFromInternalPtr(ptr uintptr) *DBusMessage { | 2203 | func DBusMessageNewFromInternalPtr(ptr uintptr) *DBusMessage { | ||
| 2161 | cls := &DBusMessage{} | 2204 | cls := &DBusMessage{} | ||
| 2162 | cls.Ptr = ptr | 2205 | cls.Ptr = ptr | ||
| @@ -2807,6 +2850,12 @@ type DBusMethodInvocation struct { | |||||
| 2807 | gobject.Object | 2850 | gobject.Object | ||
| 2808 | } | 2851 | } | ||
| 2809 | 2852 | ||||
| 2853 | + | var xDBusMethodInvocationGLibType func() types.GType | |||
| 2854 | + | ||||
| 2855 | + | func DBusMethodInvocationGLibType() types.GType { | |||
| 2856 | + | return xDBusMethodInvocationGLibType() | |||
| 2857 | + | } | |||
| 2858 | + | ||||
| 2810 | func DBusMethodInvocationNewFromInternalPtr(ptr uintptr) *DBusMethodInvocation { | 2859 | func DBusMethodInvocationNewFromInternalPtr(ptr uintptr) *DBusMethodInvocation { | ||
| 2811 | cls := &DBusMethodInvocation{} | 2860 | cls := &DBusMethodInvocation{} | ||
| 2812 | cls.Ptr = ptr | 2861 | cls.Ptr = ptr | ||
| @@ -3131,6 +3180,12 @@ type DBusServer struct { | |||||
| 3131 | gobject.Object | 3180 | gobject.Object | ||
| 3132 | } | 3181 | } | ||
| 3133 | 3182 | ||||
| 3183 | + | var xDBusServerGLibType func() types.GType | |||
| 3184 | + | ||||
| 3185 | + | func DBusServerGLibType() types.GType { | |||
| 3186 | + | return xDBusServerGLibType() | |||
| 3187 | + | } | |||
| 3188 | + | ||||
| 3134 | func DBusServerNewFromInternalPtr(ptr uintptr) *DBusServer { | 3189 | func DBusServerNewFromInternalPtr(ptr uintptr) *DBusServer { | ||
| 3135 | cls := &DBusServer{} | 3190 | cls := &DBusServer{} | ||
| 3136 | cls.Ptr = ptr | 3191 | cls.Ptr = ptr | ||
| @@ -3344,6 +3399,12 @@ type Menu struct { | |||||
| 3344 | MenuModel | 3399 | MenuModel | ||
| 3345 | } | 3400 | } | ||
| 3346 | 3401 | ||||
| 3402 | + | var xMenuGLibType func() types.GType | |||
| 3403 | + | ||||
| 3404 | + | func MenuGLibType() types.GType { | |||
| 3405 | + | return xMenuGLibType() | |||
| 3406 | + | } | |||
| 3407 | + | ||||
| 3347 | func MenuNewFromInternalPtr(ptr uintptr) *Menu { | 3408 | func MenuNewFromInternalPtr(ptr uintptr) *Menu { | ||
| 3348 | cls := &Menu{} | 3409 | cls := &Menu{} | ||
| 3349 | cls.Ptr = ptr | 3410 | cls.Ptr = ptr | ||
| @@ -3571,6 +3632,12 @@ type MenuItem struct { | |||||
| 3571 | gobject.Object | 3632 | gobject.Object | ||
| 3572 | } | 3633 | } | ||
| 3573 | 3634 | ||||
| 3635 | + | var xMenuItemGLibType func() types.GType | |||
| 3636 | + | ||||
| 3637 | + | func MenuItemGLibType() types.GType { | |||
| 3638 | + | return xMenuItemGLibType() | |||
| 3639 | + | } | |||
| 3640 | + | ||||
| 3574 | func MenuItemNewFromInternalPtr(ptr uintptr) *MenuItem { | 3641 | func MenuItemNewFromInternalPtr(ptr uintptr) *MenuItem { | ||
| 3575 | cls := &MenuItem{} | 3642 | cls := &MenuItem{} | ||
| 3576 | cls.Ptr = ptr | 3643 | cls.Ptr = ptr | ||
| @@ -4044,6 +4111,12 @@ type Notification struct { | |||||
| 4044 | gobject.Object | 4111 | gobject.Object | ||
| 4045 | } | 4112 | } | ||
| 4046 | 4113 | ||||
| 4114 | + | var xNotificationGLibType func() types.GType | |||
| 4115 | + | ||||
| 4116 | + | func NotificationGLibType() types.GType { | |||
| 4117 | + | return xNotificationGLibType() | |||
| 4118 | + | } | |||
| 4119 | + | ||||
| 4047 | func NotificationNewFromInternalPtr(ptr uintptr) *Notification { | 4120 | func NotificationNewFromInternalPtr(ptr uintptr) *Notification { | ||
| 4048 | cls := &Notification{} | 4121 | cls := &Notification{} | ||
| 4049 | cls.Ptr = ptr | 4122 | cls.Ptr = ptr | ||
| @@ -4293,6 +4366,12 @@ type PropertyAction struct { | |||||
| 4293 | gobject.Object | 4366 | gobject.Object | ||
| 4294 | } | 4367 | } | ||
| 4295 | 4368 | ||||
| 4369 | + | var xPropertyActionGLibType func() types.GType | |||
| 4370 | + | ||||
| 4371 | + | func PropertyActionGLibType() types.GType { | |||
| 4372 | + | return xPropertyActionGLibType() | |||
| 4373 | + | } | |||
| 4374 | + | ||||
| 4296 | func PropertyActionNewFromInternalPtr(ptr uintptr) *PropertyAction { | 4375 | func PropertyActionNewFromInternalPtr(ptr uintptr) *PropertyAction { | ||
| 4297 | cls := &PropertyAction{} | 4376 | cls := &PropertyAction{} | ||
| 4298 | cls.Ptr = ptr | 4377 | cls.Ptr = ptr | ||
| @@ -4455,6 +4534,12 @@ type SimpleAction struct { | |||||
| 4455 | gobject.Object | 4534 | gobject.Object | ||
| 4456 | } | 4535 | } | ||
| 4457 | 4536 | ||||
| 4537 | + | var xSimpleActionGLibType func() types.GType | |||
| 4538 | + | ||||
| 4539 | + | func SimpleActionGLibType() types.GType { | |||
| 4540 | + | return xSimpleActionGLibType() | |||
| 4541 | + | } | |||
| 4542 | + | ||||
| 4458 | func SimpleActionNewFromInternalPtr(ptr uintptr) *SimpleAction { | 4543 | func SimpleActionNewFromInternalPtr(ptr uintptr) *SimpleAction { | ||
| 4459 | cls := &SimpleAction{} | 4544 | cls := &SimpleAction{} | ||
| 4460 | cls.Ptr = ptr | 4545 | cls.Ptr = ptr | ||
| @@ -4769,6 +4854,12 @@ type SimpleIOStream struct { | |||||
| 4769 | IOStream | 4854 | IOStream | ||
| 4770 | } | 4855 | } | ||
| 4771 | 4856 | ||||
| 4857 | + | var xSimpleIOStreamGLibType func() types.GType | |||
| 4858 | + | ||||
| 4859 | + | func SimpleIOStreamGLibType() types.GType { | |||
| 4860 | + | return xSimpleIOStreamGLibType() | |||
| 4861 | + | } | |||
| 4862 | + | ||||
| 4772 | func SimpleIOStreamNewFromInternalPtr(ptr uintptr) *SimpleIOStream { | 4863 | func SimpleIOStreamNewFromInternalPtr(ptr uintptr) *SimpleIOStream { | ||
| 4773 | cls := &SimpleIOStream{} | 4864 | cls := &SimpleIOStream{} | ||
| 4774 | cls.Ptr = ptr | 4865 | cls.Ptr = ptr | ||
| @@ -4809,6 +4900,12 @@ type SimplePermission struct { | |||||
| 4809 | Permission | 4900 | Permission | ||
| 4810 | } | 4901 | } | ||
| 4811 | 4902 | ||||
| 4903 | + | var xSimplePermissionGLibType func() types.GType | |||
| 4904 | + | ||||
| 4905 | + | func SimplePermissionGLibType() types.GType { | |||
| 4906 | + | return xSimplePermissionGLibType() | |||
| 4907 | + | } | |||
| 4908 | + | ||||
| 4812 | func SimplePermissionNewFromInternalPtr(ptr uintptr) *SimplePermission { | 4909 | func SimplePermissionNewFromInternalPtr(ptr uintptr) *SimplePermission { | ||
| 4813 | cls := &SimplePermission{} | 4910 | cls := &SimplePermission{} | ||
| 4814 | cls.Ptr = ptr | 4911 | cls.Ptr = ptr | ||
| @@ -4901,6 +4998,12 @@ type Subprocess struct { | |||||
| 4901 | gobject.Object | 4998 | gobject.Object | ||
| 4902 | } | 4999 | } | ||
| 4903 | 5000 | ||||
| 5001 | + | var xSubprocessGLibType func() types.GType | |||
| 5002 | + | ||||
| 5003 | + | func SubprocessGLibType() types.GType { | |||
| 5004 | + | return xSubprocessGLibType() | |||
| 5005 | + | } | |||
| 5006 | + | ||||
| 4904 | func SubprocessNewFromInternalPtr(ptr uintptr) *Subprocess { | 5007 | func SubprocessNewFromInternalPtr(ptr uintptr) *Subprocess { | ||
| 4905 | cls := &Subprocess{} | 5008 | cls := &Subprocess{} | ||
| 4906 | cls.Ptr = ptr | 5009 | cls.Ptr = ptr | ||
| @@ -5428,6 +5531,12 @@ type SubprocessLauncher struct { | |||||
| 5428 | gobject.Object | 5531 | gobject.Object | ||
| 5429 | } | 5532 | } | ||
| 5430 | 5533 | ||||
| 5534 | + | var xSubprocessLauncherGLibType func() types.GType | |||
| 5535 | + | ||||
| 5536 | + | func SubprocessLauncherGLibType() types.GType { | |||
| 5537 | + | return xSubprocessLauncherGLibType() | |||
| 5538 | + | } | |||
| 5539 | + | ||||
| 5431 | func SubprocessLauncherNewFromInternalPtr(ptr uintptr) *SubprocessLauncher { | 5540 | func SubprocessLauncherNewFromInternalPtr(ptr uintptr) *SubprocessLauncher { | ||
| 5432 | cls := &SubprocessLauncher{} | 5541 | cls := &SubprocessLauncher{} | ||
| 5433 | cls.Ptr = ptr | 5542 | cls.Ptr = ptr | ||
| @@ -5876,6 +5985,12 @@ type TestDBus struct { | |||||
| 5876 | gobject.Object | 5985 | gobject.Object | ||
| 5877 | } | 5986 | } | ||
| 5878 | 5987 | ||||
| 5988 | + | var xTestDBusGLibType func() types.GType | |||
| 5989 | + | ||||
| 5990 | + | func TestDBusGLibType() types.GType { | |||
| 5991 | + | return xTestDBusGLibType() | |||
| 5992 | + | } | |||
| 5993 | + | ||||
| 5879 | func TestDBusNewFromInternalPtr(ptr uintptr) *TestDBus { | 5994 | func TestDBusNewFromInternalPtr(ptr uintptr) *TestDBus { | ||
| 5880 | cls := &TestDBus{} | 5995 | cls := &TestDBus{} | ||
| 5881 | cls.Ptr = ptr | 5996 | cls.Ptr = ptr | ||
| @@ -5998,25 +6113,36 @@ func init() { | |||||
| 5998 | if err != nil { | 6113 | if err != nil { | ||
| 5999 | panic(err) | 6114 | panic(err) | ||
| 6000 | } | 6115 | } | ||
| 6116 | + | ||||
| 6001 | core.PuregoSafeRegister(&xIoErrorQuark, lib, "g_io_error_quark") | 6117 | core.PuregoSafeRegister(&xIoErrorQuark, lib, "g_io_error_quark") | ||
| 6002 | core.PuregoSafeRegister(&xResolverErrorQuark, lib, "g_resolver_error_quark") | 6118 | core.PuregoSafeRegister(&xResolverErrorQuark, lib, "g_resolver_error_quark") | ||
| 6003 | core.PuregoSafeRegister(&xResourceErrorQuark, lib, "g_resource_error_quark") | 6119 | core.PuregoSafeRegister(&xResourceErrorQuark, lib, "g_resource_error_quark") | ||
| 6004 | core.PuregoSafeRegister(&xTlsChannelBindingErrorQuark, lib, "g_tls_channel_binding_error_quark") | 6120 | core.PuregoSafeRegister(&xTlsChannelBindingErrorQuark, lib, "g_tls_channel_binding_error_quark") | ||
| 6005 | core.PuregoSafeRegister(&xTlsErrorQuark, lib, "g_tls_error_quark") | 6121 | core.PuregoSafeRegister(&xTlsErrorQuark, lib, "g_tls_error_quark") | ||
| 6006 | 6122 | ||||
| 6123 | + | core.PuregoSafeRegister(&xAppInfoMonitorGLibType, lib, "g_app_info_monitor_get_type") | |||
| 6124 | + | ||||
| 6007 | core.PuregoSafeRegister(&xAppInfoMonitorGet, lib, "g_app_info_monitor_get") | 6125 | core.PuregoSafeRegister(&xAppInfoMonitorGet, lib, "g_app_info_monitor_get") | ||
| 6008 | 6126 | ||||
| 6127 | + | core.PuregoSafeRegister(&xBytesIconGLibType, lib, "g_bytes_icon_get_type") | |||
| 6128 | + | ||||
| 6009 | core.PuregoSafeRegister(&xNewBytesIcon, lib, "g_bytes_icon_new") | 6129 | core.PuregoSafeRegister(&xNewBytesIcon, lib, "g_bytes_icon_new") | ||
| 6010 | 6130 | ||||
| 6011 | core.PuregoSafeRegister(&xBytesIconGetBytes, lib, "g_bytes_icon_get_bytes") | 6131 | core.PuregoSafeRegister(&xBytesIconGetBytes, lib, "g_bytes_icon_get_bytes") | ||
| 6012 | 6132 | ||||
| 6133 | + | core.PuregoSafeRegister(&xDBusActionGroupGLibType, lib, "g_dbus_action_group_get_type") | |||
| 6134 | + | ||||
| 6013 | core.PuregoSafeRegister(&xDBusActionGroupGet, lib, "g_dbus_action_group_get") | 6135 | core.PuregoSafeRegister(&xDBusActionGroupGet, lib, "g_dbus_action_group_get") | ||
| 6014 | 6136 | ||||
| 6137 | + | core.PuregoSafeRegister(&xDBusAuthObserverGLibType, lib, "g_dbus_auth_observer_get_type") | |||
| 6138 | + | ||||
| 6015 | core.PuregoSafeRegister(&xNewDBusAuthObserver, lib, "g_dbus_auth_observer_new") | 6139 | core.PuregoSafeRegister(&xNewDBusAuthObserver, lib, "g_dbus_auth_observer_new") | ||
| 6016 | 6140 | ||||
| 6017 | core.PuregoSafeRegister(&xDBusAuthObserverAllowMechanism, lib, "g_dbus_auth_observer_allow_mechanism") | 6141 | core.PuregoSafeRegister(&xDBusAuthObserverAllowMechanism, lib, "g_dbus_auth_observer_allow_mechanism") | ||
| 6018 | core.PuregoSafeRegister(&xDBusAuthObserverAuthorizeAuthenticatedPeer, lib, "g_dbus_auth_observer_authorize_authenticated_peer") | 6142 | core.PuregoSafeRegister(&xDBusAuthObserverAuthorizeAuthenticatedPeer, lib, "g_dbus_auth_observer_authorize_authenticated_peer") | ||
| 6019 | 6143 | ||||
| 6144 | + | core.PuregoSafeRegister(&xDBusConnectionGLibType, lib, "g_dbus_connection_get_type") | |||
| 6145 | + | ||||
| 6020 | core.PuregoSafeRegister(&xNewDBusConnectionFinish, lib, "g_dbus_connection_new_finish") | 6146 | core.PuregoSafeRegister(&xNewDBusConnectionFinish, lib, "g_dbus_connection_new_finish") | ||
| 6021 | core.PuregoSafeRegister(&xNewDBusConnectionForAddressFinish, lib, "g_dbus_connection_new_for_address_finish") | 6147 | core.PuregoSafeRegister(&xNewDBusConnectionForAddressFinish, lib, "g_dbus_connection_new_for_address_finish") | ||
| 6022 | core.PuregoSafeRegister(&xNewDBusConnectionForAddressSync, lib, "g_dbus_connection_new_for_address_sync") | 6148 | core.PuregoSafeRegister(&xNewDBusConnectionForAddressSync, lib, "g_dbus_connection_new_for_address_sync") | ||
| @@ -6067,8 +6193,12 @@ func init() { | |||||
| 6067 | core.PuregoSafeRegister(&xDBusConnectionNew, lib, "g_dbus_connection_new") | 6193 | core.PuregoSafeRegister(&xDBusConnectionNew, lib, "g_dbus_connection_new") | ||
| 6068 | core.PuregoSafeRegister(&xDBusConnectionNewForAddress, lib, "g_dbus_connection_new_for_address") | 6194 | core.PuregoSafeRegister(&xDBusConnectionNewForAddress, lib, "g_dbus_connection_new_for_address") | ||
| 6069 | 6195 | ||||
| 6196 | + | core.PuregoSafeRegister(&xDBusMenuModelGLibType, lib, "g_dbus_menu_model_get_type") | |||
| 6197 | + | ||||
| 6070 | core.PuregoSafeRegister(&xDBusMenuModelGet, lib, "g_dbus_menu_model_get") | 6198 | core.PuregoSafeRegister(&xDBusMenuModelGet, lib, "g_dbus_menu_model_get") | ||
| 6071 | 6199 | ||||
| 6200 | + | core.PuregoSafeRegister(&xDBusMessageGLibType, lib, "g_dbus_message_get_type") | |||
| 6201 | + | ||||
| 6072 | core.PuregoSafeRegister(&xNewDBusMessage, lib, "g_dbus_message_new") | 6202 | core.PuregoSafeRegister(&xNewDBusMessage, lib, "g_dbus_message_new") | ||
| 6073 | core.PuregoSafeRegister(&xNewDBusMessageFromBlob, lib, "g_dbus_message_new_from_blob") | 6203 | core.PuregoSafeRegister(&xNewDBusMessageFromBlob, lib, "g_dbus_message_new_from_blob") | ||
| 6074 | core.PuregoSafeRegister(&xNewDBusMessageMethodCall, lib, "g_dbus_message_new_method_call") | 6204 | core.PuregoSafeRegister(&xNewDBusMessageMethodCall, lib, "g_dbus_message_new_method_call") | ||
| @@ -6121,6 +6251,8 @@ func init() { | |||||
| 6121 | 6251 | ||||
| 6122 | core.PuregoSafeRegister(&xDBusMessageBytesNeeded, lib, "g_dbus_message_bytes_needed") | 6252 | core.PuregoSafeRegister(&xDBusMessageBytesNeeded, lib, "g_dbus_message_bytes_needed") | ||
| 6123 | 6253 | ||||
| 6254 | + | core.PuregoSafeRegister(&xDBusMethodInvocationGLibType, lib, "g_dbus_method_invocation_get_type") | |||
| 6255 | + | ||||
| 6124 | core.PuregoSafeRegister(&xDBusMethodInvocationGetConnection, lib, "g_dbus_method_invocation_get_connection") | 6256 | core.PuregoSafeRegister(&xDBusMethodInvocationGetConnection, lib, "g_dbus_method_invocation_get_connection") | ||
| 6125 | core.PuregoSafeRegister(&xDBusMethodInvocationGetInterfaceName, lib, "g_dbus_method_invocation_get_interface_name") | 6257 | core.PuregoSafeRegister(&xDBusMethodInvocationGetInterfaceName, lib, "g_dbus_method_invocation_get_interface_name") | ||
| 6126 | core.PuregoSafeRegister(&xDBusMethodInvocationGetMessage, lib, "g_dbus_method_invocation_get_message") | 6258 | core.PuregoSafeRegister(&xDBusMethodInvocationGetMessage, lib, "g_dbus_method_invocation_get_message") | ||
| @@ -6140,6 +6272,8 @@ func init() { | |||||
| 6140 | core.PuregoSafeRegister(&xDBusMethodInvocationReturnValueWithUnixFdList, lib, "g_dbus_method_invocation_return_value_with_unix_fd_list") | 6272 | core.PuregoSafeRegister(&xDBusMethodInvocationReturnValueWithUnixFdList, lib, "g_dbus_method_invocation_return_value_with_unix_fd_list") | ||
| 6141 | core.PuregoSafeRegister(&xDBusMethodInvocationTakeError, lib, "g_dbus_method_invocation_take_error") | 6273 | core.PuregoSafeRegister(&xDBusMethodInvocationTakeError, lib, "g_dbus_method_invocation_take_error") | ||
| 6142 | 6274 | ||||
| 6275 | + | core.PuregoSafeRegister(&xDBusServerGLibType, lib, "g_dbus_server_get_type") | |||
| 6276 | + | ||||
| 6143 | core.PuregoSafeRegister(&xNewDBusServerSync, lib, "g_dbus_server_new_sync") | 6277 | core.PuregoSafeRegister(&xNewDBusServerSync, lib, "g_dbus_server_new_sync") | ||
| 6144 | 6278 | ||||
| 6145 | core.PuregoSafeRegister(&xDBusServerGetClientAddress, lib, "g_dbus_server_get_client_address") | 6279 | core.PuregoSafeRegister(&xDBusServerGetClientAddress, lib, "g_dbus_server_get_client_address") | ||
| @@ -6149,6 +6283,8 @@ func init() { | |||||
| 6149 | core.PuregoSafeRegister(&xDBusServerStart, lib, "g_dbus_server_start") | 6283 | core.PuregoSafeRegister(&xDBusServerStart, lib, "g_dbus_server_start") | ||
| 6150 | core.PuregoSafeRegister(&xDBusServerStop, lib, "g_dbus_server_stop") | 6284 | core.PuregoSafeRegister(&xDBusServerStop, lib, "g_dbus_server_stop") | ||
| 6151 | 6285 | ||||
| 6286 | + | core.PuregoSafeRegister(&xMenuGLibType, lib, "g_menu_get_type") | |||
| 6287 | + | ||||
| 6152 | core.PuregoSafeRegister(&xNewMenu, lib, "g_menu_new") | 6288 | core.PuregoSafeRegister(&xNewMenu, lib, "g_menu_new") | ||
| 6153 | 6289 | ||||
| 6154 | core.PuregoSafeRegister(&xMenuAppend, lib, "g_menu_append") | 6290 | core.PuregoSafeRegister(&xMenuAppend, lib, "g_menu_append") | ||
| @@ -6167,6 +6303,8 @@ func init() { | |||||
| 6167 | core.PuregoSafeRegister(&xMenuRemove, lib, "g_menu_remove") | 6303 | core.PuregoSafeRegister(&xMenuRemove, lib, "g_menu_remove") | ||
| 6168 | core.PuregoSafeRegister(&xMenuRemoveAll, lib, "g_menu_remove_all") | 6304 | core.PuregoSafeRegister(&xMenuRemoveAll, lib, "g_menu_remove_all") | ||
| 6169 | 6305 | ||||
| 6306 | + | core.PuregoSafeRegister(&xMenuItemGLibType, lib, "g_menu_item_get_type") | |||
| 6307 | + | ||||
| 6170 | core.PuregoSafeRegister(&xNewMenuItem, lib, "g_menu_item_new") | 6308 | core.PuregoSafeRegister(&xNewMenuItem, lib, "g_menu_item_new") | ||
| 6171 | core.PuregoSafeRegister(&xNewMenuItemFromModel, lib, "g_menu_item_new_from_model") | 6309 | core.PuregoSafeRegister(&xNewMenuItemFromModel, lib, "g_menu_item_new_from_model") | ||
| 6172 | core.PuregoSafeRegister(&xNewMenuItemSection, lib, "g_menu_item_new_section") | 6310 | core.PuregoSafeRegister(&xNewMenuItemSection, lib, "g_menu_item_new_section") | ||
| @@ -6186,6 +6324,8 @@ func init() { | |||||
| 6186 | core.PuregoSafeRegister(&xMenuItemSetSection, lib, "g_menu_item_set_section") | 6324 | core.PuregoSafeRegister(&xMenuItemSetSection, lib, "g_menu_item_set_section") | ||
| 6187 | core.PuregoSafeRegister(&xMenuItemSetSubmenu, lib, "g_menu_item_set_submenu") | 6325 | core.PuregoSafeRegister(&xMenuItemSetSubmenu, lib, "g_menu_item_set_submenu") | ||
| 6188 | 6326 | ||||
| 6327 | + | core.PuregoSafeRegister(&xNotificationGLibType, lib, "g_notification_get_type") | |||
| 6328 | + | ||||
| 6189 | core.PuregoSafeRegister(&xNewNotification, lib, "g_notification_new") | 6329 | core.PuregoSafeRegister(&xNewNotification, lib, "g_notification_new") | ||
| 6190 | 6330 | ||||
| 6191 | core.PuregoSafeRegister(&xNotificationAddButton, lib, "g_notification_add_button") | 6331 | core.PuregoSafeRegister(&xNotificationAddButton, lib, "g_notification_add_button") | ||
| @@ -6201,8 +6341,12 @@ func init() { | |||||
| 6201 | core.PuregoSafeRegister(&xNotificationSetTitle, lib, "g_notification_set_title") | 6341 | core.PuregoSafeRegister(&xNotificationSetTitle, lib, "g_notification_set_title") | ||
| 6202 | core.PuregoSafeRegister(&xNotificationSetUrgent, lib, "g_notification_set_urgent") | 6342 | core.PuregoSafeRegister(&xNotificationSetUrgent, lib, "g_notification_set_urgent") | ||
| 6203 | 6343 | ||||
| 6344 | + | core.PuregoSafeRegister(&xPropertyActionGLibType, lib, "g_property_action_get_type") | |||
| 6345 | + | ||||
| 6204 | core.PuregoSafeRegister(&xNewPropertyAction, lib, "g_property_action_new") | 6346 | core.PuregoSafeRegister(&xNewPropertyAction, lib, "g_property_action_new") | ||
| 6205 | 6347 | ||||
| 6348 | + | core.PuregoSafeRegister(&xSimpleActionGLibType, lib, "g_simple_action_get_type") | |||
| 6349 | + | ||||
| 6206 | core.PuregoSafeRegister(&xNewSimpleAction, lib, "g_simple_action_new") | 6350 | core.PuregoSafeRegister(&xNewSimpleAction, lib, "g_simple_action_new") | ||
| 6207 | core.PuregoSafeRegister(&xNewSimpleActionStateful, lib, "g_simple_action_new_stateful") | 6351 | core.PuregoSafeRegister(&xNewSimpleActionStateful, lib, "g_simple_action_new_stateful") | ||
| 6208 | 6352 | ||||
| @@ -6210,10 +6354,16 @@ func init() { | |||||
| 6210 | core.PuregoSafeRegister(&xSimpleActionSetState, lib, "g_simple_action_set_state") | 6354 | core.PuregoSafeRegister(&xSimpleActionSetState, lib, "g_simple_action_set_state") | ||
| 6211 | core.PuregoSafeRegister(&xSimpleActionSetStateHint, lib, "g_simple_action_set_state_hint") | 6355 | core.PuregoSafeRegister(&xSimpleActionSetStateHint, lib, "g_simple_action_set_state_hint") | ||
| 6212 | 6356 | ||||
| 6357 | + | core.PuregoSafeRegister(&xSimpleIOStreamGLibType, lib, "g_simple_io_stream_get_type") | |||
| 6358 | + | ||||
| 6213 | core.PuregoSafeRegister(&xNewSimpleIOStream, lib, "g_simple_io_stream_new") | 6359 | core.PuregoSafeRegister(&xNewSimpleIOStream, lib, "g_simple_io_stream_new") | ||
| 6214 | 6360 | ||||
| 6361 | + | core.PuregoSafeRegister(&xSimplePermissionGLibType, lib, "g_simple_permission_get_type") | |||
| 6362 | + | ||||
| 6215 | core.PuregoSafeRegister(&xNewSimplePermission, lib, "g_simple_permission_new") | 6363 | core.PuregoSafeRegister(&xNewSimplePermission, lib, "g_simple_permission_new") | ||
| 6216 | 6364 | ||||
| 6365 | + | core.PuregoSafeRegister(&xSubprocessGLibType, lib, "g_subprocess_get_type") | |||
| 6366 | + | ||||
| 6217 | core.PuregoSafeRegister(&xNewSubprocess, lib, "g_subprocess_new") | 6367 | core.PuregoSafeRegister(&xNewSubprocess, lib, "g_subprocess_new") | ||
| 6218 | core.PuregoSafeRegister(&xNewSubprocessv, lib, "g_subprocess_newv") | 6368 | core.PuregoSafeRegister(&xNewSubprocessv, lib, "g_subprocess_newv") | ||
| 6219 | 6369 | ||||
| @@ -6242,6 +6392,8 @@ func init() { | |||||
| 6242 | core.PuregoSafeRegister(&xSubprocessWaitCheckFinish, lib, "g_subprocess_wait_check_finish") | 6392 | core.PuregoSafeRegister(&xSubprocessWaitCheckFinish, lib, "g_subprocess_wait_check_finish") | ||
| 6243 | core.PuregoSafeRegister(&xSubprocessWaitFinish, lib, "g_subprocess_wait_finish") | 6393 | core.PuregoSafeRegister(&xSubprocessWaitFinish, lib, "g_subprocess_wait_finish") | ||
| 6244 | 6394 | ||||
| 6395 | + | core.PuregoSafeRegister(&xSubprocessLauncherGLibType, lib, "g_subprocess_launcher_get_type") | |||
| 6396 | + | ||||
| 6245 | core.PuregoSafeRegister(&xNewSubprocessLauncher, lib, "g_subprocess_launcher_new") | 6397 | core.PuregoSafeRegister(&xNewSubprocessLauncher, lib, "g_subprocess_launcher_new") | ||
| 6246 | 6398 | ||||
| 6247 | core.PuregoSafeRegister(&xSubprocessLauncherClose, lib, "g_subprocess_launcher_close") | 6399 | core.PuregoSafeRegister(&xSubprocessLauncherClose, lib, "g_subprocess_launcher_close") | ||
| @@ -6262,6 +6414,8 @@ func init() { | |||||
| 6262 | core.PuregoSafeRegister(&xSubprocessLauncherTakeStdoutFd, lib, "g_subprocess_launcher_take_stdout_fd") | 6414 | core.PuregoSafeRegister(&xSubprocessLauncherTakeStdoutFd, lib, "g_subprocess_launcher_take_stdout_fd") | ||
| 6263 | core.PuregoSafeRegister(&xSubprocessLauncherUnsetenv, lib, "g_subprocess_launcher_unsetenv") | 6415 | core.PuregoSafeRegister(&xSubprocessLauncherUnsetenv, lib, "g_subprocess_launcher_unsetenv") | ||
| 6264 | 6416 | ||||
| 6417 | + | core.PuregoSafeRegister(&xTestDBusGLibType, lib, "g_test_dbus_get_type") | |||
| 6418 | + | ||||
| 6265 | core.PuregoSafeRegister(&xNewTestDBus, lib, "g_test_dbus_new") | 6419 | core.PuregoSafeRegister(&xNewTestDBus, lib, "g_test_dbus_new") | ||
| 6266 | 6420 | ||||
| 6267 | core.PuregoSafeRegister(&xTestDBusAddServiceDir, lib, "g_test_dbus_add_service_dir") | 6421 | core.PuregoSafeRegister(&xTestDBusAddServiceDir, lib, "g_test_dbus_add_service_dir") | ||
M v4/gio/gioenums.go +482 -0
| @@ -1,9 +1,17 @@ | |||||
| 1 | // Package gio was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT | 1 | // Package gio was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT | ||
| 2 | package gio | 2 | package gio | ||
| 3 | 3 | ||||
| 4 | + | import "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 5 | + | ||||
| 4 | // Flags used when creating a #GAppInfo. | 6 | // Flags used when creating a #GAppInfo. | ||
| 5 | type AppInfoCreateFlags int | 7 | type AppInfoCreateFlags int | ||
| 6 | 8 | ||||
| 9 | + | var xAppInfoCreateFlagsGLibType func() types.GType | |||
| 10 | + | ||||
| 11 | + | func AppInfoCreateFlagsGLibType() types.GType { | |||
| 12 | + | return xAppInfoCreateFlagsGLibType() | |||
| 13 | + | } | |||
| 14 | + | ||||
| 7 | const ( | 15 | const ( | ||
| 8 | 16 | ||||
| 9 | // No flags. | 17 | // No flags. | ||
| @@ -19,6 +27,12 @@ const ( | |||||
| 19 | // Flags used to define the behaviour of a #GApplication. | 27 | // Flags used to define the behaviour of a #GApplication. | ||
| 20 | type ApplicationFlags int | 28 | type ApplicationFlags int | ||
| 21 | 29 | ||||
| 30 | + | var xApplicationFlagsGLibType func() types.GType | |||
| 31 | + | ||||
| 32 | + | func ApplicationFlagsGLibType() types.GType { | |||
| 33 | + | return xApplicationFlagsGLibType() | |||
| 34 | + | } | |||
| 35 | + | ||||
| 22 | const ( | 36 | const ( | ||
| 23 | 37 | ||||
| 24 | // Default | 38 | // Default | ||
| @@ -75,6 +89,12 @@ const ( | |||||
| 75 | // situation. | 89 | // situation. | ||
| 76 | type AskPasswordFlags int | 90 | type AskPasswordFlags int | ||
| 77 | 91 | ||||
| 92 | + | var xAskPasswordFlagsGLibType func() types.GType | |||
| 93 | + | ||||
| 94 | + | func AskPasswordFlagsGLibType() types.GType { | |||
| 95 | + | return xAskPasswordFlagsGLibType() | |||
| 96 | + | } | |||
| 97 | + | ||||
| 78 | const ( | 98 | const ( | ||
| 79 | 99 | ||||
| 80 | // operation requires a password. | 100 | // operation requires a password. | ||
| @@ -94,6 +114,12 @@ const ( | |||||
| 94 | // Flags used in g_bus_own_name(). | 114 | // Flags used in g_bus_own_name(). | ||
| 95 | type BusNameOwnerFlags int | 115 | type BusNameOwnerFlags int | ||
| 96 | 116 | ||||
| 117 | + | var xBusNameOwnerFlagsGLibType func() types.GType | |||
| 118 | + | ||||
| 119 | + | func BusNameOwnerFlagsGLibType() types.GType { | |||
| 120 | + | return xBusNameOwnerFlagsGLibType() | |||
| 121 | + | } | |||
| 122 | + | ||||
| 97 | const ( | 123 | const ( | ||
| 98 | 124 | ||||
| 99 | // No flags set. | 125 | // No flags set. | ||
| @@ -111,6 +137,12 @@ const ( | |||||
| 111 | // Flags used in g_bus_watch_name(). | 137 | // Flags used in g_bus_watch_name(). | ||
| 112 | type BusNameWatcherFlags int | 138 | type BusNameWatcherFlags int | ||
| 113 | 139 | ||||
| 140 | + | var xBusNameWatcherFlagsGLibType func() types.GType | |||
| 141 | + | ||||
| 142 | + | func BusNameWatcherFlagsGLibType() types.GType { | |||
| 143 | + | return xBusNameWatcherFlagsGLibType() | |||
| 144 | + | } | |||
| 145 | + | ||||
| 114 | const ( | 146 | const ( | ||
| 115 | 147 | ||||
| 116 | // No flags set. | 148 | // No flags set. | ||
| @@ -124,6 +156,12 @@ const ( | |||||
| 124 | // Flags used when calling a g_converter_convert(). | 156 | // Flags used when calling a g_converter_convert(). | ||
| 125 | type ConverterFlags int | 157 | type ConverterFlags int | ||
| 126 | 158 | ||||
| 159 | + | var xConverterFlagsGLibType func() types.GType | |||
| 160 | + | ||||
| 161 | + | func ConverterFlagsGLibType() types.GType { | |||
| 162 | + | return xConverterFlagsGLibType() | |||
| 163 | + | } | |||
| 164 | + | ||||
| 127 | const ( | 165 | const ( | ||
| 128 | 166 | ||||
| 129 | // No flags. | 167 | // No flags. | ||
| @@ -137,6 +175,12 @@ const ( | |||||
| 137 | // Flags used in g_dbus_connection_call() and similar APIs. | 175 | // Flags used in g_dbus_connection_call() and similar APIs. | ||
| 138 | type DBusCallFlags int | 176 | type DBusCallFlags int | ||
| 139 | 177 | ||||
| 178 | + | var xDBusCallFlagsGLibType func() types.GType | |||
| 179 | + | ||||
| 180 | + | func DBusCallFlagsGLibType() types.GType { | |||
| 181 | + | return xDBusCallFlagsGLibType() | |||
| 182 | + | } | |||
| 183 | + | ||||
| 140 | const ( | 184 | const ( | ||
| 141 | 185 | ||||
| 142 | // No flags set. | 186 | // No flags set. | ||
| @@ -153,6 +197,12 @@ const ( | |||||
| 153 | // Capabilities negotiated with the remote peer. | 197 | // Capabilities negotiated with the remote peer. | ||
| 154 | type DBusCapabilityFlags int | 198 | type DBusCapabilityFlags int | ||
| 155 | 199 | ||||
| 200 | + | var xDBusCapabilityFlagsGLibType func() types.GType | |||
| 201 | + | ||||
| 202 | + | func DBusCapabilityFlagsGLibType() types.GType { | |||
| 203 | + | return xDBusCapabilityFlagsGLibType() | |||
| 204 | + | } | |||
| 205 | + | ||||
| 156 | const ( | 206 | const ( | ||
| 157 | 207 | ||||
| 158 | // No flags set. | 208 | // No flags set. | ||
| @@ -165,6 +215,12 @@ const ( | |||||
| 165 | // Flags used when creating a new #GDBusConnection. | 215 | // Flags used when creating a new #GDBusConnection. | ||
| 166 | type DBusConnectionFlags int | 216 | type DBusConnectionFlags int | ||
| 167 | 217 | ||||
| 218 | + | var xDBusConnectionFlagsGLibType func() types.GType | |||
| 219 | + | ||||
| 220 | + | func DBusConnectionFlagsGLibType() types.GType { | |||
| 221 | + | return xDBusConnectionFlagsGLibType() | |||
| 222 | + | } | |||
| 223 | + | ||||
| 168 | const ( | 224 | const ( | ||
| 169 | 225 | ||||
| 170 | // No flags set. | 226 | // No flags set. | ||
| @@ -191,6 +247,12 @@ const ( | |||||
| 191 | // Flags describing the behavior of a #GDBusInterfaceSkeleton instance. | 247 | // Flags describing the behavior of a #GDBusInterfaceSkeleton instance. | ||
| 192 | type DBusInterfaceSkeletonFlags int | 248 | type DBusInterfaceSkeletonFlags int | ||
| 193 | 249 | ||||
| 250 | + | var xDBusInterfaceSkeletonFlagsGLibType func() types.GType | |||
| 251 | + | ||||
| 252 | + | func DBusInterfaceSkeletonFlagsGLibType() types.GType { | |||
| 253 | + | return xDBusInterfaceSkeletonFlagsGLibType() | |||
| 254 | + | } | |||
| 255 | + | ||||
| 194 | const ( | 256 | const ( | ||
| 195 | 257 | ||||
| 196 | // No flags set. | 258 | // No flags set. | ||
| @@ -205,6 +267,12 @@ const ( | |||||
| 205 | // Message flags used in #GDBusMessage. | 267 | // Message flags used in #GDBusMessage. | ||
| 206 | type DBusMessageFlags int | 268 | type DBusMessageFlags int | ||
| 207 | 269 | ||||
| 270 | + | var xDBusMessageFlagsGLibType func() types.GType | |||
| 271 | + | ||||
| 272 | + | func DBusMessageFlagsGLibType() types.GType { | |||
| 273 | + | return xDBusMessageFlagsGLibType() | |||
| 274 | + | } | |||
| 275 | + | ||||
| 208 | const ( | 276 | const ( | ||
| 209 | 277 | ||||
| 210 | // No flags set. | 278 | // No flags set. | ||
| @@ -223,6 +291,12 @@ const ( | |||||
| 223 | // Flags used when constructing a #GDBusObjectManagerClient. | 291 | // Flags used when constructing a #GDBusObjectManagerClient. | ||
| 224 | type DBusObjectManagerClientFlags int | 292 | type DBusObjectManagerClientFlags int | ||
| 225 | 293 | ||||
| 294 | + | var xDBusObjectManagerClientFlagsGLibType func() types.GType | |||
| 295 | + | ||||
| 296 | + | func DBusObjectManagerClientFlagsGLibType() types.GType { | |||
| 297 | + | return xDBusObjectManagerClientFlagsGLibType() | |||
| 298 | + | } | |||
| 299 | + | ||||
| 226 | const ( | 300 | const ( | ||
| 227 | 301 | ||||
| 228 | // No flags set. | 302 | // No flags set. | ||
| @@ -237,6 +311,12 @@ const ( | |||||
| 237 | // Flags describing the access control of a D-Bus property. | 311 | // Flags describing the access control of a D-Bus property. | ||
| 238 | type DBusPropertyInfoFlags int | 312 | type DBusPropertyInfoFlags int | ||
| 239 | 313 | ||||
| 314 | + | var xDBusPropertyInfoFlagsGLibType func() types.GType | |||
| 315 | + | ||||
| 316 | + | func DBusPropertyInfoFlagsGLibType() types.GType { | |||
| 317 | + | return xDBusPropertyInfoFlagsGLibType() | |||
| 318 | + | } | |||
| 319 | + | ||||
| 240 | const ( | 320 | const ( | ||
| 241 | 321 | ||||
| 242 | // No flags set. | 322 | // No flags set. | ||
| @@ -250,6 +330,12 @@ const ( | |||||
| 250 | // Flags used when constructing an instance of a #GDBusProxy derived class. | 330 | // Flags used when constructing an instance of a #GDBusProxy derived class. | ||
| 251 | type DBusProxyFlags int | 331 | type DBusProxyFlags int | ||
| 252 | 332 | ||||
| 333 | + | var xDBusProxyFlagsGLibType func() types.GType | |||
| 334 | + | ||||
| 335 | + | func DBusProxyFlagsGLibType() types.GType { | |||
| 336 | + | return xDBusProxyFlagsGLibType() | |||
| 337 | + | } | |||
| 338 | + | ||||
| 253 | const ( | 339 | const ( | ||
| 254 | 340 | ||||
| 255 | // No flags set. | 341 | // No flags set. | ||
| @@ -278,6 +364,12 @@ const ( | |||||
| 278 | // Flags used when sending #GDBusMessages on a #GDBusConnection. | 364 | // Flags used when sending #GDBusMessages on a #GDBusConnection. | ||
| 279 | type DBusSendMessageFlags int | 365 | type DBusSendMessageFlags int | ||
| 280 | 366 | ||||
| 367 | + | var xDBusSendMessageFlagsGLibType func() types.GType | |||
| 368 | + | ||||
| 369 | + | func DBusSendMessageFlagsGLibType() types.GType { | |||
| 370 | + | return xDBusSendMessageFlagsGLibType() | |||
| 371 | + | } | |||
| 372 | + | ||||
| 281 | const ( | 373 | const ( | ||
| 282 | 374 | ||||
| 283 | // No flags set. | 375 | // No flags set. | ||
| @@ -291,6 +383,12 @@ const ( | |||||
| 291 | // Flags used when creating a #GDBusServer. | 383 | // Flags used when creating a #GDBusServer. | ||
| 292 | type DBusServerFlags int | 384 | type DBusServerFlags int | ||
| 293 | 385 | ||||
| 386 | + | var xDBusServerFlagsGLibType func() types.GType | |||
| 387 | + | ||||
| 388 | + | func DBusServerFlagsGLibType() types.GType { | |||
| 389 | + | return xDBusServerFlagsGLibType() | |||
| 390 | + | } | |||
| 391 | + | ||||
| 294 | const ( | 392 | const ( | ||
| 295 | 393 | ||||
| 296 | // No flags set. | 394 | // No flags set. | ||
| @@ -310,6 +408,12 @@ const ( | |||||
| 310 | // Flags used when subscribing to signals via g_dbus_connection_signal_subscribe(). | 408 | // Flags used when subscribing to signals via g_dbus_connection_signal_subscribe(). | ||
| 311 | type DBusSignalFlags int | 409 | type DBusSignalFlags int | ||
| 312 | 410 | ||||
| 411 | + | var xDBusSignalFlagsGLibType func() types.GType | |||
| 412 | + | ||||
| 413 | + | func DBusSignalFlagsGLibType() types.GType { | |||
| 414 | + | return xDBusSignalFlagsGLibType() | |||
| 415 | + | } | |||
| 416 | + | ||||
| 313 | const ( | 417 | const ( | ||
| 314 | 418 | ||||
| 315 | // No flags set. | 419 | // No flags set. | ||
| @@ -330,6 +434,12 @@ const ( | |||||
| 330 | // Flags passed to g_dbus_connection_register_subtree(). | 434 | // Flags passed to g_dbus_connection_register_subtree(). | ||
| 331 | type DBusSubtreeFlags int | 435 | type DBusSubtreeFlags int | ||
| 332 | 436 | ||||
| 437 | + | var xDBusSubtreeFlagsGLibType func() types.GType | |||
| 438 | + | ||||
| 439 | + | func DBusSubtreeFlagsGLibType() types.GType { | |||
| 440 | + | return xDBusSubtreeFlagsGLibType() | |||
| 441 | + | } | |||
| 442 | + | ||||
| 333 | const ( | 443 | const ( | ||
| 334 | 444 | ||||
| 335 | // No flags set. | 445 | // No flags set. | ||
| @@ -343,6 +453,12 @@ const ( | |||||
| 343 | // Flags used when starting a drive. | 453 | // Flags used when starting a drive. | ||
| 344 | type DriveStartFlags int | 454 | type DriveStartFlags int | ||
| 345 | 455 | ||||
| 456 | + | var xDriveStartFlagsGLibType func() types.GType | |||
| 457 | + | ||||
| 458 | + | func DriveStartFlagsGLibType() types.GType { | |||
| 459 | + | return xDriveStartFlagsGLibType() | |||
| 460 | + | } | |||
| 461 | + | ||||
| 346 | const ( | 462 | const ( | ||
| 347 | 463 | ||||
| 348 | // No flags set. | 464 | // No flags set. | ||
| @@ -352,6 +468,12 @@ const ( | |||||
| 352 | // Flags specifying the behaviour of an attribute. | 468 | // Flags specifying the behaviour of an attribute. | ||
| 353 | type FileAttributeInfoFlags int | 469 | type FileAttributeInfoFlags int | ||
| 354 | 470 | ||||
| 471 | + | var xFileAttributeInfoFlagsGLibType func() types.GType | |||
| 472 | + | ||||
| 473 | + | func FileAttributeInfoFlagsGLibType() types.GType { | |||
| 474 | + | return xFileAttributeInfoFlagsGLibType() | |||
| 475 | + | } | |||
| 476 | + | ||||
| 355 | const ( | 477 | const ( | ||
| 356 | 478 | ||||
| 357 | // no flags set. | 479 | // no flags set. | ||
| @@ -365,6 +487,12 @@ const ( | |||||
| 365 | // Flags used when copying or moving files. | 487 | // Flags used when copying or moving files. | ||
| 366 | type FileCopyFlags int | 488 | type FileCopyFlags int | ||
| 367 | 489 | ||||
| 490 | + | var xFileCopyFlagsGLibType func() types.GType | |||
| 491 | + | ||||
| 492 | + | func FileCopyFlagsGLibType() types.GType { | |||
| 493 | + | return xFileCopyFlagsGLibType() | |||
| 494 | + | } | |||
| 495 | + | ||||
| 368 | const ( | 496 | const ( | ||
| 369 | 497 | ||||
| 370 | // No flags set. | 498 | // No flags set. | ||
| @@ -386,6 +514,12 @@ const ( | |||||
| 386 | // Flags used when an operation may create a file. | 514 | // Flags used when an operation may create a file. | ||
| 387 | type FileCreateFlags int | 515 | type FileCreateFlags int | ||
| 388 | 516 | ||||
| 517 | + | var xFileCreateFlagsGLibType func() types.GType | |||
| 518 | + | ||||
| 519 | + | func FileCreateFlagsGLibType() types.GType { | |||
| 520 | + | return xFileCreateFlagsGLibType() | |||
| 521 | + | } | |||
| 522 | + | ||||
| 389 | const ( | 523 | const ( | ||
| 390 | 524 | ||||
| 391 | // No flags set. | 525 | // No flags set. | ||
| @@ -409,6 +543,12 @@ const ( | |||||
| 409 | // Flags that can be used with g_file_measure_disk_usage(). | 543 | // Flags that can be used with g_file_measure_disk_usage(). | ||
| 410 | type FileMeasureFlags int | 544 | type FileMeasureFlags int | ||
| 411 | 545 | ||||
| 546 | + | var xFileMeasureFlagsGLibType func() types.GType | |||
| 547 | + | ||||
| 548 | + | func FileMeasureFlagsGLibType() types.GType { | |||
| 549 | + | return xFileMeasureFlagsGLibType() | |||
| 550 | + | } | |||
| 551 | + | ||||
| 412 | const ( | 552 | const ( | ||
| 413 | 553 | ||||
| 414 | // No flags set. | 554 | // No flags set. | ||
| @@ -430,6 +570,12 @@ const ( | |||||
| 430 | // Flags used to set what a #GFileMonitor will watch for. | 570 | // Flags used to set what a #GFileMonitor will watch for. | ||
| 431 | type FileMonitorFlags int | 571 | type FileMonitorFlags int | ||
| 432 | 572 | ||||
| 573 | + | var xFileMonitorFlagsGLibType func() types.GType | |||
| 574 | + | ||||
| 575 | + | func FileMonitorFlagsGLibType() types.GType { | |||
| 576 | + | return xFileMonitorFlagsGLibType() | |||
| 577 | + | } | |||
| 578 | + | ||||
| 433 | const ( | 579 | const ( | ||
| 434 | 580 | ||||
| 435 | // No flags set. | 581 | // No flags set. | ||
| @@ -456,6 +602,12 @@ const ( | |||||
| 456 | // Flags used when querying a #GFileInfo. | 602 | // Flags used when querying a #GFileInfo. | ||
| 457 | type FileQueryInfoFlags int | 603 | type FileQueryInfoFlags int | ||
| 458 | 604 | ||||
| 605 | + | var xFileQueryInfoFlagsGLibType func() types.GType | |||
| 606 | + | ||||
| 607 | + | func FileQueryInfoFlagsGLibType() types.GType { | |||
| 608 | + | return xFileQueryInfoFlagsGLibType() | |||
| 609 | + | } | |||
| 610 | + | ||||
| 459 | const ( | 611 | const ( | ||
| 460 | 612 | ||||
| 461 | // No flags set. | 613 | // No flags set. | ||
| @@ -467,6 +619,12 @@ const ( | |||||
| 467 | // GIOStreamSpliceFlags determine how streams should be spliced. | 619 | // GIOStreamSpliceFlags determine how streams should be spliced. | ||
| 468 | type IOStreamSpliceFlags int | 620 | type IOStreamSpliceFlags int | ||
| 469 | 621 | ||||
| 622 | + | var xIOStreamSpliceFlagsGLibType func() types.GType | |||
| 623 | + | ||||
| 624 | + | func IOStreamSpliceFlagsGLibType() types.GType { | |||
| 625 | + | return xIOStreamSpliceFlagsGLibType() | |||
| 626 | + | } | |||
| 627 | + | ||||
| 470 | const ( | 628 | const ( | ||
| 471 | 629 | ||||
| 472 | // Do not close either stream. | 630 | // Do not close either stream. | ||
| @@ -485,6 +643,12 @@ const ( | |||||
| 485 | // Flags used when mounting a mount. | 643 | // Flags used when mounting a mount. | ||
| 486 | type MountMountFlags int | 644 | type MountMountFlags int | ||
| 487 | 645 | ||||
| 646 | + | var xMountMountFlagsGLibType func() types.GType | |||
| 647 | + | ||||
| 648 | + | func MountMountFlagsGLibType() types.GType { | |||
| 649 | + | return xMountMountFlagsGLibType() | |||
| 650 | + | } | |||
| 651 | + | ||||
| 488 | const ( | 652 | const ( | ||
| 489 | 653 | ||||
| 490 | // No flags set. | 654 | // No flags set. | ||
| @@ -494,6 +658,12 @@ const ( | |||||
| 494 | // Flags used when an unmounting a mount. | 658 | // Flags used when an unmounting a mount. | ||
| 495 | type MountUnmountFlags int | 659 | type MountUnmountFlags int | ||
| 496 | 660 | ||||
| 661 | + | var xMountUnmountFlagsGLibType func() types.GType | |||
| 662 | + | ||||
| 663 | + | func MountUnmountFlagsGLibType() types.GType { | |||
| 664 | + | return xMountUnmountFlagsGLibType() | |||
| 665 | + | } | |||
| 666 | + | ||||
| 497 | const ( | 667 | const ( | ||
| 498 | 668 | ||||
| 499 | // No flags set. | 669 | // No flags set. | ||
| @@ -506,6 +676,12 @@ const ( | |||||
| 506 | // GOutputStreamSpliceFlags determine how streams should be spliced. | 676 | // GOutputStreamSpliceFlags determine how streams should be spliced. | ||
| 507 | type OutputStreamSpliceFlags int | 677 | type OutputStreamSpliceFlags int | ||
| 508 | 678 | ||||
| 679 | + | var xOutputStreamSpliceFlagsGLibType func() types.GType | |||
| 680 | + | ||||
| 681 | + | func OutputStreamSpliceFlagsGLibType() types.GType { | |||
| 682 | + | return xOutputStreamSpliceFlagsGLibType() | |||
| 683 | + | } | |||
| 684 | + | ||||
| 509 | const ( | 685 | const ( | ||
| 510 | 686 | ||||
| 511 | // Do not close either stream. | 687 | // Do not close either stream. | ||
| @@ -522,6 +698,12 @@ const ( | |||||
| 522 | // bundle. | 698 | // bundle. | ||
| 523 | type ResourceFlags int | 699 | type ResourceFlags int | ||
| 524 | 700 | ||||
| 701 | + | var xResourceFlagsGLibType func() types.GType | |||
| 702 | + | ||||
| 703 | + | func ResourceFlagsGLibType() types.GType { | |||
| 704 | + | return xResourceFlagsGLibType() | |||
| 705 | + | } | |||
| 706 | + | ||||
| 525 | const ( | 707 | const ( | ||
| 526 | 708 | ||||
| 527 | // No flags set. | 709 | // No flags set. | ||
| @@ -533,6 +715,12 @@ const ( | |||||
| 533 | // GResourceLookupFlags determine how resource path lookups are handled. | 715 | // GResourceLookupFlags determine how resource path lookups are handled. | ||
| 534 | type ResourceLookupFlags int | 716 | type ResourceLookupFlags int | ||
| 535 | 717 | ||||
| 718 | + | var xResourceLookupFlagsGLibType func() types.GType | |||
| 719 | + | ||||
| 720 | + | func ResourceLookupFlagsGLibType() types.GType { | |||
| 721 | + | return xResourceLookupFlagsGLibType() | |||
| 722 | + | } | |||
| 723 | + | ||||
| 536 | const ( | 724 | const ( | ||
| 537 | 725 | ||||
| 538 | // No flags set. | 726 | // No flags set. | ||
| @@ -546,6 +734,12 @@ const ( | |||||
| 546 | // the right system header and pass in the flag. | 734 | // the right system header and pass in the flag. | ||
| 547 | type SocketMsgFlags int | 735 | type SocketMsgFlags int | ||
| 548 | 736 | ||||
| 737 | + | var xSocketMsgFlagsGLibType func() types.GType | |||
| 738 | + | ||||
| 739 | + | func SocketMsgFlagsGLibType() types.GType { | |||
| 740 | + | return xSocketMsgFlagsGLibType() | |||
| 741 | + | } | |||
| 742 | + | ||||
| 549 | const ( | 743 | const ( | ||
| 550 | 744 | ||||
| 551 | // No flags. | 745 | // No flags. | ||
| @@ -571,6 +765,12 @@ const ( | |||||
| 571 | // %G_SUBPROCESS_FLAGS_STDOUT_SILENCE. | 765 | // %G_SUBPROCESS_FLAGS_STDOUT_SILENCE. | ||
| 572 | type SubprocessFlags int | 766 | type SubprocessFlags int | ||
| 573 | 767 | ||||
| 768 | + | var xSubprocessFlagsGLibType func() types.GType | |||
| 769 | + | ||||
| 770 | + | func SubprocessFlagsGLibType() types.GType { | |||
| 771 | + | return xSubprocessFlagsGLibType() | |||
| 772 | + | } | |||
| 773 | + | ||||
| 574 | const ( | 774 | const ( | ||
| 575 | 775 | ||||
| 576 | // No flags. | 776 | // No flags. | ||
| @@ -614,6 +814,12 @@ const ( | |||||
| 614 | // Flags to define future #GTestDBus behaviour. | 814 | // Flags to define future #GTestDBus behaviour. | ||
| 615 | type TestDBusFlags int | 815 | type TestDBusFlags int | ||
| 616 | 816 | ||||
| 817 | + | var xTestDBusFlagsGLibType func() types.GType | |||
| 818 | + | ||||
| 819 | + | func TestDBusFlagsGLibType() types.GType { | |||
| 820 | + | return xTestDBusFlagsGLibType() | |||
| 821 | + | } | |||
| 822 | + | ||||
| 617 | const ( | 823 | const ( | ||
| 618 | 824 | ||||
| 619 | // No flags. | 825 | // No flags. | ||
| @@ -633,6 +839,12 @@ const ( | |||||
| 633 | // other problems exist with the certificate. | 839 | // other problems exist with the certificate. | ||
| 634 | type TlsCertificateFlags int | 840 | type TlsCertificateFlags int | ||
| 635 | 841 | ||||
| 842 | + | var xTlsCertificateFlagsGLibType func() types.GType | |||
| 843 | + | ||||
| 844 | + | func TlsCertificateFlagsGLibType() types.GType { | |||
| 845 | + | return xTlsCertificateFlagsGLibType() | |||
| 846 | + | } | |||
| 847 | + | ||||
| 636 | const ( | 848 | const ( | ||
| 637 | 849 | ||||
| 638 | // The signing certificate authority is | 850 | // The signing certificate authority is | ||
| @@ -663,6 +875,12 @@ const ( | |||||
| 663 | // Flags for g_tls_database_verify_chain(). | 875 | // Flags for g_tls_database_verify_chain(). | ||
| 664 | type TlsDatabaseVerifyFlags int | 876 | type TlsDatabaseVerifyFlags int | ||
| 665 | 877 | ||||
| 878 | + | var xTlsDatabaseVerifyFlagsGLibType func() types.GType | |||
| 879 | + | ||||
| 880 | + | func TlsDatabaseVerifyFlagsGLibType() types.GType { | |||
| 881 | + | return xTlsDatabaseVerifyFlagsGLibType() | |||
| 882 | + | } | |||
| 883 | + | ||||
| 666 | const ( | 884 | const ( | ||
| 667 | 885 | ||||
| 668 | // No verification flags | 886 | // No verification flags | ||
| @@ -672,6 +890,12 @@ const ( | |||||
| 672 | // Various flags for the password. | 890 | // Various flags for the password. | ||
| 673 | type TlsPasswordFlags int | 891 | type TlsPasswordFlags int | ||
| 674 | 892 | ||||
| 893 | + | var xTlsPasswordFlagsGLibType func() types.GType | |||
| 894 | + | ||||
| 895 | + | func TlsPasswordFlagsGLibType() types.GType { | |||
| 896 | + | return xTlsPasswordFlagsGLibType() | |||
| 897 | + | } | |||
| 898 | + | ||||
| 675 | const ( | 899 | const ( | ||
| 676 | 900 | ||||
| 677 | // No flags | 901 | // No flags | ||
| @@ -698,6 +922,12 @@ const ( | |||||
| 698 | // An enumeration for well-known message buses. | 922 | // An enumeration for well-known message buses. | ||
| 699 | type BusType int | 923 | type BusType int | ||
| 700 | 924 | ||||
| 925 | + | var xBusTypeGLibType func() types.GType | |||
| 926 | + | ||||
| 927 | + | func BusTypeGLibType() types.GType { | |||
| 928 | + | return xBusTypeGLibType() | |||
| 929 | + | } | |||
| 930 | + | ||||
| 701 | const ( | 931 | const ( | ||
| 702 | 932 | ||||
| 703 | // An alias for the message bus that activated the process, if any. | 933 | // An alias for the message bus that activated the process, if any. | ||
| @@ -713,6 +943,12 @@ const ( | |||||
| 713 | // Results returned from g_converter_convert(). | 943 | // Results returned from g_converter_convert(). | ||
| 714 | type ConverterResult int | 944 | type ConverterResult int | ||
| 715 | 945 | ||||
| 946 | + | var xConverterResultGLibType func() types.GType | |||
| 947 | + | ||||
| 948 | + | func ConverterResultGLibType() types.GType { | |||
| 949 | + | return xConverterResultGLibType() | |||
| 950 | + | } | |||
| 951 | + | ||||
| 716 | const ( | 952 | const ( | ||
| 717 | 953 | ||||
| 718 | // There was an error during conversion. | 954 | // There was an error during conversion. | ||
| @@ -728,6 +964,12 @@ const ( | |||||
| 728 | // Enumeration describing different kinds of native credential types. | 964 | // Enumeration describing different kinds of native credential types. | ||
| 729 | type CredentialsType int | 965 | type CredentialsType int | ||
| 730 | 966 | ||||
| 967 | + | var xCredentialsTypeGLibType func() types.GType | |||
| 968 | + | ||||
| 969 | + | func CredentialsTypeGLibType() types.GType { | |||
| 970 | + | return xCredentialsTypeGLibType() | |||
| 971 | + | } | |||
| 972 | + | ||||
| 731 | const ( | 973 | const ( | ||
| 732 | 974 | ||||
| 733 | // Indicates an invalid native credential type. | 975 | // Indicates an invalid native credential type. | ||
| @@ -751,6 +993,12 @@ const ( | |||||
| 751 | // Error codes for the %G_DBUS_ERROR error domain. | 993 | // Error codes for the %G_DBUS_ERROR error domain. | ||
| 752 | type DBusError int | 994 | type DBusError int | ||
| 753 | 995 | ||||
| 996 | + | var xDBusErrorGLibType func() types.GType | |||
| 997 | + | ||||
| 998 | + | func DBusErrorGLibType() types.GType { | |||
| 999 | + | return xDBusErrorGLibType() | |||
| 1000 | + | } | |||
| 1001 | + | ||||
| 754 | const ( | 1002 | const ( | ||
| 755 | 1003 | ||||
| 756 | // A generic error; "something went wrong" - see the error message for | 1004 | // A generic error; "something went wrong" - see the error message for | ||
| @@ -858,6 +1106,12 @@ const ( | |||||
| 858 | // Enumeration used to describe the byte order of a D-Bus message. | 1106 | // Enumeration used to describe the byte order of a D-Bus message. | ||
| 859 | type DBusMessageByteOrder int | 1107 | type DBusMessageByteOrder int | ||
| 860 | 1108 | ||||
| 1109 | + | var xDBusMessageByteOrderGLibType func() types.GType | |||
| 1110 | + | ||||
| 1111 | + | func DBusMessageByteOrderGLibType() types.GType { | |||
| 1112 | + | return xDBusMessageByteOrderGLibType() | |||
| 1113 | + | } | |||
| 1114 | + | ||||
| 861 | const ( | 1115 | const ( | ||
| 862 | 1116 | ||||
| 863 | // The byte order is big endian. | 1117 | // The byte order is big endian. | ||
| @@ -869,6 +1123,12 @@ const ( | |||||
| 869 | // Header fields used in #GDBusMessage. | 1123 | // Header fields used in #GDBusMessage. | ||
| 870 | type DBusMessageHeaderField int | 1124 | type DBusMessageHeaderField int | ||
| 871 | 1125 | ||||
| 1126 | + | var xDBusMessageHeaderFieldGLibType func() types.GType | |||
| 1127 | + | ||||
| 1128 | + | func DBusMessageHeaderFieldGLibType() types.GType { | |||
| 1129 | + | return xDBusMessageHeaderFieldGLibType() | |||
| 1130 | + | } | |||
| 1131 | + | ||||
| 872 | const ( | 1132 | const ( | ||
| 873 | 1133 | ||||
| 874 | // Not a valid header field. | 1134 | // Not a valid header field. | ||
| @@ -896,6 +1156,12 @@ const ( | |||||
| 896 | // Message types used in #GDBusMessage. | 1156 | // Message types used in #GDBusMessage. | ||
| 897 | type DBusMessageType int | 1157 | type DBusMessageType int | ||
| 898 | 1158 | ||||
| 1159 | + | var xDBusMessageTypeGLibType func() types.GType | |||
| 1160 | + | ||||
| 1161 | + | func DBusMessageTypeGLibType() types.GType { | |||
| 1162 | + | return xDBusMessageTypeGLibType() | |||
| 1163 | + | } | |||
| 1164 | + | ||||
| 899 | const ( | 1165 | const ( | ||
| 900 | 1166 | ||||
| 901 | // Message is of invalid type. | 1167 | // Message is of invalid type. | ||
| @@ -914,6 +1180,12 @@ const ( | |||||
| 914 | // across various machine architectures. | 1180 | // across various machine architectures. | ||
| 915 | type DataStreamByteOrder int | 1181 | type DataStreamByteOrder int | ||
| 916 | 1182 | ||||
| 1183 | + | var xDataStreamByteOrderGLibType func() types.GType | |||
| 1184 | + | ||||
| 1185 | + | func DataStreamByteOrderGLibType() types.GType { | |||
| 1186 | + | return xDataStreamByteOrderGLibType() | |||
| 1187 | + | } | |||
| 1188 | + | ||||
| 917 | const ( | 1189 | const ( | ||
| 918 | 1190 | ||||
| 919 | // Selects Big Endian byte order. | 1191 | // Selects Big Endian byte order. | ||
| @@ -927,6 +1199,12 @@ const ( | |||||
| 927 | // #GDataStreamNewlineType is used when checking for or setting the line endings for a given file. | 1199 | // #GDataStreamNewlineType is used when checking for or setting the line endings for a given file. | ||
| 928 | type DataStreamNewlineType int | 1200 | type DataStreamNewlineType int | ||
| 929 | 1201 | ||||
| 1202 | + | var xDataStreamNewlineTypeGLibType func() types.GType | |||
| 1203 | + | ||||
| 1204 | + | func DataStreamNewlineTypeGLibType() types.GType { | |||
| 1205 | + | return xDataStreamNewlineTypeGLibType() | |||
| 1206 | + | } | |||
| 1207 | + | ||||
| 930 | const ( | 1208 | const ( | ||
| 931 | 1209 | ||||
| 932 | // Selects "LF" line endings, common on most modern UNIX platforms. | 1210 | // Selects "LF" line endings, common on most modern UNIX platforms. | ||
| @@ -942,6 +1220,12 @@ const ( | |||||
| 942 | // Enumeration describing how a drive can be started/stopped. | 1220 | // Enumeration describing how a drive can be started/stopped. | ||
| 943 | type DriveStartStopType int | 1221 | type DriveStartStopType int | ||
| 944 | 1222 | ||||
| 1223 | + | var xDriveStartStopTypeGLibType func() types.GType | |||
| 1224 | + | ||||
| 1225 | + | func DriveStartStopTypeGLibType() types.GType { | |||
| 1226 | + | return xDriveStartStopTypeGLibType() | |||
| 1227 | + | } | |||
| 1228 | + | ||||
| 945 | const ( | 1229 | const ( | ||
| 946 | 1230 | ||||
| 947 | // Unknown or drive doesn't support | 1231 | // Unknown or drive doesn't support | ||
| @@ -968,6 +1252,12 @@ const ( | |||||
| 968 | // to #GEmblem. | 1252 | // to #GEmblem. | ||
| 969 | type EmblemOrigin int | 1253 | type EmblemOrigin int | ||
| 970 | 1254 | ||||
| 1255 | + | var xEmblemOriginGLibType func() types.GType | |||
| 1256 | + | ||||
| 1257 | + | func EmblemOriginGLibType() types.GType { | |||
| 1258 | + | return xEmblemOriginGLibType() | |||
| 1259 | + | } | |||
| 1260 | + | ||||
| 971 | const ( | 1261 | const ( | ||
| 972 | 1262 | ||||
| 973 | // Emblem of unknown origin | 1263 | // Emblem of unknown origin | ||
| @@ -983,6 +1273,12 @@ const ( | |||||
| 983 | // Used by g_file_set_attributes_from_info() when setting file attributes. | 1273 | // Used by g_file_set_attributes_from_info() when setting file attributes. | ||
| 984 | type FileAttributeStatus int | 1274 | type FileAttributeStatus int | ||
| 985 | 1275 | ||||
| 1276 | + | var xFileAttributeStatusGLibType func() types.GType | |||
| 1277 | + | ||||
| 1278 | + | func FileAttributeStatusGLibType() types.GType { | |||
| 1279 | + | return xFileAttributeStatusGLibType() | |||
| 1280 | + | } | |||
| 1281 | + | ||||
| 986 | const ( | 1282 | const ( | ||
| 987 | 1283 | ||||
| 988 | // Attribute value is unset (empty). | 1284 | // Attribute value is unset (empty). | ||
| @@ -996,6 +1292,12 @@ const ( | |||||
| 996 | // The data types for file attributes. | 1292 | // The data types for file attributes. | ||
| 997 | type FileAttributeType int | 1293 | type FileAttributeType int | ||
| 998 | 1294 | ||||
| 1295 | + | var xFileAttributeTypeGLibType func() types.GType | |||
| 1296 | + | ||||
| 1297 | + | func FileAttributeTypeGLibType() types.GType { | |||
| 1298 | + | return xFileAttributeTypeGLibType() | |||
| 1299 | + | } | |||
| 1300 | + | ||||
| 999 | const ( | 1301 | const ( | ||
| 1000 | 1302 | ||||
| 1001 | // indicates an invalid or uninitialized type. | 1303 | // indicates an invalid or uninitialized type. | ||
| @@ -1023,6 +1325,12 @@ const ( | |||||
| 1023 | // Specifies what type of event a monitor event is. | 1325 | // Specifies what type of event a monitor event is. | ||
| 1024 | type FileMonitorEvent int | 1326 | type FileMonitorEvent int | ||
| 1025 | 1327 | ||||
| 1328 | + | var xFileMonitorEventGLibType func() types.GType | |||
| 1329 | + | ||||
| 1330 | + | func FileMonitorEventGLibType() types.GType { | |||
| 1331 | + | return xFileMonitorEventGLibType() | |||
| 1332 | + | } | |||
| 1333 | + | ||||
| 1026 | const ( | 1334 | const ( | ||
| 1027 | 1335 | ||||
| 1028 | // a file changed. | 1336 | // a file changed. | ||
| @@ -1068,6 +1376,12 @@ const ( | |||||
| 1068 | // %G_FILE_TYPE_REGULAR or %G_FILE_TYPE_DIRECTORY. | 1376 | // %G_FILE_TYPE_REGULAR or %G_FILE_TYPE_DIRECTORY. | ||
| 1069 | type FileType int | 1377 | type FileType int | ||
| 1070 | 1378 | ||||
| 1379 | + | var xFileTypeGLibType func() types.GType | |||
| 1380 | + | ||||
| 1381 | + | func FileTypeGLibType() types.GType { | |||
| 1382 | + | return xFileTypeGLibType() | |||
| 1383 | + | } | |||
| 1384 | + | ||||
| 1071 | const ( | 1385 | const ( | ||
| 1072 | 1386 | ||||
| 1073 | // File's type is unknown. | 1387 | // File's type is unknown. | ||
| @@ -1093,6 +1407,12 @@ const ( | |||||
| 1093 | // %G_FILE_ATTRIBUTE_FILESYSTEM_USE_PREVIEW. | 1407 | // %G_FILE_ATTRIBUTE_FILESYSTEM_USE_PREVIEW. | ||
| 1094 | type FilesystemPreviewType int | 1408 | type FilesystemPreviewType int | ||
| 1095 | 1409 | ||||
| 1410 | + | var xFilesystemPreviewTypeGLibType func() types.GType | |||
| 1411 | + | ||||
| 1412 | + | func FilesystemPreviewTypeGLibType() types.GType { | |||
| 1413 | + | return xFilesystemPreviewTypeGLibType() | |||
| 1414 | + | } | |||
| 1415 | + | ||||
| 1096 | const ( | 1416 | const ( | ||
| 1097 | 1417 | ||||
| 1098 | // Only preview files if user has explicitly requested it. | 1418 | // Only preview files if user has explicitly requested it. | ||
| @@ -1125,6 +1445,12 @@ const ( | |||||
| 1125 | // %G_IO_ERROR_WOULD_BLOCK to callers without allocating a #GError. | 1445 | // %G_IO_ERROR_WOULD_BLOCK to callers without allocating a #GError. | ||
| 1126 | type IOErrorEnum int | 1446 | type IOErrorEnum int | ||
| 1127 | 1447 | ||||
| 1448 | + | var xIOErrorEnumGLibType func() types.GType | |||
| 1449 | + | ||||
| 1450 | + | func IOErrorEnumGLibType() types.GType { | |||
| 1451 | + | return xIOErrorEnumGLibType() | |||
| 1452 | + | } | |||
| 1453 | + | ||||
| 1128 | const ( | 1454 | const ( | ||
| 1129 | 1455 | ||||
| 1130 | // Generic error condition for when an operation fails | 1456 | // Generic error condition for when an operation fails | ||
| @@ -1241,6 +1567,12 @@ const ( | |||||
| 1241 | // Flags for use with g_io_module_scope_new(). | 1567 | // Flags for use with g_io_module_scope_new(). | ||
| 1242 | type IOModuleScopeFlags int | 1568 | type IOModuleScopeFlags int | ||
| 1243 | 1569 | ||||
| 1570 | + | var xIOModuleScopeFlagsGLibType func() types.GType | |||
| 1571 | + | ||||
| 1572 | + | func IOModuleScopeFlagsGLibType() types.GType { | |||
| 1573 | + | return xIOModuleScopeFlagsGLibType() | |||
| 1574 | + | } | |||
| 1575 | + | ||||
| 1244 | const ( | 1576 | const ( | ||
| 1245 | 1577 | ||||
| 1246 | // No module scan flags | 1578 | // No module scan flags | ||
| @@ -1263,6 +1595,12 @@ const ( | |||||
| 1263 | // ]| | 1595 | // ]| | ||
| 1264 | type MemoryMonitorWarningLevel int | 1596 | type MemoryMonitorWarningLevel int | ||
| 1265 | 1597 | ||||
| 1598 | + | var xMemoryMonitorWarningLevelGLibType func() types.GType | |||
| 1599 | + | ||||
| 1600 | + | func MemoryMonitorWarningLevelGLibType() types.GType { | |||
| 1601 | + | return xMemoryMonitorWarningLevelGLibType() | |||
| 1602 | + | } | |||
| 1603 | + | ||||
| 1266 | const ( | 1604 | const ( | ||
| 1267 | 1605 | ||||
| 1268 | // Memory on the device is low, processes | 1606 | // Memory on the device is low, processes | ||
| @@ -1283,6 +1621,12 @@ const ( | |||||
| 1283 | // information is send by the mounting operation. | 1621 | // information is send by the mounting operation. | ||
| 1284 | type MountOperationResult int | 1622 | type MountOperationResult int | ||
| 1285 | 1623 | ||||
| 1624 | + | var xMountOperationResultGLibType func() types.GType | |||
| 1625 | + | ||||
| 1626 | + | func MountOperationResultGLibType() types.GType { | |||
| 1627 | + | return xMountOperationResultGLibType() | |||
| 1628 | + | } | |||
| 1629 | + | ||||
| 1286 | const ( | 1630 | const ( | ||
| 1287 | 1631 | ||||
| 1288 | // The request was fulfilled and the | 1632 | // The request was fulfilled and the | ||
| @@ -1299,6 +1643,12 @@ const ( | |||||
| 1299 | // The host's network connectivity state, as reported by #GNetworkMonitor. | 1643 | // The host's network connectivity state, as reported by #GNetworkMonitor. | ||
| 1300 | type NetworkConnectivity int | 1644 | type NetworkConnectivity int | ||
| 1301 | 1645 | ||||
| 1646 | + | var xNetworkConnectivityGLibType func() types.GType | |||
| 1647 | + | ||||
| 1648 | + | func NetworkConnectivityGLibType() types.GType { | |||
| 1649 | + | return xNetworkConnectivityGLibType() | |||
| 1650 | + | } | |||
| 1651 | + | ||||
| 1302 | const ( | 1652 | const ( | ||
| 1303 | 1653 | ||||
| 1304 | // The host is not configured with a | 1654 | // The host is not configured with a | ||
| @@ -1320,6 +1670,12 @@ const ( | |||||
| 1320 | // Priority levels for #GNotifications. | 1670 | // Priority levels for #GNotifications. | ||
| 1321 | type NotificationPriority int | 1671 | type NotificationPriority int | ||
| 1322 | 1672 | ||||
| 1673 | + | var xNotificationPriorityGLibType func() types.GType | |||
| 1674 | + | ||||
| 1675 | + | func NotificationPriorityGLibType() types.GType { | |||
| 1676 | + | return xNotificationPriorityGLibType() | |||
| 1677 | + | } | |||
| 1678 | + | ||||
| 1323 | const ( | 1679 | const ( | ||
| 1324 | 1680 | ||||
| 1325 | // the default priority, to be used for the | 1681 | // the default priority, to be used for the | ||
| @@ -1346,6 +1702,12 @@ const ( | |||||
| 1346 | // to, and later retrieves it again from there. | 1702 | // to, and later retrieves it again from there. | ||
| 1347 | type PasswordSave int | 1703 | type PasswordSave int | ||
| 1348 | 1704 | ||||
| 1705 | + | var xPasswordSaveGLibType func() types.GType | |||
| 1706 | + | ||||
| 1707 | + | func PasswordSaveGLibType() types.GType { | |||
| 1708 | + | return xPasswordSaveGLibType() | |||
| 1709 | + | } | |||
| 1710 | + | ||||
| 1349 | const ( | 1711 | const ( | ||
| 1350 | 1712 | ||||
| 1351 | // never save a password. | 1713 | // never save a password. | ||
| @@ -1367,6 +1729,12 @@ const ( | |||||
| 1367 | // operation to give details about the error that happened. | 1729 | // operation to give details about the error that happened. | ||
| 1368 | type PollableReturn int | 1730 | type PollableReturn int | ||
| 1369 | 1731 | ||||
| 1732 | + | var xPollableReturnGLibType func() types.GType | |||
| 1733 | + | ||||
| 1734 | + | func PollableReturnGLibType() types.GType { | |||
| 1735 | + | return xPollableReturnGLibType() | |||
| 1736 | + | } | |||
| 1737 | + | ||||
| 1370 | const ( | 1738 | const ( | ||
| 1371 | 1739 | ||||
| 1372 | // Generic error condition for when an operation fails. | 1740 | // Generic error condition for when an operation fails. | ||
| @@ -1381,6 +1749,12 @@ const ( | |||||
| 1381 | // from a #GResolver routine. | 1749 | // from a #GResolver routine. | ||
| 1382 | type ResolverError int | 1750 | type ResolverError int | ||
| 1383 | 1751 | ||||
| 1752 | + | var xResolverErrorGLibType func() types.GType | |||
| 1753 | + | ||||
| 1754 | + | func ResolverErrorGLibType() types.GType { | |||
| 1755 | + | return xResolverErrorGLibType() | |||
| 1756 | + | } | |||
| 1757 | + | ||||
| 1384 | const ( | 1758 | const ( | ||
| 1385 | 1759 | ||||
| 1386 | // the requested name/address/service was not | 1760 | // the requested name/address/service was not | ||
| @@ -1425,6 +1799,12 @@ const ( | |||||
| 1425 | // `(s)`, representing a string of the hostname of the name server. | 1799 | // `(s)`, representing a string of the hostname of the name server. | ||
| 1426 | type ResolverRecordType int | 1800 | type ResolverRecordType int | ||
| 1427 | 1801 | ||||
| 1802 | + | var xResolverRecordTypeGLibType func() types.GType | |||
| 1803 | + | ||||
| 1804 | + | func ResolverRecordTypeGLibType() types.GType { | |||
| 1805 | + | return xResolverRecordTypeGLibType() | |||
| 1806 | + | } | |||
| 1807 | + | ||||
| 1428 | const ( | 1808 | const ( | ||
| 1429 | 1809 | ||||
| 1430 | // look up DNS SRV records for a domain | 1810 | // look up DNS SRV records for a domain | ||
| @@ -1443,6 +1823,12 @@ const ( | |||||
| 1443 | // from a #GResource routine. | 1823 | // from a #GResource routine. | ||
| 1444 | type ResourceError int | 1824 | type ResourceError int | ||
| 1445 | 1825 | ||||
| 1826 | + | var xResourceErrorGLibType func() types.GType | |||
| 1827 | + | ||||
| 1828 | + | func ResourceErrorGLibType() types.GType { | |||
| 1829 | + | return xResourceErrorGLibType() | |||
| 1830 | + | } | |||
| 1831 | + | ||||
| 1446 | const ( | 1832 | const ( | ||
| 1447 | 1833 | ||||
| 1448 | // no file was found at the requested path | 1834 | // no file was found at the requested path | ||
| @@ -1457,6 +1843,12 @@ const ( | |||||
| 1457 | // Additional values may be added to this type in the future. | 1843 | // Additional values may be added to this type in the future. | ||
| 1458 | type SocketClientEvent int | 1844 | type SocketClientEvent int | ||
| 1459 | 1845 | ||||
| 1846 | + | var xSocketClientEventGLibType func() types.GType | |||
| 1847 | + | ||||
| 1848 | + | func SocketClientEventGLibType() types.GType { | |||
| 1849 | + | return xSocketClientEventGLibType() | |||
| 1850 | + | } | |||
| 1851 | + | ||||
| 1460 | const ( | 1852 | const ( | ||
| 1461 | 1853 | ||||
| 1462 | // The client is doing a DNS lookup. | 1854 | // The client is doing a DNS lookup. | ||
| @@ -1491,6 +1883,12 @@ const ( | |||||
| 1491 | // if available.) | 1883 | // if available.) | ||
| 1492 | type SocketFamily int | 1884 | type SocketFamily int | ||
| 1493 | 1885 | ||||
| 1886 | + | var xSocketFamilyGLibType func() types.GType | |||
| 1887 | + | ||||
| 1888 | + | func SocketFamilyGLibType() types.GType { | |||
| 1889 | + | return xSocketFamilyGLibType() | |||
| 1890 | + | } | |||
| 1891 | + | ||||
| 1494 | const ( | 1892 | const ( | ||
| 1495 | 1893 | ||||
| 1496 | // no address family | 1894 | // no address family | ||
| @@ -1509,6 +1907,12 @@ const ( | |||||
| 1509 | // Additional values may be added to this type in the future. | 1907 | // Additional values may be added to this type in the future. | ||
| 1510 | type SocketListenerEvent int | 1908 | type SocketListenerEvent int | ||
| 1511 | 1909 | ||||
| 1910 | + | var xSocketListenerEventGLibType func() types.GType | |||
| 1911 | + | ||||
| 1912 | + | func SocketListenerEventGLibType() types.GType { | |||
| 1913 | + | return xSocketListenerEventGLibType() | |||
| 1914 | + | } | |||
| 1915 | + | ||||
| 1512 | const ( | 1916 | const ( | ||
| 1513 | 1917 | ||||
| 1514 | // The listener is about to bind a socket. | 1918 | // The listener is about to bind a socket. | ||
| @@ -1532,6 +1936,12 @@ const ( | |||||
| 1532 | // use protocols not listed here. | 1936 | // use protocols not listed here. | ||
| 1533 | type SocketProtocol int | 1937 | type SocketProtocol int | ||
| 1534 | 1938 | ||||
| 1939 | + | var xSocketProtocolGLibType func() types.GType | |||
| 1940 | + | ||||
| 1941 | + | func SocketProtocolGLibType() types.GType { | |||
| 1942 | + | return xSocketProtocolGLibType() | |||
| 1943 | + | } | |||
| 1944 | + | ||||
| 1535 | const ( | 1945 | const ( | ||
| 1536 | 1946 | ||||
| 1537 | // The protocol type is unknown | 1947 | // The protocol type is unknown | ||
| @@ -1550,6 +1960,12 @@ const ( | |||||
| 1550 | // all the socket types. | 1960 | // all the socket types. | ||
| 1551 | type SocketType int | 1961 | type SocketType int | ||
| 1552 | 1962 | ||||
| 1963 | + | var xSocketTypeGLibType func() types.GType | |||
| 1964 | + | ||||
| 1965 | + | func SocketTypeGLibType() types.GType { | |||
| 1966 | + | return xSocketTypeGLibType() | |||
| 1967 | + | } | |||
| 1968 | + | ||||
| 1553 | const ( | 1969 | const ( | ||
| 1554 | 1970 | ||||
| 1555 | // Type unknown or wrong | 1971 | // Type unknown or wrong | ||
| @@ -1567,6 +1983,12 @@ const ( | |||||
| 1567 | // The client authentication mode for a #GTlsServerConnection. | 1983 | // The client authentication mode for a #GTlsServerConnection. | ||
| 1568 | type TlsAuthenticationMode int | 1984 | type TlsAuthenticationMode int | ||
| 1569 | 1985 | ||||
| 1986 | + | var xTlsAuthenticationModeGLibType func() types.GType | |||
| 1987 | + | ||||
| 1988 | + | func TlsAuthenticationModeGLibType() types.GType { | |||
| 1989 | + | return xTlsAuthenticationModeGLibType() | |||
| 1990 | + | } | |||
| 1991 | + | ||||
| 1570 | const ( | 1992 | const ( | ||
| 1571 | 1993 | ||||
| 1572 | // client authentication not required | 1994 | // client authentication not required | ||
| @@ -1582,6 +2004,12 @@ const ( | |||||
| 1582 | // g_tls_interaction_invoke_request_certificate(). | 2004 | // g_tls_interaction_invoke_request_certificate(). | ||
| 1583 | type TlsCertificateRequestFlags int | 2005 | type TlsCertificateRequestFlags int | ||
| 1584 | 2006 | ||||
| 2007 | + | var xTlsCertificateRequestFlagsGLibType func() types.GType | |||
| 2008 | + | ||||
| 2009 | + | func TlsCertificateRequestFlagsGLibType() types.GType { | |||
| 2010 | + | return xTlsCertificateRequestFlagsGLibType() | |||
| 2011 | + | } | |||
| 2012 | + | ||||
| 1585 | const ( | 2013 | const ( | ||
| 1586 | 2014 | ||||
| 1587 | // No flags | 2015 | // No flags | ||
| @@ -1592,6 +2020,12 @@ const ( | |||||
| 1592 | // indicate a TLS channel binding retrieval error. | 2020 | // indicate a TLS channel binding retrieval error. | ||
| 1593 | type TlsChannelBindingError int | 2021 | type TlsChannelBindingError int | ||
| 1594 | 2022 | ||||
| 2023 | + | var xTlsChannelBindingErrorGLibType func() types.GType | |||
| 2024 | + | ||||
| 2025 | + | func TlsChannelBindingErrorGLibType() types.GType { | |||
| 2026 | + | return xTlsChannelBindingErrorGLibType() | |||
| 2027 | + | } | |||
| 2028 | + | ||||
| 1595 | const ( | 2029 | const ( | ||
| 1596 | 2030 | ||||
| 1597 | // Either entire binding | 2031 | // Either entire binding | ||
| @@ -1623,6 +2057,12 @@ const ( | |||||
| 1623 | // binding type is not currently implemented. | 2057 | // binding type is not currently implemented. | ||
| 1624 | type TlsChannelBindingType int | 2058 | type TlsChannelBindingType int | ||
| 1625 | 2059 | ||||
| 2060 | + | var xTlsChannelBindingTypeGLibType func() types.GType | |||
| 2061 | + | ||||
| 2062 | + | func TlsChannelBindingTypeGLibType() types.GType { | |||
| 2063 | + | return xTlsChannelBindingTypeGLibType() | |||
| 2064 | + | } | |||
| 2065 | + | ||||
| 1626 | const ( | 2066 | const ( | ||
| 1627 | 2067 | ||||
| 1628 | // [`tls-unique`](https://tools.ietf.org/html/rfc5929#section-3) binding | 2068 | // [`tls-unique`](https://tools.ietf.org/html/rfc5929#section-3) binding | ||
| @@ -1638,6 +2078,12 @@ const ( | |||||
| 1638 | // and g_tls_database_lookup_certificates_issued_by(). | 2078 | // and g_tls_database_lookup_certificates_issued_by(). | ||
| 1639 | type TlsDatabaseLookupFlags int | 2079 | type TlsDatabaseLookupFlags int | ||
| 1640 | 2080 | ||||
| 2081 | + | var xTlsDatabaseLookupFlagsGLibType func() types.GType | |||
| 2082 | + | ||||
| 2083 | + | func TlsDatabaseLookupFlagsGLibType() types.GType { | |||
| 2084 | + | return xTlsDatabaseLookupFlagsGLibType() | |||
| 2085 | + | } | |||
| 2086 | + | ||||
| 1641 | const ( | 2087 | const ( | ||
| 1642 | 2088 | ||||
| 1643 | // No lookup flags | 2089 | // No lookup flags | ||
| @@ -1651,6 +2097,12 @@ const ( | |||||
| 1651 | // TLS-related routine. | 2097 | // TLS-related routine. | ||
| 1652 | type TlsError int | 2098 | type TlsError int | ||
| 1653 | 2099 | ||||
| 2100 | + | var xTlsErrorGLibType func() types.GType | |||
| 2101 | + | ||||
| 2102 | + | func TlsErrorGLibType() types.GType { | |||
| 2103 | + | return xTlsErrorGLibType() | |||
| 2104 | + | } | |||
| 2105 | + | ||||
| 1654 | const ( | 2106 | const ( | ||
| 1655 | 2107 | ||||
| 1656 | // No TLS provider is available | 2108 | // No TLS provider is available | ||
| @@ -1687,6 +2139,12 @@ const ( | |||||
| 1687 | // when finishing an interaction request. | 2139 | // when finishing an interaction request. | ||
| 1688 | type TlsInteractionResult int | 2140 | type TlsInteractionResult int | ||
| 1689 | 2141 | ||||
| 2142 | + | var xTlsInteractionResultGLibType func() types.GType | |||
| 2143 | + | ||||
| 2144 | + | func TlsInteractionResultGLibType() types.GType { | |||
| 2145 | + | return xTlsInteractionResultGLibType() | |||
| 2146 | + | } | |||
| 2147 | + | ||||
| 1690 | const ( | 2148 | const ( | ||
| 1691 | 2149 | ||||
| 1692 | // The interaction was unhandled (i.e. not | 2150 | // The interaction was unhandled (i.e. not | ||
| @@ -1711,6 +2169,12 @@ const ( | |||||
| 1711 | // than the TLS protocol versions. | 2169 | // than the TLS protocol versions. | ||
| 1712 | type TlsProtocolVersion int | 2170 | type TlsProtocolVersion int | ||
| 1713 | 2171 | ||||
| 2172 | + | var xTlsProtocolVersionGLibType func() types.GType | |||
| 2173 | + | ||||
| 2174 | + | func TlsProtocolVersionGLibType() types.GType { | |||
| 2175 | + | return xTlsProtocolVersionGLibType() | |||
| 2176 | + | } | |||
| 2177 | + | ||||
| 1714 | const ( | 2178 | const ( | ||
| 1715 | 2179 | ||||
| 1716 | // No protocol version or unknown protocol version | 2180 | // No protocol version or unknown protocol version | ||
| @@ -1735,6 +2199,12 @@ const ( | |||||
| 1735 | // g_tls_connection_set_rehandshake_mode(). | 2199 | // g_tls_connection_set_rehandshake_mode(). | ||
| 1736 | type TlsRehandshakeMode int | 2200 | type TlsRehandshakeMode int | ||
| 1737 | 2201 | ||||
| 2202 | + | var xTlsRehandshakeModeGLibType func() types.GType | |||
| 2203 | + | ||||
| 2204 | + | func TlsRehandshakeModeGLibType() types.GType { | |||
| 2205 | + | return xTlsRehandshakeModeGLibType() | |||
| 2206 | + | } | |||
| 2207 | + | ||||
| 1738 | const ( | 2208 | const ( | ||
| 1739 | 2209 | ||||
| 1740 | // Never allow rehandshaking | 2210 | // Never allow rehandshaking | ||
| @@ -1760,6 +2230,12 @@ const ( | |||||
| 1760 | // %G_UNIX_SOCKET_ADDRESS_ABSTRACT. | 2230 | // %G_UNIX_SOCKET_ADDRESS_ABSTRACT. | ||
| 1761 | type UnixSocketAddressType int | 2231 | type UnixSocketAddressType int | ||
| 1762 | 2232 | ||||
| 2233 | + | var xUnixSocketAddressTypeGLibType func() types.GType | |||
| 2234 | + | ||||
| 2235 | + | func UnixSocketAddressTypeGLibType() types.GType { | |||
| 2236 | + | return xUnixSocketAddressTypeGLibType() | |||
| 2237 | + | } | |||
| 2238 | + | ||||
| 1763 | const ( | 2239 | const ( | ||
| 1764 | 2240 | ||||
| 1765 | // invalid | 2241 | // invalid | ||
| @@ -1779,6 +2255,12 @@ const ( | |||||
| 1779 | // and #GZlibCompressor. | 2255 | // and #GZlibCompressor. | ||
| 1780 | type ZlibCompressorFormat int | 2256 | type ZlibCompressorFormat int | ||
| 1781 | 2257 | ||||
| 2258 | + | var xZlibCompressorFormatGLibType func() types.GType | |||
| 2259 | + | ||||
| 2260 | + | func ZlibCompressorFormatGLibType() types.GType { | |||
| 2261 | + | return xZlibCompressorFormatGLibType() | |||
| 2262 | + | } | |||
| 2263 | + | ||||
| 1782 | const ( | 2264 | const ( | ||
| 1783 | 2265 | ||||
| 1784 | // deflate compression with zlib header | 2266 | // deflate compression with zlib header | ||
M v4/gio/gioerror.go +1 -0
| @@ -26,6 +26,7 @@ func init() { | |||||
| 26 | if err != nil { | 26 | if err != nil { | ||
| 27 | panic(err) | 27 | panic(err) | ||
| 28 | } | 28 | } | ||
| 29 | + | ||||
| 29 | core.PuregoSafeRegister(&xIoErrorFromErrno, lib, "g_io_error_from_errno") | 30 | core.PuregoSafeRegister(&xIoErrorFromErrno, lib, "g_io_error_from_errno") | ||
| 30 | 31 | ||||
| 31 | } | 32 | } | ||
M v4/gio/giomodule.go +9 -0
| @@ -152,6 +152,12 @@ type IOModule struct { | |||||
| 152 | gobject.TypeModule | 152 | gobject.TypeModule | ||
| 153 | } | 153 | } | ||
| 154 | 154 | ||||
| 155 | + | var xIOModuleGLibType func() types.GType | |||
| 156 | + | ||||
| 157 | + | func IOModuleGLibType() types.GType { | |||
| 158 | + | return xIOModuleGLibType() | |||
| 159 | + | } | |||
| 160 | + | ||||
| 155 | func IOModuleNewFromInternalPtr(ptr uintptr) *IOModule { | 161 | func IOModuleNewFromInternalPtr(ptr uintptr) *IOModule { | ||
| 156 | cls := &IOModule{} | 162 | cls := &IOModule{} | ||
| 157 | cls.Ptr = ptr | 163 | cls.Ptr = ptr | ||
| @@ -304,6 +310,7 @@ func init() { | |||||
| 304 | if err != nil { | 310 | if err != nil { | ||
| 305 | panic(err) | 311 | panic(err) | ||
| 306 | } | 312 | } | ||
| 313 | + | ||||
| 307 | core.PuregoSafeRegister(&xIoExtensionPointImplement, lib, "g_io_extension_point_implement") | 314 | core.PuregoSafeRegister(&xIoExtensionPointImplement, lib, "g_io_extension_point_implement") | ||
| 308 | core.PuregoSafeRegister(&xIoExtensionPointLookup, lib, "g_io_extension_point_lookup") | 315 | core.PuregoSafeRegister(&xIoExtensionPointLookup, lib, "g_io_extension_point_lookup") | ||
| 309 | core.PuregoSafeRegister(&xIoExtensionPointRegister, lib, "g_io_extension_point_register") | 316 | core.PuregoSafeRegister(&xIoExtensionPointRegister, lib, "g_io_extension_point_register") | ||
| @@ -315,6 +322,8 @@ func init() { | |||||
| 315 | core.PuregoSafeRegister(&xIOModuleScopeBlock, lib, "g_io_module_scope_block") | 322 | core.PuregoSafeRegister(&xIOModuleScopeBlock, lib, "g_io_module_scope_block") | ||
| 316 | core.PuregoSafeRegister(&xIOModuleScopeFree, lib, "g_io_module_scope_free") | 323 | core.PuregoSafeRegister(&xIOModuleScopeFree, lib, "g_io_module_scope_free") | ||
| 317 | 324 | ||||
| 325 | + | core.PuregoSafeRegister(&xIOModuleGLibType, lib, "g_io_module_get_type") | |||
| 326 | + | ||||
| 318 | core.PuregoSafeRegister(&xNewIOModule, lib, "g_io_module_new") | 327 | core.PuregoSafeRegister(&xNewIOModule, lib, "g_io_module_new") | ||
| 319 | 328 | ||||
| 320 | core.PuregoSafeRegister(&xIOModuleLoad, lib, "g_io_module_load") | 329 | core.PuregoSafeRegister(&xIOModuleLoad, lib, "g_io_module_load") | ||
M v4/gio/gioscheduler.go +1 -0
| @@ -40,6 +40,7 @@ func init() { | |||||
| 40 | if err != nil { | 40 | if err != nil { | ||
| 41 | panic(err) | 41 | panic(err) | ||
| 42 | } | 42 | } | ||
| 43 | + | ||||
| 43 | core.PuregoSafeRegister(&xIoSchedulerCancelAllJobs, lib, "g_io_scheduler_cancel_all_jobs") | 44 | core.PuregoSafeRegister(&xIoSchedulerCancelAllJobs, lib, "g_io_scheduler_cancel_all_jobs") | ||
| 44 | core.PuregoSafeRegister(&xIoSchedulerPushJob, lib, "g_io_scheduler_push_job") | 45 | core.PuregoSafeRegister(&xIoSchedulerPushJob, lib, "g_io_scheduler_push_job") | ||
| 45 | 46 | ||||
M v4/gio/giostream.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | type IOStreamClass struct { | 14 | type IOStreamClass struct { | ||
| @@ -75,6 +76,12 @@ type IOStream struct { | |||||
| 75 | gobject.Object | 76 | gobject.Object | ||
| 76 | } | 77 | } | ||
| 77 | 78 | ||||
| 79 | + | var xIOStreamGLibType func() types.GType | |||
| 80 | + | ||||
| 81 | + | func IOStreamGLibType() types.GType { | |||
| 82 | + | return xIOStreamGLibType() | |||
| 83 | + | } | |||
| 84 | + | ||||
| 78 | func IOStreamNewFromInternalPtr(ptr uintptr) *IOStream { | 85 | func IOStreamNewFromInternalPtr(ptr uintptr) *IOStream { | ||
| 79 | cls := &IOStream{} | 86 | cls := &IOStream{} | ||
| 80 | cls.Ptr = ptr | 87 | cls.Ptr = ptr | ||
| @@ -281,6 +288,8 @@ func init() { | |||||
| 281 | panic(err) | 288 | panic(err) | ||
| 282 | } | 289 | } | ||
| 283 | 290 | ||||
| 291 | + | core.PuregoSafeRegister(&xIOStreamGLibType, lib, "g_io_stream_get_type") | |||
| 292 | + | ||||
| 284 | core.PuregoSafeRegister(&xIOStreamClearPending, lib, "g_io_stream_clear_pending") | 293 | core.PuregoSafeRegister(&xIOStreamClearPending, lib, "g_io_stream_clear_pending") | ||
| 285 | core.PuregoSafeRegister(&xIOStreamClose, lib, "g_io_stream_close") | 294 | core.PuregoSafeRegister(&xIOStreamClose, lib, "g_io_stream_close") | ||
| 286 | core.PuregoSafeRegister(&xIOStreamCloseAsync, lib, "g_io_stream_close_async") | 295 | core.PuregoSafeRegister(&xIOStreamCloseAsync, lib, "g_io_stream_close_async") | ||
M v4/gio/giotypes.go +24 -0
| @@ -105,6 +105,12 @@ type SocketSourceFunc func(uintptr, glib.IOCondition, uintptr) bool | |||||
| 105 | type FileAttributeMatcher struct { | 105 | type FileAttributeMatcher struct { | ||
| 106 | } | 106 | } | ||
| 107 | 107 | ||||
| 108 | + | var xFileAttributeMatcherGLibType func() types.GType | |||
| 109 | + | ||||
| 110 | + | func FileAttributeMatcherGLibType() types.GType { | |||
| 111 | + | return xFileAttributeMatcherGLibType() | |||
| 112 | + | } | |||
| 113 | + | ||||
| 108 | func (x *FileAttributeMatcher) GoPointer() uintptr { | 114 | func (x *FileAttributeMatcher) GoPointer() uintptr { | ||
| 109 | return uintptr(unsafe.Pointer(x)) | 115 | return uintptr(unsafe.Pointer(x)) | ||
| 110 | } | 116 | } | ||
| @@ -601,6 +607,12 @@ func (x *OutputVector) GoPointer() uintptr { | |||||
| 601 | type Resource struct { | 607 | type Resource struct { | ||
| 602 | } | 608 | } | ||
| 603 | 609 | ||||
| 610 | + | var xResourceGLibType func() types.GType | |||
| 611 | + | ||||
| 612 | + | func ResourceGLibType() types.GType { | |||
| 613 | + | return xResourceGLibType() | |||
| 614 | + | } | |||
| 615 | + | ||||
| 604 | func (x *Resource) GoPointer() uintptr { | 616 | func (x *Resource) GoPointer() uintptr { | ||
| 605 | return uintptr(unsafe.Pointer(x)) | 617 | return uintptr(unsafe.Pointer(x)) | ||
| 606 | } | 618 | } | ||
| @@ -778,6 +790,12 @@ func (x *Resource) Unref() { | |||||
| 778 | type SrvTarget struct { | 790 | type SrvTarget struct { | ||
| 779 | } | 791 | } | ||
| 780 | 792 | ||||
| 793 | + | var xSrvTargetGLibType func() types.GType | |||
| 794 | + | ||||
| 795 | + | func SrvTargetGLibType() types.GType { | |||
| 796 | + | return xSrvTargetGLibType() | |||
| 797 | + | } | |||
| 798 | + | ||||
| 781 | func (x *SrvTarget) GoPointer() uintptr { | 799 | func (x *SrvTarget) GoPointer() uintptr { | ||
| 782 | return uintptr(unsafe.Pointer(x)) | 800 | return uintptr(unsafe.Pointer(x)) | ||
| 783 | } | 801 | } | ||
| @@ -861,6 +879,8 @@ func init() { | |||||
| 861 | panic(err) | 879 | panic(err) | ||
| 862 | } | 880 | } | ||
| 863 | 881 | ||||
| 882 | + | core.PuregoSafeRegister(&xFileAttributeMatcherGLibType, lib, "g_file_attribute_matcher_get_type") | |||
| 883 | + | ||||
| 864 | core.PuregoSafeRegister(&xNewFileAttributeMatcher, lib, "g_file_attribute_matcher_new") | 884 | core.PuregoSafeRegister(&xNewFileAttributeMatcher, lib, "g_file_attribute_matcher_new") | ||
| 865 | 885 | ||||
| 866 | core.PuregoSafeRegister(&xFileAttributeMatcherEnumerateNamespace, lib, "g_file_attribute_matcher_enumerate_namespace") | 886 | core.PuregoSafeRegister(&xFileAttributeMatcherEnumerateNamespace, lib, "g_file_attribute_matcher_enumerate_namespace") | ||
| @@ -885,6 +905,8 @@ func init() { | |||||
| 885 | core.PuregoSafeRegister(&xIOSchedulerJobSendToMainloop, lib, "g_io_scheduler_job_send_to_mainloop") | 905 | core.PuregoSafeRegister(&xIOSchedulerJobSendToMainloop, lib, "g_io_scheduler_job_send_to_mainloop") | ||
| 886 | core.PuregoSafeRegister(&xIOSchedulerJobSendToMainloopAsync, lib, "g_io_scheduler_job_send_to_mainloop_async") | 906 | core.PuregoSafeRegister(&xIOSchedulerJobSendToMainloopAsync, lib, "g_io_scheduler_job_send_to_mainloop_async") | ||
| 887 | 907 | ||||
| 908 | + | core.PuregoSafeRegister(&xResourceGLibType, lib, "g_resource_get_type") | |||
| 909 | + | ||||
| 888 | core.PuregoSafeRegister(&xNewResourceFromData, lib, "g_resource_new_from_data") | 910 | core.PuregoSafeRegister(&xNewResourceFromData, lib, "g_resource_new_from_data") | ||
| 889 | 911 | ||||
| 890 | core.PuregoSafeRegister(&xResourceRegister, lib, "g_resources_register") | 912 | core.PuregoSafeRegister(&xResourceRegister, lib, "g_resources_register") | ||
| @@ -896,6 +918,8 @@ func init() { | |||||
| 896 | core.PuregoSafeRegister(&xResourceRef, lib, "g_resource_ref") | 918 | core.PuregoSafeRegister(&xResourceRef, lib, "g_resource_ref") | ||
| 897 | core.PuregoSafeRegister(&xResourceUnref, lib, "g_resource_unref") | 919 | core.PuregoSafeRegister(&xResourceUnref, lib, "g_resource_unref") | ||
| 898 | 920 | ||||
| 921 | + | core.PuregoSafeRegister(&xSrvTargetGLibType, lib, "g_srv_target_get_type") | |||
| 922 | + | ||||
| 899 | core.PuregoSafeRegister(&xNewSrvTarget, lib, "g_srv_target_new") | 923 | core.PuregoSafeRegister(&xNewSrvTarget, lib, "g_srv_target_new") | ||
| 900 | 924 | ||||
| 901 | core.PuregoSafeRegister(&xSrvTargetCopy, lib, "g_srv_target_copy") | 925 | core.PuregoSafeRegister(&xSrvTargetCopy, lib, "g_srv_target_copy") | ||
M v4/gio/glistmodel.go +9 -0
| @@ -75,6 +75,13 @@ type ListModel interface { | |||||
| 75 | GetObject(PositionVar uint) *gobject.Object | 75 | GetObject(PositionVar uint) *gobject.Object | ||
| 76 | ItemsChanged(PositionVar uint, RemovedVar uint, AddedVar uint) | 76 | ItemsChanged(PositionVar uint, RemovedVar uint, AddedVar uint) | ||
| 77 | } | 77 | } | ||
| 78 | + | ||||
| 79 | + | var xListModelGLibType func() types.GType | |||
| 80 | + | ||||
| 81 | + | func ListModelGLibType() types.GType { | |||
| 82 | + | return xListModelGLibType() | |||
| 83 | + | } | |||
| 84 | + | ||||
| 78 | type ListModelBase struct { | 85 | type ListModelBase struct { | ||
| 79 | Ptr uintptr | 86 | Ptr uintptr | ||
| 80 | } | 87 | } | ||
| @@ -190,6 +197,8 @@ func init() { | |||||
| 190 | panic(err) | 197 | panic(err) | ||
| 191 | } | 198 | } | ||
| 192 | 199 | ||||
| 200 | + | core.PuregoSafeRegister(&xListModelGLibType, lib, "g_list_model_get_type") | |||
| 201 | + | ||||
| 193 | core.PuregoSafeRegister(&XGListModelGetItem, lib, "g_list_model_get_item") | 202 | core.PuregoSafeRegister(&XGListModelGetItem, lib, "g_list_model_get_item") | ||
| 194 | core.PuregoSafeRegister(&XGListModelGetItemType, lib, "g_list_model_get_item_type") | 203 | core.PuregoSafeRegister(&XGListModelGetItemType, lib, "g_list_model_get_item_type") | ||
| 195 | core.PuregoSafeRegister(&XGListModelGetNItems, lib, "g_list_model_get_n_items") | 204 | core.PuregoSafeRegister(&XGListModelGetNItems, lib, "g_list_model_get_n_items") | ||
M v4/gio/gliststore.go +8 -0
| @@ -28,6 +28,12 @@ type ListStore struct { | |||||
| 28 | gobject.Object | 28 | gobject.Object | ||
| 29 | } | 29 | } | ||
| 30 | 30 | ||||
| 31 | + | var xListStoreGLibType func() types.GType | |||
| 32 | + | ||||
| 33 | + | func ListStoreGLibType() types.GType { | |||
| 34 | + | return xListStoreGLibType() | |||
| 35 | + | } | |||
| 36 | + | ||||
| 31 | func ListStoreNewFromInternalPtr(ptr uintptr) *ListStore { | 37 | func ListStoreNewFromInternalPtr(ptr uintptr) *ListStore { | ||
| 32 | cls := &ListStore{} | 38 | cls := &ListStore{} | ||
| 33 | cls.Ptr = ptr | 39 | cls.Ptr = ptr | ||
| @@ -280,6 +286,8 @@ func init() { | |||||
| 280 | panic(err) | 286 | panic(err) | ||
| 281 | } | 287 | } | ||
| 282 | 288 | ||||
| 289 | + | core.PuregoSafeRegister(&xListStoreGLibType, lib, "g_list_store_get_type") | |||
| 290 | + | ||||
| 283 | core.PuregoSafeRegister(&xNewListStore, lib, "g_list_store_new") | 291 | core.PuregoSafeRegister(&xNewListStore, lib, "g_list_store_new") | ||
| 284 | 292 | ||||
| 285 | core.PuregoSafeRegister(&xListStoreAppend, lib, "g_list_store_append") | 293 | core.PuregoSafeRegister(&xListStoreAppend, lib, "g_list_store_append") | ||
M v4/gio/gloadableicon.go +10 -0
| @@ -7,6 +7,7 @@ import ( | |||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 10 | ) | 11 | ) | ||
| 11 | 12 | ||||
| 12 | // Interface for icons that can be loaded as a stream. | 13 | // Interface for icons that can be loaded as a stream. | ||
| @@ -27,6 +28,13 @@ type LoadableIcon interface { | |||||
| 27 | LoadAsync(SizeVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) | 28 | LoadAsync(SizeVar int, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) | ||
| 28 | LoadFinish(ResVar AsyncResult, TypeVar string) *InputStream | 29 | LoadFinish(ResVar AsyncResult, TypeVar string) *InputStream | ||
| 29 | } | 30 | } | ||
| 31 | + | ||||
| 32 | + | var xLoadableIconGLibType func() types.GType | |||
| 33 | + | ||||
| 34 | + | func LoadableIconGLibType() types.GType { | |||
| 35 | + | return xLoadableIconGLibType() | |||
| 36 | + | } | |||
| 37 | + | ||||
| 30 | type LoadableIconBase struct { | 38 | type LoadableIconBase struct { | ||
| 31 | Ptr uintptr | 39 | Ptr uintptr | ||
| 32 | } | 40 | } | ||
| @@ -97,6 +105,8 @@ func init() { | |||||
| 97 | panic(err) | 105 | panic(err) | ||
| 98 | } | 106 | } | ||
| 99 | 107 | ||||
| 108 | + | core.PuregoSafeRegister(&xLoadableIconGLibType, lib, "g_loadable_icon_get_type") | |||
| 109 | + | ||||
| 100 | core.PuregoSafeRegister(&XGLoadableIconLoad, lib, "g_loadable_icon_load") | 110 | core.PuregoSafeRegister(&XGLoadableIconLoad, lib, "g_loadable_icon_load") | ||
| 101 | core.PuregoSafeRegister(&XGLoadableIconLoadAsync, lib, "g_loadable_icon_load_async") | 111 | core.PuregoSafeRegister(&XGLoadableIconLoadAsync, lib, "g_loadable_icon_load_async") | ||
| 102 | core.PuregoSafeRegister(&XGLoadableIconLoadFinish, lib, "g_loadable_icon_load_finish") | 112 | core.PuregoSafeRegister(&XGLoadableIconLoadFinish, lib, "g_loadable_icon_load_finish") | ||
M v4/gio/gmemoryinputstream.go +9 -0
| @@ -7,6 +7,7 @@ import ( | |||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 10 | ) | 11 | ) | ||
| 11 | 12 | ||||
| 12 | type MemoryInputStreamClass struct { | 13 | type MemoryInputStreamClass struct { | ||
| @@ -33,6 +34,12 @@ type MemoryInputStream struct { | |||||
| 33 | InputStream | 34 | InputStream | ||
| 34 | } | 35 | } | ||
| 35 | 36 | ||||
| 37 | + | var xMemoryInputStreamGLibType func() types.GType | |||
| 38 | + | ||||
| 39 | + | func MemoryInputStreamGLibType() types.GType { | |||
| 40 | + | return xMemoryInputStreamGLibType() | |||
| 41 | + | } | |||
| 42 | + | ||||
| 36 | func MemoryInputStreamNewFromInternalPtr(ptr uintptr) *MemoryInputStream { | 43 | func MemoryInputStreamNewFromInternalPtr(ptr uintptr) *MemoryInputStream { | ||
| 37 | cls := &MemoryInputStream{} | 44 | cls := &MemoryInputStream{} | ||
| 38 | cls.Ptr = ptr | 45 | cls.Ptr = ptr | ||
| @@ -249,6 +256,8 @@ func init() { | |||||
| 249 | panic(err) | 256 | panic(err) | ||
| 250 | } | 257 | } | ||
| 251 | 258 | ||||
| 259 | + | core.PuregoSafeRegister(&xMemoryInputStreamGLibType, lib, "g_memory_input_stream_get_type") | |||
| 260 | + | ||||
| 252 | core.PuregoSafeRegister(&xNewMemoryInputStream, lib, "g_memory_input_stream_new") | 261 | core.PuregoSafeRegister(&xNewMemoryInputStream, lib, "g_memory_input_stream_new") | ||
| 253 | core.PuregoSafeRegister(&xNewMemoryInputStreamFromBytes, lib, "g_memory_input_stream_new_from_bytes") | 262 | core.PuregoSafeRegister(&xNewMemoryInputStreamFromBytes, lib, "g_memory_input_stream_new_from_bytes") | ||
| 254 | core.PuregoSafeRegister(&xNewMemoryInputStreamFromData, lib, "g_memory_input_stream_new_from_data") | 263 | core.PuregoSafeRegister(&xNewMemoryInputStreamFromData, lib, "g_memory_input_stream_new_from_data") | ||
M v4/gio/gmemorymonitor.go +11 -0
| @@ -6,6 +6,7 @@ import ( | |||||
| 6 | 6 | ||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 9 | ) | 10 | ) | ||
| 10 | 11 | ||||
| 11 | // The virtual function table for #GMemoryMonitor. | 12 | // The virtual function table for #GMemoryMonitor. | ||
| @@ -70,6 +71,13 @@ type MemoryMonitor interface { | |||||
| 70 | GoPointer() uintptr | 71 | GoPointer() uintptr | ||
| 71 | SetGoPointer(uintptr) | 72 | SetGoPointer(uintptr) | ||
| 72 | } | 73 | } | ||
| 74 | + | ||||
| 75 | + | var xMemoryMonitorGLibType func() types.GType | |||
| 76 | + | ||||
| 77 | + | func MemoryMonitorGLibType() types.GType { | |||
| 78 | + | return xMemoryMonitorGLibType() | |||
| 79 | + | } | |||
| 80 | + | ||||
| 73 | type MemoryMonitorBase struct { | 81 | type MemoryMonitorBase struct { | ||
| 74 | Ptr uintptr | 82 | Ptr uintptr | ||
| 75 | } | 83 | } | ||
| @@ -109,6 +117,9 @@ func init() { | |||||
| 109 | if err != nil { | 117 | if err != nil { | ||
| 110 | panic(err) | 118 | panic(err) | ||
| 111 | } | 119 | } | ||
| 120 | + | ||||
| 112 | core.PuregoSafeRegister(&xMemoryMonitorDupDefault, lib, "g_memory_monitor_dup_default") | 121 | core.PuregoSafeRegister(&xMemoryMonitorDupDefault, lib, "g_memory_monitor_dup_default") | ||
| 113 | 122 | ||||
| 123 | + | core.PuregoSafeRegister(&xMemoryMonitorGLibType, lib, "g_memory_monitor_get_type") | |||
| 124 | + | ||||
| 114 | } | 125 | } | ||
M v4/gio/gmemoryoutputstream.go +9 -0
| @@ -7,6 +7,7 @@ import ( | |||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 10 | ) | 11 | ) | ||
| 11 | 12 | ||||
| 12 | // Changes the size of the memory block pointed to by @data to | 13 | // Changes the size of the memory block pointed to by @data to | ||
| @@ -39,6 +40,12 @@ type MemoryOutputStream struct { | |||||
| 39 | OutputStream | 40 | OutputStream | ||
| 40 | } | 41 | } | ||
| 41 | 42 | ||||
| 43 | + | var xMemoryOutputStreamGLibType func() types.GType | |||
| 44 | + | ||||
| 45 | + | func MemoryOutputStreamGLibType() types.GType { | |||
| 46 | + | return xMemoryOutputStreamGLibType() | |||
| 47 | + | } | |||
| 48 | + | ||||
| 42 | func MemoryOutputStreamNewFromInternalPtr(ptr uintptr) *MemoryOutputStream { | 49 | func MemoryOutputStreamNewFromInternalPtr(ptr uintptr) *MemoryOutputStream { | ||
| 43 | cls := &MemoryOutputStream{} | 50 | cls := &MemoryOutputStream{} | ||
| 44 | cls.Ptr = ptr | 51 | cls.Ptr = ptr | ||
| @@ -362,6 +369,8 @@ func init() { | |||||
| 362 | panic(err) | 369 | panic(err) | ||
| 363 | } | 370 | } | ||
| 364 | 371 | ||||
| 372 | + | core.PuregoSafeRegister(&xMemoryOutputStreamGLibType, lib, "g_memory_output_stream_get_type") | |||
| 373 | + | ||||
| 365 | core.PuregoSafeRegister(&xNewMemoryOutputStream, lib, "g_memory_output_stream_new") | 374 | core.PuregoSafeRegister(&xNewMemoryOutputStream, lib, "g_memory_output_stream_new") | ||
| 366 | core.PuregoSafeRegister(&xNewMemoryOutputStreamResizable, lib, "g_memory_output_stream_new_resizable") | 375 | core.PuregoSafeRegister(&xNewMemoryOutputStreamResizable, lib, "g_memory_output_stream_new_resizable") | ||
| 367 | 376 | ||||
M v4/gio/gmenumodel.go +25 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | type MenuAttributeIterClass struct { | 14 | type MenuAttributeIterClass struct { | ||
| @@ -99,6 +100,12 @@ type MenuAttributeIter struct { | |||||
| 99 | gobject.Object | 100 | gobject.Object | ||
| 100 | } | 101 | } | ||
| 101 | 102 | ||||
| 103 | + | var xMenuAttributeIterGLibType func() types.GType | |||
| 104 | + | ||||
| 105 | + | func MenuAttributeIterGLibType() types.GType { | |||
| 106 | + | return xMenuAttributeIterGLibType() | |||
| 107 | + | } | |||
| 108 | + | ||||
| 102 | func MenuAttributeIterNewFromInternalPtr(ptr uintptr) *MenuAttributeIter { | 109 | func MenuAttributeIterNewFromInternalPtr(ptr uintptr) *MenuAttributeIter { | ||
| 103 | cls := &MenuAttributeIter{} | 110 | cls := &MenuAttributeIter{} | ||
| 104 | cls.Ptr = ptr | 111 | cls.Ptr = ptr | ||
| @@ -182,6 +189,12 @@ type MenuLinkIter struct { | |||||
| 182 | gobject.Object | 189 | gobject.Object | ||
| 183 | } | 190 | } | ||
| 184 | 191 | ||||
| 192 | + | var xMenuLinkIterGLibType func() types.GType | |||
| 193 | + | ||||
| 194 | + | func MenuLinkIterGLibType() types.GType { | |||
| 195 | + | return xMenuLinkIterGLibType() | |||
| 196 | + | } | |||
| 197 | + | ||||
| 185 | func MenuLinkIterNewFromInternalPtr(ptr uintptr) *MenuLinkIter { | 198 | func MenuLinkIterNewFromInternalPtr(ptr uintptr) *MenuLinkIter { | ||
| 186 | cls := &MenuLinkIter{} | 199 | cls := &MenuLinkIter{} | ||
| 187 | cls.Ptr = ptr | 200 | cls.Ptr = ptr | ||
| @@ -380,6 +393,12 @@ type MenuModel struct { | |||||
| 380 | gobject.Object | 393 | gobject.Object | ||
| 381 | } | 394 | } | ||
| 382 | 395 | ||||
| 396 | + | var xMenuModelGLibType func() types.GType | |||
| 397 | + | ||||
| 398 | + | func MenuModelGLibType() types.GType { | |||
| 399 | + | return xMenuModelGLibType() | |||
| 400 | + | } | |||
| 401 | + | ||||
| 383 | func MenuModelNewFromInternalPtr(ptr uintptr) *MenuModel { | 402 | func MenuModelNewFromInternalPtr(ptr uintptr) *MenuModel { | ||
| 384 | cls := &MenuModel{} | 403 | cls := &MenuModel{} | ||
| 385 | cls.Ptr = ptr | 404 | cls.Ptr = ptr | ||
| @@ -584,16 +603,22 @@ func init() { | |||||
| 584 | panic(err) | 603 | panic(err) | ||
| 585 | } | 604 | } | ||
| 586 | 605 | ||||
| 606 | + | core.PuregoSafeRegister(&xMenuAttributeIterGLibType, lib, "g_menu_attribute_iter_get_type") | |||
| 607 | + | ||||
| 587 | core.PuregoSafeRegister(&xMenuAttributeIterGetName, lib, "g_menu_attribute_iter_get_name") | 608 | core.PuregoSafeRegister(&xMenuAttributeIterGetName, lib, "g_menu_attribute_iter_get_name") | ||
| 588 | core.PuregoSafeRegister(&xMenuAttributeIterGetNext, lib, "g_menu_attribute_iter_get_next") | 609 | core.PuregoSafeRegister(&xMenuAttributeIterGetNext, lib, "g_menu_attribute_iter_get_next") | ||
| 589 | core.PuregoSafeRegister(&xMenuAttributeIterGetValue, lib, "g_menu_attribute_iter_get_value") | 610 | core.PuregoSafeRegister(&xMenuAttributeIterGetValue, lib, "g_menu_attribute_iter_get_value") | ||
| 590 | core.PuregoSafeRegister(&xMenuAttributeIterNext, lib, "g_menu_attribute_iter_next") | 611 | core.PuregoSafeRegister(&xMenuAttributeIterNext, lib, "g_menu_attribute_iter_next") | ||
| 591 | 612 | ||||
| 613 | + | core.PuregoSafeRegister(&xMenuLinkIterGLibType, lib, "g_menu_link_iter_get_type") | |||
| 614 | + | ||||
| 592 | core.PuregoSafeRegister(&xMenuLinkIterGetName, lib, "g_menu_link_iter_get_name") | 615 | core.PuregoSafeRegister(&xMenuLinkIterGetName, lib, "g_menu_link_iter_get_name") | ||
| 593 | core.PuregoSafeRegister(&xMenuLinkIterGetNext, lib, "g_menu_link_iter_get_next") | 616 | core.PuregoSafeRegister(&xMenuLinkIterGetNext, lib, "g_menu_link_iter_get_next") | ||
| 594 | core.PuregoSafeRegister(&xMenuLinkIterGetValue, lib, "g_menu_link_iter_get_value") | 617 | core.PuregoSafeRegister(&xMenuLinkIterGetValue, lib, "g_menu_link_iter_get_value") | ||
| 595 | core.PuregoSafeRegister(&xMenuLinkIterNext, lib, "g_menu_link_iter_next") | 618 | core.PuregoSafeRegister(&xMenuLinkIterNext, lib, "g_menu_link_iter_next") | ||
| 596 | 619 | ||||
| 620 | + | core.PuregoSafeRegister(&xMenuModelGLibType, lib, "g_menu_model_get_type") | |||
| 621 | + | ||||
| 597 | core.PuregoSafeRegister(&xMenuModelGetItemAttribute, lib, "g_menu_model_get_item_attribute") | 622 | core.PuregoSafeRegister(&xMenuModelGetItemAttribute, lib, "g_menu_model_get_item_attribute") | ||
| 598 | core.PuregoSafeRegister(&xMenuModelGetItemAttributeValue, lib, "g_menu_model_get_item_attribute_value") | 623 | core.PuregoSafeRegister(&xMenuModelGetItemAttributeValue, lib, "g_menu_model_get_item_attribute_value") | ||
| 599 | core.PuregoSafeRegister(&xMenuModelGetItemLink, lib, "g_menu_model_get_item_link") | 624 | core.PuregoSafeRegister(&xMenuModelGetItemLink, lib, "g_menu_model_get_item_link") | ||
M v4/gio/gmount.go +10 -0
| @@ -7,6 +7,7 @@ import ( | |||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 10 | ) | 11 | ) | ||
| 11 | 12 | ||||
| 12 | // Interface for implementing operations for mounts. | 13 | // Interface for implementing operations for mounts. | ||
| @@ -68,6 +69,13 @@ type Mount interface { | |||||
| 68 | UnmountWithOperationFinish(ResultVar AsyncResult) bool | 69 | UnmountWithOperationFinish(ResultVar AsyncResult) bool | ||
| 69 | Unshadow() | 70 | Unshadow() | ||
| 70 | } | 71 | } | ||
| 72 | + | ||||
| 73 | + | var xMountGLibType func() types.GType | |||
| 74 | + | ||||
| 75 | + | func MountGLibType() types.GType { | |||
| 76 | + | return xMountGLibType() | |||
| 77 | + | } | |||
| 78 | + | ||||
| 71 | type MountBase struct { | 79 | type MountBase struct { | ||
| 72 | Ptr uintptr | 80 | Ptr uintptr | ||
| 73 | } | 81 | } | ||
| @@ -459,6 +467,8 @@ func init() { | |||||
| 459 | panic(err) | 467 | panic(err) | ||
| 460 | } | 468 | } | ||
| 461 | 469 | ||||
| 470 | + | core.PuregoSafeRegister(&xMountGLibType, lib, "g_mount_get_type") | |||
| 471 | + | ||||
| 462 | core.PuregoSafeRegister(&XGMountCanEject, lib, "g_mount_can_eject") | 472 | core.PuregoSafeRegister(&XGMountCanEject, lib, "g_mount_can_eject") | ||
| 463 | core.PuregoSafeRegister(&XGMountCanUnmount, lib, "g_mount_can_unmount") | 473 | core.PuregoSafeRegister(&XGMountCanUnmount, lib, "g_mount_can_unmount") | ||
| 464 | core.PuregoSafeRegister(&XGMountEject, lib, "g_mount_eject") | 474 | core.PuregoSafeRegister(&XGMountEject, lib, "g_mount_eject") | ||
M v4/gio/gmountoperation.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | type MountOperationClass struct { | 14 | type MountOperationClass struct { | ||
| @@ -50,6 +51,12 @@ type MountOperation struct { | |||||
| 50 | gobject.Object | 51 | gobject.Object | ||
| 51 | } | 52 | } | ||
| 52 | 53 | ||||
| 54 | + | var xMountOperationGLibType func() types.GType | |||
| 55 | + | ||||
| 56 | + | func MountOperationGLibType() types.GType { | |||
| 57 | + | return xMountOperationGLibType() | |||
| 58 | + | } | |||
| 59 | + | ||||
| 53 | func MountOperationNewFromInternalPtr(ptr uintptr) *MountOperation { | 60 | func MountOperationNewFromInternalPtr(ptr uintptr) *MountOperation { | ||
| 54 | cls := &MountOperation{} | 61 | cls := &MountOperation{} | ||
| 55 | cls.Ptr = ptr | 62 | cls.Ptr = ptr | ||
| @@ -419,6 +426,8 @@ func init() { | |||||
| 419 | panic(err) | 426 | panic(err) | ||
| 420 | } | 427 | } | ||
| 421 | 428 | ||||
| 429 | + | core.PuregoSafeRegister(&xMountOperationGLibType, lib, "g_mount_operation_get_type") | |||
| 430 | + | ||||
| 422 | core.PuregoSafeRegister(&xNewMountOperation, lib, "g_mount_operation_new") | 431 | core.PuregoSafeRegister(&xNewMountOperation, lib, "g_mount_operation_new") | ||
| 423 | 432 | ||||
| 424 | core.PuregoSafeRegister(&xMountOperationGetAnonymous, lib, "g_mount_operation_get_anonymous") | 433 | core.PuregoSafeRegister(&xMountOperationGetAnonymous, lib, "g_mount_operation_get_anonymous") | ||
M v4/gio/gnativesocketaddress.go +9 -0
| @@ -6,6 +6,7 @@ import ( | |||||
| 6 | 6 | ||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 9 | ) | 10 | ) | ||
| 10 | 11 | ||||
| 11 | type NativeSocketAddressClass struct { | 12 | type NativeSocketAddressClass struct { | ||
| @@ -28,6 +29,12 @@ type NativeSocketAddress struct { | |||||
| 28 | SocketAddress | 29 | SocketAddress | ||
| 29 | } | 30 | } | ||
| 30 | 31 | ||||
| 32 | + | var xNativeSocketAddressGLibType func() types.GType | |||
| 33 | + | ||||
| 34 | + | func NativeSocketAddressGLibType() types.GType { | |||
| 35 | + | return xNativeSocketAddressGLibType() | |||
| 36 | + | } | |||
| 37 | + | ||||
| 31 | func NativeSocketAddressNewFromInternalPtr(ptr uintptr) *NativeSocketAddress { | 38 | func NativeSocketAddressNewFromInternalPtr(ptr uintptr) *NativeSocketAddress { | ||
| 32 | cls := &NativeSocketAddress{} | 39 | cls := &NativeSocketAddress{} | ||
| 33 | cls.Ptr = ptr | 40 | cls.Ptr = ptr | ||
| @@ -111,6 +118,8 @@ func init() { | |||||
| 111 | panic(err) | 118 | panic(err) | ||
| 112 | } | 119 | } | ||
| 113 | 120 | ||||
| 121 | + | core.PuregoSafeRegister(&xNativeSocketAddressGLibType, lib, "g_native_socket_address_get_type") | |||
| 122 | + | ||||
| 114 | core.PuregoSafeRegister(&xNewNativeSocketAddress, lib, "g_native_socket_address_new") | 123 | core.PuregoSafeRegister(&xNewNativeSocketAddress, lib, "g_native_socket_address_new") | ||
| 115 | 124 | ||||
| 116 | } | 125 | } | ||
M v4/gio/gnativevolumemonitor.go +11 -1
| @@ -1,7 +1,11 @@ | |||||
| 1 | // Package gio was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT | 1 | // Package gio was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT | ||
| 2 | package gio | 2 | package gio | ||
| 3 | 3 | ||||
| 4 | - | import "unsafe" | 4 | + | import ( |
| 5 | + | "unsafe" | |||
| 6 | + | ||||
| 7 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 8 | + | ) | |||
| 5 | 9 | ||||
| 6 | type NativeVolumeMonitorClass struct { | 10 | type NativeVolumeMonitorClass struct { | ||
| 7 | ParentClass uintptr | 11 | ParentClass uintptr | ||
| @@ -19,6 +23,12 @@ type NativeVolumeMonitor struct { | |||||
| 19 | VolumeMonitor | 23 | VolumeMonitor | ||
| 20 | } | 24 | } | ||
| 21 | 25 | ||||
| 26 | + | var xNativeVolumeMonitorGLibType func() types.GType | |||
| 27 | + | ||||
| 28 | + | func NativeVolumeMonitorGLibType() types.GType { | |||
| 29 | + | return xNativeVolumeMonitorGLibType() | |||
| 30 | + | } | |||
| 31 | + | ||||
| 22 | func NativeVolumeMonitorNewFromInternalPtr(ptr uintptr) *NativeVolumeMonitor { | 32 | func NativeVolumeMonitorNewFromInternalPtr(ptr uintptr) *NativeVolumeMonitor { | ||
| 23 | cls := &NativeVolumeMonitor{} | 33 | cls := &NativeVolumeMonitor{} | ||
| 24 | cls.Ptr = ptr | 34 | cls.Ptr = ptr | ||
M v4/gio/gnetworkaddress.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | type NetworkAddressClass struct { | 14 | type NetworkAddressClass struct { | ||
| @@ -39,6 +40,12 @@ type NetworkAddress struct { | |||||
| 39 | gobject.Object | 40 | gobject.Object | ||
| 40 | } | 41 | } | ||
| 41 | 42 | ||||
| 43 | + | var xNetworkAddressGLibType func() types.GType | |||
| 44 | + | ||||
| 45 | + | func NetworkAddressGLibType() types.GType { | |||
| 46 | + | return xNetworkAddressGLibType() | |||
| 47 | + | } | |||
| 48 | + | ||||
| 42 | func NetworkAddressNewFromInternalPtr(ptr uintptr) *NetworkAddress { | 49 | func NetworkAddressNewFromInternalPtr(ptr uintptr) *NetworkAddress { | ||
| 43 | cls := &NetworkAddress{} | 50 | cls := &NetworkAddress{} | ||
| 44 | cls.Ptr = ptr | 51 | cls.Ptr = ptr | ||
| @@ -251,6 +258,8 @@ func init() { | |||||
| 251 | panic(err) | 258 | panic(err) | ||
| 252 | } | 259 | } | ||
| 253 | 260 | ||||
| 261 | + | core.PuregoSafeRegister(&xNetworkAddressGLibType, lib, "g_network_address_get_type") | |||
| 262 | + | ||||
| 254 | core.PuregoSafeRegister(&xNewNetworkAddress, lib, "g_network_address_new") | 263 | core.PuregoSafeRegister(&xNewNetworkAddress, lib, "g_network_address_new") | ||
| 255 | core.PuregoSafeRegister(&xNewNetworkAddressLoopback, lib, "g_network_address_new_loopback") | 264 | core.PuregoSafeRegister(&xNewNetworkAddressLoopback, lib, "g_network_address_new_loopback") | ||
| 256 | 265 | ||||
M v4/gio/gnetworking.go +1 -0
| @@ -23,6 +23,7 @@ func init() { | |||||
| 23 | if err != nil { | 23 | if err != nil { | ||
| 24 | panic(err) | 24 | panic(err) | ||
| 25 | } | 25 | } | ||
| 26 | + | ||||
| 26 | core.PuregoSafeRegister(&xNetworkingInit, lib, "g_networking_init") | 27 | core.PuregoSafeRegister(&xNetworkingInit, lib, "g_networking_init") | ||
| 27 | 28 | ||||
| 28 | } | 29 | } | ||
M v4/gio/gnetworkmonitor.go +11 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | // The virtual function table for #GNetworkMonitor. | 14 | // The virtual function table for #GNetworkMonitor. | ||
| @@ -35,6 +36,13 @@ type NetworkMonitor interface { | |||||
| 35 | GetNetworkAvailable() bool | 36 | GetNetworkAvailable() bool | ||
| 36 | GetNetworkMetered() bool | 37 | GetNetworkMetered() bool | ||
| 37 | } | 38 | } | ||
| 39 | + | ||||
| 40 | + | var xNetworkMonitorGLibType func() types.GType | |||
| 41 | + | ||||
| 42 | + | func NetworkMonitorGLibType() types.GType { | |||
| 43 | + | return xNetworkMonitorGLibType() | |||
| 44 | + | } | |||
| 45 | + | ||||
| 38 | type NetworkMonitorBase struct { | 46 | type NetworkMonitorBase struct { | ||
| 39 | Ptr uintptr | 47 | Ptr uintptr | ||
| 40 | } | 48 | } | ||
| @@ -181,8 +189,11 @@ func init() { | |||||
| 181 | if err != nil { | 189 | if err != nil { | ||
| 182 | panic(err) | 190 | panic(err) | ||
| 183 | } | 191 | } | ||
| 192 | + | ||||
| 184 | core.PuregoSafeRegister(&xNetworkMonitorGetDefault, lib, "g_network_monitor_get_default") | 193 | core.PuregoSafeRegister(&xNetworkMonitorGetDefault, lib, "g_network_monitor_get_default") | ||
| 185 | 194 | ||||
| 195 | + | core.PuregoSafeRegister(&xNetworkMonitorGLibType, lib, "g_network_monitor_get_type") | |||
| 196 | + | ||||
| 186 | core.PuregoSafeRegister(&XGNetworkMonitorCanReach, lib, "g_network_monitor_can_reach") | 197 | core.PuregoSafeRegister(&XGNetworkMonitorCanReach, lib, "g_network_monitor_can_reach") | ||
| 187 | core.PuregoSafeRegister(&XGNetworkMonitorCanReachAsync, lib, "g_network_monitor_can_reach_async") | 198 | core.PuregoSafeRegister(&XGNetworkMonitorCanReachAsync, lib, "g_network_monitor_can_reach_async") | ||
| 188 | core.PuregoSafeRegister(&XGNetworkMonitorCanReachFinish, lib, "g_network_monitor_can_reach_finish") | 199 | core.PuregoSafeRegister(&XGNetworkMonitorCanReachFinish, lib, "g_network_monitor_can_reach_finish") | ||
M v4/gio/gnetworkservice.go +9 -0
| @@ -7,6 +7,7 @@ import ( | |||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 10 | ) | 11 | ) | ||
| 11 | 12 | ||||
| 12 | type NetworkServiceClass struct { | 13 | type NetworkServiceClass struct { | ||
| @@ -37,6 +38,12 @@ type NetworkService struct { | |||||
| 37 | gobject.Object | 38 | gobject.Object | ||
| 38 | } | 39 | } | ||
| 39 | 40 | ||||
| 41 | + | var xNetworkServiceGLibType func() types.GType | |||
| 42 | + | ||||
| 43 | + | func NetworkServiceGLibType() types.GType { | |||
| 44 | + | return xNetworkServiceGLibType() | |||
| 45 | + | } | |||
| 46 | + | ||||
| 40 | func NetworkServiceNewFromInternalPtr(ptr uintptr) *NetworkService { | 47 | func NetworkServiceNewFromInternalPtr(ptr uintptr) *NetworkService { | ||
| 41 | cls := &NetworkService{} | 48 | cls := &NetworkService{} | ||
| 42 | cls.Ptr = ptr | 49 | cls.Ptr = ptr | ||
| @@ -170,6 +177,8 @@ func init() { | |||||
| 170 | panic(err) | 177 | panic(err) | ||
| 171 | } | 178 | } | ||
| 172 | 179 | ||||
| 180 | + | core.PuregoSafeRegister(&xNetworkServiceGLibType, lib, "g_network_service_get_type") | |||
| 181 | + | ||||
| 173 | core.PuregoSafeRegister(&xNewNetworkService, lib, "g_network_service_new") | 182 | core.PuregoSafeRegister(&xNewNetworkService, lib, "g_network_service_new") | ||
| 174 | 183 | ||||
| 175 | core.PuregoSafeRegister(&xNetworkServiceGetDomain, lib, "g_network_service_get_domain") | 184 | core.PuregoSafeRegister(&xNetworkServiceGetDomain, lib, "g_network_service_get_domain") | ||
M v4/gio/goutputstream.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | type OutputStreamClass struct { | 14 | type OutputStreamClass struct { | ||
| @@ -40,6 +41,12 @@ type OutputStream struct { | |||||
| 40 | gobject.Object | 41 | gobject.Object | ||
| 41 | } | 42 | } | ||
| 42 | 43 | ||||
| 44 | + | var xOutputStreamGLibType func() types.GType | |||
| 45 | + | ||||
| 46 | + | func OutputStreamGLibType() types.GType { | |||
| 47 | + | return xOutputStreamGLibType() | |||
| 48 | + | } | |||
| 49 | + | ||||
| 43 | func OutputStreamNewFromInternalPtr(ptr uintptr) *OutputStream { | 50 | func OutputStreamNewFromInternalPtr(ptr uintptr) *OutputStream { | ||
| 44 | cls := &OutputStream{} | 51 | cls := &OutputStream{} | ||
| 45 | cls.Ptr = ptr | 52 | cls.Ptr = ptr | ||
| @@ -720,6 +727,8 @@ func init() { | |||||
| 720 | panic(err) | 727 | panic(err) | ||
| 721 | } | 728 | } | ||
| 722 | 729 | ||||
| 730 | + | core.PuregoSafeRegister(&xOutputStreamGLibType, lib, "g_output_stream_get_type") | |||
| 731 | + | ||||
| 723 | core.PuregoSafeRegister(&xOutputStreamClearPending, lib, "g_output_stream_clear_pending") | 732 | core.PuregoSafeRegister(&xOutputStreamClearPending, lib, "g_output_stream_clear_pending") | ||
| 724 | core.PuregoSafeRegister(&xOutputStreamClose, lib, "g_output_stream_close") | 733 | core.PuregoSafeRegister(&xOutputStreamClose, lib, "g_output_stream_close") | ||
| 725 | core.PuregoSafeRegister(&xOutputStreamCloseAsync, lib, "g_output_stream_close_async") | 734 | core.PuregoSafeRegister(&xOutputStreamCloseAsync, lib, "g_output_stream_close_async") | ||
M v4/gio/gpermission.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | type PermissionClass struct { | 14 | type PermissionClass struct { | ||
| @@ -46,6 +47,12 @@ type Permission struct { | |||||
| 46 | gobject.Object | 47 | gobject.Object | ||
| 47 | } | 48 | } | ||
| 48 | 49 | ||||
| 50 | + | var xPermissionGLibType func() types.GType | |||
| 51 | + | ||||
| 52 | + | func PermissionGLibType() types.GType { | |||
| 53 | + | return xPermissionGLibType() | |||
| 54 | + | } | |||
| 55 | + | ||||
| 49 | func PermissionNewFromInternalPtr(ptr uintptr) *Permission { | 56 | func PermissionNewFromInternalPtr(ptr uintptr) *Permission { | ||
| 50 | cls := &Permission{} | 57 | cls := &Permission{} | ||
| 51 | cls.Ptr = ptr | 58 | cls.Ptr = ptr | ||
| @@ -228,6 +235,8 @@ func init() { | |||||
| 228 | panic(err) | 235 | panic(err) | ||
| 229 | } | 236 | } | ||
| 230 | 237 | ||||
| 238 | + | core.PuregoSafeRegister(&xPermissionGLibType, lib, "g_permission_get_type") | |||
| 239 | + | ||||
| 231 | core.PuregoSafeRegister(&xPermissionAcquire, lib, "g_permission_acquire") | 240 | core.PuregoSafeRegister(&xPermissionAcquire, lib, "g_permission_acquire") | ||
| 232 | core.PuregoSafeRegister(&xPermissionAcquireAsync, lib, "g_permission_acquire_async") | 241 | core.PuregoSafeRegister(&xPermissionAcquireAsync, lib, "g_permission_acquire_async") | ||
| 233 | core.PuregoSafeRegister(&xPermissionAcquireFinish, lib, "g_permission_acquire_finish") | 242 | core.PuregoSafeRegister(&xPermissionAcquireFinish, lib, "g_permission_acquire_finish") | ||
M v4/gio/gpollableinputstream.go +10 -0
| @@ -7,6 +7,7 @@ import ( | |||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 10 | ) | 11 | ) | ||
| 11 | 12 | ||||
| 12 | // The interface for pollable input streams. | 13 | // The interface for pollable input streams. | ||
| @@ -39,6 +40,13 @@ type PollableInputStream interface { | |||||
| 39 | IsReadable() bool | 40 | IsReadable() bool | ||
| 40 | ReadNonblocking(BufferVar []byte, CountVar uint, CancellableVar *Cancellable) int | 41 | ReadNonblocking(BufferVar []byte, CountVar uint, CancellableVar *Cancellable) int | ||
| 41 | } | 42 | } | ||
| 43 | + | ||||
| 44 | + | var xPollableInputStreamGLibType func() types.GType | |||
| 45 | + | ||||
| 46 | + | func PollableInputStreamGLibType() types.GType { | |||
| 47 | + | return xPollableInputStreamGLibType() | |||
| 48 | + | } | |||
| 49 | + | ||||
| 42 | type PollableInputStreamBase struct { | 50 | type PollableInputStreamBase struct { | ||
| 43 | Ptr uintptr | 51 | Ptr uintptr | ||
| 44 | } | 52 | } | ||
| @@ -125,6 +133,8 @@ func init() { | |||||
| 125 | panic(err) | 133 | panic(err) | ||
| 126 | } | 134 | } | ||
| 127 | 135 | ||||
| 136 | + | core.PuregoSafeRegister(&xPollableInputStreamGLibType, lib, "g_pollable_input_stream_get_type") | |||
| 137 | + | ||||
| 128 | core.PuregoSafeRegister(&XGPollableInputStreamCanPoll, lib, "g_pollable_input_stream_can_poll") | 138 | core.PuregoSafeRegister(&XGPollableInputStreamCanPoll, lib, "g_pollable_input_stream_can_poll") | ||
| 129 | core.PuregoSafeRegister(&XGPollableInputStreamCreateSource, lib, "g_pollable_input_stream_create_source") | 139 | core.PuregoSafeRegister(&XGPollableInputStreamCreateSource, lib, "g_pollable_input_stream_create_source") | ||
| 130 | core.PuregoSafeRegister(&XGPollableInputStreamIsReadable, lib, "g_pollable_input_stream_is_readable") | 140 | core.PuregoSafeRegister(&XGPollableInputStreamIsReadable, lib, "g_pollable_input_stream_is_readable") | ||
M v4/gio/gpollableoutputstream.go +10 -0
| @@ -7,6 +7,7 @@ import ( | |||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 10 | ) | 11 | ) | ||
| 11 | 12 | ||||
| 12 | // The interface for pollable output streams. | 13 | // The interface for pollable output streams. | ||
| @@ -46,6 +47,13 @@ type PollableOutputStream interface { | |||||
| 46 | WriteNonblocking(BufferVar []byte, CountVar uint, CancellableVar *Cancellable) int | 47 | WriteNonblocking(BufferVar []byte, CountVar uint, CancellableVar *Cancellable) int | ||
| 47 | WritevNonblocking(VectorsVar []OutputVector, NVectorsVar uint, BytesWrittenVar uint, CancellableVar *Cancellable) PollableReturn | 48 | WritevNonblocking(VectorsVar []OutputVector, NVectorsVar uint, BytesWrittenVar uint, CancellableVar *Cancellable) PollableReturn | ||
| 48 | } | 49 | } | ||
| 50 | + | ||||
| 51 | + | var xPollableOutputStreamGLibType func() types.GType | |||
| 52 | + | ||||
| 53 | + | func PollableOutputStreamGLibType() types.GType { | |||
| 54 | + | return xPollableOutputStreamGLibType() | |||
| 55 | + | } | |||
| 56 | + | ||||
| 49 | type PollableOutputStreamBase struct { | 57 | type PollableOutputStreamBase struct { | ||
| 50 | Ptr uintptr | 58 | Ptr uintptr | ||
| 51 | } | 59 | } | ||
| @@ -164,6 +172,8 @@ func init() { | |||||
| 164 | panic(err) | 172 | panic(err) | ||
| 165 | } | 173 | } | ||
| 166 | 174 | ||||
| 175 | + | core.PuregoSafeRegister(&xPollableOutputStreamGLibType, lib, "g_pollable_output_stream_get_type") | |||
| 176 | + | ||||
| 167 | core.PuregoSafeRegister(&XGPollableOutputStreamCanPoll, lib, "g_pollable_output_stream_can_poll") | 177 | core.PuregoSafeRegister(&XGPollableOutputStreamCanPoll, lib, "g_pollable_output_stream_can_poll") | ||
| 168 | core.PuregoSafeRegister(&XGPollableOutputStreamCreateSource, lib, "g_pollable_output_stream_create_source") | 178 | core.PuregoSafeRegister(&XGPollableOutputStreamCreateSource, lib, "g_pollable_output_stream_create_source") | ||
| 169 | core.PuregoSafeRegister(&XGPollableOutputStreamIsWritable, lib, "g_pollable_output_stream_is_writable") | 179 | core.PuregoSafeRegister(&XGPollableOutputStreamIsWritable, lib, "g_pollable_output_stream_is_writable") | ||
M v4/gio/gpollableutils.go +1 -0
| @@ -114,6 +114,7 @@ func init() { | |||||
| 114 | if err != nil { | 114 | if err != nil { | ||
| 115 | panic(err) | 115 | panic(err) | ||
| 116 | } | 116 | } | ||
| 117 | + | ||||
| 117 | core.PuregoSafeRegister(&xPollableSourceNew, lib, "g_pollable_source_new") | 118 | core.PuregoSafeRegister(&xPollableSourceNew, lib, "g_pollable_source_new") | ||
| 118 | core.PuregoSafeRegister(&xPollableSourceNewFull, lib, "g_pollable_source_new_full") | 119 | core.PuregoSafeRegister(&xPollableSourceNewFull, lib, "g_pollable_source_new_full") | ||
| 119 | core.PuregoSafeRegister(&xPollableStreamRead, lib, "g_pollable_stream_read") | 120 | core.PuregoSafeRegister(&xPollableStreamRead, lib, "g_pollable_stream_read") | ||
M v4/gio/gpowerprofilemonitor.go +11 -0
| @@ -6,6 +6,7 @@ import ( | |||||
| 6 | 6 | ||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 9 | ) | 10 | ) | ||
| 10 | 11 | ||||
| 11 | // The virtual function table for #GPowerProfileMonitor. | 12 | // The virtual function table for #GPowerProfileMonitor. | ||
| @@ -44,6 +45,13 @@ type PowerProfileMonitor interface { | |||||
| 44 | SetGoPointer(uintptr) | 45 | SetGoPointer(uintptr) | ||
| 45 | GetPowerSaverEnabled() bool | 46 | GetPowerSaverEnabled() bool | ||
| 46 | } | 47 | } | ||
| 48 | + | ||||
| 49 | + | var xPowerProfileMonitorGLibType func() types.GType | |||
| 50 | + | ||||
| 51 | + | func PowerProfileMonitorGLibType() types.GType { | |||
| 52 | + | return xPowerProfileMonitorGLibType() | |||
| 53 | + | } | |||
| 54 | + | ||||
| 47 | type PowerProfileMonitorBase struct { | 55 | type PowerProfileMonitorBase struct { | ||
| 48 | Ptr uintptr | 56 | Ptr uintptr | ||
| 49 | } | 57 | } | ||
| @@ -96,8 +104,11 @@ func init() { | |||||
| 96 | if err != nil { | 104 | if err != nil { | ||
| 97 | panic(err) | 105 | panic(err) | ||
| 98 | } | 106 | } | ||
| 107 | + | ||||
| 99 | core.PuregoSafeRegister(&xPowerProfileMonitorDupDefault, lib, "g_power_profile_monitor_dup_default") | 108 | core.PuregoSafeRegister(&xPowerProfileMonitorDupDefault, lib, "g_power_profile_monitor_dup_default") | ||
| 100 | 109 | ||||
| 110 | + | core.PuregoSafeRegister(&xPowerProfileMonitorGLibType, lib, "g_power_profile_monitor_get_type") | |||
| 111 | + | ||||
| 101 | core.PuregoSafeRegister(&XGPowerProfileMonitorGetPowerSaverEnabled, lib, "g_power_profile_monitor_get_power_saver_enabled") | 112 | core.PuregoSafeRegister(&XGPowerProfileMonitorGetPowerSaverEnabled, lib, "g_power_profile_monitor_get_power_saver_enabled") | ||
| 102 | 113 | ||||
| 103 | } | 114 | } | ||
M v4/gio/gproxy.go +11 -0
| @@ -7,6 +7,7 @@ import ( | |||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 10 | ) | 11 | ) | ||
| 11 | 12 | ||||
| 12 | // Provides an interface for handling proxy connection and payload. | 13 | // Provides an interface for handling proxy connection and payload. | ||
| @@ -32,6 +33,13 @@ type Proxy interface { | |||||
| 32 | ConnectFinish(ResultVar AsyncResult) *IOStream | 33 | ConnectFinish(ResultVar AsyncResult) *IOStream | ||
| 33 | SupportsHostname() bool | 34 | SupportsHostname() bool | ||
| 34 | } | 35 | } | ||
| 36 | + | ||||
| 37 | + | var xProxyGLibType func() types.GType | |||
| 38 | + | ||||
| 39 | + | func ProxyGLibType() types.GType { | |||
| 40 | + | return xProxyGLibType() | |||
| 41 | + | } | |||
| 42 | + | ||||
| 35 | type ProxyBase struct { | 43 | type ProxyBase struct { | ||
| 36 | Ptr uintptr | 44 | Ptr uintptr | ||
| 37 | } | 45 | } | ||
| @@ -138,8 +146,11 @@ func init() { | |||||
| 138 | if err != nil { | 146 | if err != nil { | ||
| 139 | panic(err) | 147 | panic(err) | ||
| 140 | } | 148 | } | ||
| 149 | + | ||||
| 141 | core.PuregoSafeRegister(&xProxyGetDefaultForProtocol, lib, "g_proxy_get_default_for_protocol") | 150 | core.PuregoSafeRegister(&xProxyGetDefaultForProtocol, lib, "g_proxy_get_default_for_protocol") | ||
| 142 | 151 | ||||
| 152 | + | core.PuregoSafeRegister(&xProxyGLibType, lib, "g_proxy_get_type") | |||
| 153 | + | ||||
| 143 | core.PuregoSafeRegister(&XGProxyConnect, lib, "g_proxy_connect") | 154 | core.PuregoSafeRegister(&XGProxyConnect, lib, "g_proxy_connect") | ||
| 144 | core.PuregoSafeRegister(&XGProxyConnectAsync, lib, "g_proxy_connect_async") | 155 | core.PuregoSafeRegister(&XGProxyConnectAsync, lib, "g_proxy_connect_async") | ||
| 145 | core.PuregoSafeRegister(&XGProxyConnectFinish, lib, "g_proxy_connect_finish") | 156 | core.PuregoSafeRegister(&XGProxyConnectFinish, lib, "g_proxy_connect_finish") | ||
M v4/gio/gproxyaddress.go +9 -0
| @@ -6,6 +6,7 @@ import ( | |||||
| 6 | 6 | ||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 9 | ) | 10 | ) | ||
| 10 | 11 | ||||
| 11 | // Class structure for #GProxyAddress. | 12 | // Class structure for #GProxyAddress. | ||
| @@ -29,6 +30,12 @@ type ProxyAddress struct { | |||||
| 29 | InetSocketAddress | 30 | InetSocketAddress | ||
| 30 | } | 31 | } | ||
| 31 | 32 | ||||
| 33 | + | var xProxyAddressGLibType func() types.GType | |||
| 34 | + | ||||
| 35 | + | func ProxyAddressGLibType() types.GType { | |||
| 36 | + | return xProxyAddressGLibType() | |||
| 37 | + | } | |||
| 38 | + | ||||
| 32 | func ProxyAddressNewFromInternalPtr(ptr uintptr) *ProxyAddress { | 39 | func ProxyAddressNewFromInternalPtr(ptr uintptr) *ProxyAddress { | ||
| 33 | cls := &ProxyAddress{} | 40 | cls := &ProxyAddress{} | ||
| 34 | cls.Ptr = ptr | 41 | cls.Ptr = ptr | ||
| @@ -185,6 +192,8 @@ func init() { | |||||
| 185 | panic(err) | 192 | panic(err) | ||
| 186 | } | 193 | } | ||
| 187 | 194 | ||||
| 195 | + | core.PuregoSafeRegister(&xProxyAddressGLibType, lib, "g_proxy_address_get_type") | |||
| 196 | + | ||||
| 188 | core.PuregoSafeRegister(&xNewProxyAddress, lib, "g_proxy_address_new") | 197 | core.PuregoSafeRegister(&xNewProxyAddress, lib, "g_proxy_address_new") | ||
| 189 | 198 | ||||
| 190 | core.PuregoSafeRegister(&xProxyAddressGetDestinationHostname, lib, "g_proxy_address_get_destination_hostname") | 199 | core.PuregoSafeRegister(&xProxyAddressGetDestinationHostname, lib, "g_proxy_address_get_destination_hostname") | ||
M v4/gio/gproxyaddressenumerator.go +11 -1
| @@ -1,7 +1,11 @@ | |||||
| 1 | // Package gio was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT | 1 | // Package gio was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT | ||
| 2 | package gio | 2 | package gio | ||
| 3 | 3 | ||||
| 4 | - | import "unsafe" | 4 | + | import ( |
| 5 | + | "unsafe" | |||
| 6 | + | ||||
| 7 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 8 | + | ) | |||
| 5 | 9 | ||||
| 6 | // Class structure for #GProxyAddressEnumerator. | 10 | // Class structure for #GProxyAddressEnumerator. | ||
| 7 | type ProxyAddressEnumeratorClass struct { | 11 | type ProxyAddressEnumeratorClass struct { | ||
| @@ -32,6 +36,12 @@ type ProxyAddressEnumerator struct { | |||||
| 32 | SocketAddressEnumerator | 36 | SocketAddressEnumerator | ||
| 33 | } | 37 | } | ||
| 34 | 38 | ||||
| 39 | + | var xProxyAddressEnumeratorGLibType func() types.GType | |||
| 40 | + | ||||
| 41 | + | func ProxyAddressEnumeratorGLibType() types.GType { | |||
| 42 | + | return xProxyAddressEnumeratorGLibType() | |||
| 43 | + | } | |||
| 44 | + | ||||
| 35 | func ProxyAddressEnumeratorNewFromInternalPtr(ptr uintptr) *ProxyAddressEnumerator { | 45 | func ProxyAddressEnumeratorNewFromInternalPtr(ptr uintptr) *ProxyAddressEnumerator { | ||
| 36 | cls := &ProxyAddressEnumerator{} | 46 | cls := &ProxyAddressEnumerator{} | ||
| 37 | cls.Ptr = ptr | 47 | cls.Ptr = ptr | ||
M v4/gio/gproxyresolver.go +11 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | // The virtual function table for #GProxyResolver. | 14 | // The virtual function table for #GProxyResolver. | ||
| @@ -34,6 +35,13 @@ type ProxyResolver interface { | |||||
| 34 | LookupAsync(UriVar string, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) | 35 | LookupAsync(UriVar string, CancellableVar *Cancellable, CallbackVar *AsyncReadyCallback, UserDataVar uintptr) | ||
| 35 | LookupFinish(ResultVar AsyncResult) []string | 36 | LookupFinish(ResultVar AsyncResult) []string | ||
| 36 | } | 37 | } | ||
| 38 | + | ||||
| 39 | + | var xProxyResolverGLibType func() types.GType | |||
| 40 | + | ||||
| 41 | + | func ProxyResolverGLibType() types.GType { | |||
| 42 | + | return xProxyResolverGLibType() | |||
| 43 | + | } | |||
| 44 | + | ||||
| 37 | type ProxyResolverBase struct { | 45 | type ProxyResolverBase struct { | ||
| 38 | Ptr uintptr | 46 | Ptr uintptr | ||
| 39 | } | 47 | } | ||
| @@ -136,8 +144,11 @@ func init() { | |||||
| 136 | if err != nil { | 144 | if err != nil { | ||
| 137 | panic(err) | 145 | panic(err) | ||
| 138 | } | 146 | } | ||
| 147 | + | ||||
| 139 | core.PuregoSafeRegister(&xProxyResolverGetDefault, lib, "g_proxy_resolver_get_default") | 148 | core.PuregoSafeRegister(&xProxyResolverGetDefault, lib, "g_proxy_resolver_get_default") | ||
| 140 | 149 | ||||
| 150 | + | core.PuregoSafeRegister(&xProxyResolverGLibType, lib, "g_proxy_resolver_get_type") | |||
| 151 | + | ||||
| 141 | core.PuregoSafeRegister(&XGProxyResolverIsSupported, lib, "g_proxy_resolver_is_supported") | 152 | core.PuregoSafeRegister(&XGProxyResolverIsSupported, lib, "g_proxy_resolver_is_supported") | ||
| 142 | core.PuregoSafeRegister(&XGProxyResolverLookup, lib, "g_proxy_resolver_lookup") | 153 | core.PuregoSafeRegister(&XGProxyResolverLookup, lib, "g_proxy_resolver_lookup") | ||
| 143 | core.PuregoSafeRegister(&XGProxyResolverLookupAsync, lib, "g_proxy_resolver_lookup_async") | 154 | core.PuregoSafeRegister(&XGProxyResolverLookupAsync, lib, "g_proxy_resolver_lookup_async") | ||
M v4/gio/gremoteactiongroup.go +10 -0
| @@ -7,6 +7,7 @@ import ( | |||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 10 | ) | 11 | ) | ||
| 11 | 12 | ||||
| 12 | // The virtual function table for #GRemoteActionGroup. | 13 | // The virtual function table for #GRemoteActionGroup. | ||
| @@ -45,6 +46,13 @@ type RemoteActionGroup interface { | |||||
| 45 | ActivateActionFull(ActionNameVar string, ParameterVar *glib.Variant, PlatformDataVar *glib.Variant) | 46 | ActivateActionFull(ActionNameVar string, ParameterVar *glib.Variant, PlatformDataVar *glib.Variant) | ||
| 46 | ChangeActionStateFull(ActionNameVar string, ValueVar *glib.Variant, PlatformDataVar *glib.Variant) | 47 | ChangeActionStateFull(ActionNameVar string, ValueVar *glib.Variant, PlatformDataVar *glib.Variant) | ||
| 47 | } | 48 | } | ||
| 49 | + | ||||
| 50 | + | var xRemoteActionGroupGLibType func() types.GType | |||
| 51 | + | ||||
| 52 | + | func RemoteActionGroupGLibType() types.GType { | |||
| 53 | + | return xRemoteActionGroupGLibType() | |||
| 54 | + | } | |||
| 55 | + | ||||
| 48 | type RemoteActionGroupBase struct { | 56 | type RemoteActionGroupBase struct { | ||
| 49 | Ptr uintptr | 57 | Ptr uintptr | ||
| 50 | } | 58 | } | ||
| @@ -96,6 +104,8 @@ func init() { | |||||
| 96 | panic(err) | 104 | panic(err) | ||
| 97 | } | 105 | } | ||
| 98 | 106 | ||||
| 107 | + | core.PuregoSafeRegister(&xRemoteActionGroupGLibType, lib, "g_remote_action_group_get_type") | |||
| 108 | + | ||||
| 99 | core.PuregoSafeRegister(&XGRemoteActionGroupActivateActionFull, lib, "g_remote_action_group_activate_action_full") | 109 | core.PuregoSafeRegister(&XGRemoteActionGroupActivateActionFull, lib, "g_remote_action_group_activate_action_full") | ||
| 100 | core.PuregoSafeRegister(&XGRemoteActionGroupChangeActionStateFull, lib, "g_remote_action_group_change_action_state_full") | 110 | core.PuregoSafeRegister(&XGRemoteActionGroupChangeActionStateFull, lib, "g_remote_action_group_change_action_state_full") | ||
| 101 | 111 | ||||
M v4/gio/gresolver.go +17 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | type ResolverClass struct { | 14 | type ResolverClass struct { | ||
| @@ -28,6 +29,12 @@ func (x *ResolverPrivate) GoPointer() uintptr { | |||||
| 28 | // Flags to modify lookup behavior. | 29 | // Flags to modify lookup behavior. | ||
| 29 | type ResolverNameLookupFlags int | 30 | type ResolverNameLookupFlags int | ||
| 30 | 31 | ||||
| 32 | + | var xResolverNameLookupFlagsGLibType func() types.GType | |||
| 33 | + | ||||
| 34 | + | func ResolverNameLookupFlagsGLibType() types.GType { | |||
| 35 | + | return xResolverNameLookupFlagsGLibType() | |||
| 36 | + | } | |||
| 37 | + | ||||
| 31 | const ( | 38 | const ( | ||
| 32 | 39 | ||||
| 33 | // default behavior (same as g_resolver_lookup_by_name()) | 40 | // default behavior (same as g_resolver_lookup_by_name()) | ||
| @@ -50,6 +57,12 @@ type Resolver struct { | |||||
| 50 | gobject.Object | 57 | gobject.Object | ||
| 51 | } | 58 | } | ||
| 52 | 59 | ||||
| 60 | + | var xResolverGLibType func() types.GType | |||
| 61 | + | ||||
| 62 | + | func ResolverGLibType() types.GType { | |||
| 63 | + | return xResolverGLibType() | |||
| 64 | + | } | |||
| 65 | + | ||||
| 53 | func ResolverNewFromInternalPtr(ptr uintptr) *Resolver { | 66 | func ResolverNewFromInternalPtr(ptr uintptr) *Resolver { | ||
| 54 | cls := &Resolver{} | 67 | cls := &Resolver{} | ||
| 55 | cls.Ptr = ptr | 68 | cls.Ptr = ptr | ||
| @@ -438,6 +451,10 @@ func init() { | |||||
| 438 | panic(err) | 451 | panic(err) | ||
| 439 | } | 452 | } | ||
| 440 | 453 | ||||
| 454 | + | core.PuregoSafeRegister(&xResolverNameLookupFlagsGLibType, lib, "g_resolver_name_lookup_flags_get_type") | |||
| 455 | + | ||||
| 456 | + | core.PuregoSafeRegister(&xResolverGLibType, lib, "g_resolver_get_type") | |||
| 457 | + | ||||
| 441 | core.PuregoSafeRegister(&xResolverLookupByAddress, lib, "g_resolver_lookup_by_address") | 458 | core.PuregoSafeRegister(&xResolverLookupByAddress, lib, "g_resolver_lookup_by_address") | ||
| 442 | core.PuregoSafeRegister(&xResolverLookupByAddressAsync, lib, "g_resolver_lookup_by_address_async") | 459 | core.PuregoSafeRegister(&xResolverLookupByAddressAsync, lib, "g_resolver_lookup_by_address_async") | ||
| 443 | core.PuregoSafeRegister(&xResolverLookupByAddressFinish, lib, "g_resolver_lookup_by_address_finish") | 460 | core.PuregoSafeRegister(&xResolverLookupByAddressFinish, lib, "g_resolver_lookup_by_address_finish") | ||
M v4/gio/gresource.go +1 -0
| @@ -203,6 +203,7 @@ func init() { | |||||
| 203 | if err != nil { | 203 | if err != nil { | ||
| 204 | panic(err) | 204 | panic(err) | ||
| 205 | } | 205 | } | ||
| 206 | + | ||||
| 206 | core.PuregoSafeRegister(&xResourceLoad, lib, "g_resource_load") | 207 | core.PuregoSafeRegister(&xResourceLoad, lib, "g_resource_load") | ||
| 207 | core.PuregoSafeRegister(&xResourcesEnumerateChildren, lib, "g_resources_enumerate_children") | 208 | core.PuregoSafeRegister(&xResourcesEnumerateChildren, lib, "g_resources_enumerate_children") | ||
| 208 | core.PuregoSafeRegister(&xResourcesGetInfo, lib, "g_resources_get_info") | 209 | core.PuregoSafeRegister(&xResourcesGetInfo, lib, "g_resources_get_info") | ||
M v4/gio/gseekable.go +10 -0
| @@ -7,6 +7,7 @@ import ( | |||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 10 | ) | 11 | ) | ||
| 11 | 12 | ||||
| 12 | // Provides an interface for implementing seekable functionality on I/O Streams. | 13 | // Provides an interface for implementing seekable functionality on I/O Streams. | ||
| @@ -41,6 +42,13 @@ type Seekable interface { | |||||
| 41 | Tell() int64 | 42 | Tell() int64 | ||
| 42 | Truncate(OffsetVar int64, CancellableVar *Cancellable) bool | 43 | Truncate(OffsetVar int64, CancellableVar *Cancellable) bool | ||
| 43 | } | 44 | } | ||
| 45 | + | ||||
| 46 | + | var xSeekableGLibType func() types.GType | |||
| 47 | + | ||||
| 48 | + | func SeekableGLibType() types.GType { | |||
| 49 | + | return xSeekableGLibType() | |||
| 50 | + | } | |||
| 51 | + | ||||
| 44 | type SeekableBase struct { | 52 | type SeekableBase struct { | ||
| 45 | Ptr uintptr | 53 | Ptr uintptr | ||
| 46 | } | 54 | } | ||
| @@ -132,6 +140,8 @@ func init() { | |||||
| 132 | panic(err) | 140 | panic(err) | ||
| 133 | } | 141 | } | ||
| 134 | 142 | ||||
| 143 | + | core.PuregoSafeRegister(&xSeekableGLibType, lib, "g_seekable_get_type") | |||
| 144 | + | ||||
| 135 | core.PuregoSafeRegister(&XGSeekableCanSeek, lib, "g_seekable_can_seek") | 145 | core.PuregoSafeRegister(&XGSeekableCanSeek, lib, "g_seekable_can_seek") | ||
| 136 | core.PuregoSafeRegister(&XGSeekableCanTruncate, lib, "g_seekable_can_truncate") | 146 | core.PuregoSafeRegister(&XGSeekableCanTruncate, lib, "g_seekable_can_truncate") | ||
| 137 | core.PuregoSafeRegister(&XGSeekableSeek, lib, "g_seekable_seek") | 147 | core.PuregoSafeRegister(&XGSeekableSeek, lib, "g_seekable_seek") | ||
M v4/gio/gsettings.go +17 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | // The type for the function that is used to convert from #GSettings to | 14 | // The type for the function that is used to convert from #GSettings to | ||
| @@ -53,6 +54,12 @@ func (x *SettingsPrivate) GoPointer() uintptr { | |||||
| 53 | // directions. | 54 | // directions. | ||
| 54 | type SettingsBindFlags int | 55 | type SettingsBindFlags int | ||
| 55 | 56 | ||||
| 57 | + | var xSettingsBindFlagsGLibType func() types.GType | |||
| 58 | + | ||||
| 59 | + | func SettingsBindFlagsGLibType() types.GType { | |||
| 60 | + | return xSettingsBindFlagsGLibType() | |||
| 61 | + | } | |||
| 62 | + | ||||
| 56 | const ( | 63 | const ( | ||
| 57 | 64 | ||||
| 58 | // Equivalent to `G_SETTINGS_BIND_GET|G_SETTINGS_BIND_SET` | 65 | // Equivalent to `G_SETTINGS_BIND_GET|G_SETTINGS_BIND_SET` | ||
| @@ -374,6 +381,12 @@ type Settings struct { | |||||
| 374 | gobject.Object | 381 | gobject.Object | ||
| 375 | } | 382 | } | ||
| 376 | 383 | ||||
| 384 | + | var xSettingsGLibType func() types.GType | |||
| 385 | + | ||||
| 386 | + | func SettingsGLibType() types.GType { | |||
| 387 | + | return xSettingsGLibType() | |||
| 388 | + | } | |||
| 389 | + | ||||
| 377 | func SettingsNewFromInternalPtr(ptr uintptr) *Settings { | 390 | func SettingsNewFromInternalPtr(ptr uintptr) *Settings { | ||
| 378 | cls := &Settings{} | 391 | cls := &Settings{} | ||
| 379 | cls.Ptr = ptr | 392 | cls.Ptr = ptr | ||
| @@ -1406,6 +1419,10 @@ func init() { | |||||
| 1406 | panic(err) | 1419 | panic(err) | ||
| 1407 | } | 1420 | } | ||
| 1408 | 1421 | ||||
| 1422 | + | core.PuregoSafeRegister(&xSettingsBindFlagsGLibType, lib, "g_settings_bind_flags_get_type") | |||
| 1423 | + | ||||
| 1424 | + | core.PuregoSafeRegister(&xSettingsGLibType, lib, "g_settings_get_type") | |||
| 1425 | + | ||||
| 1409 | core.PuregoSafeRegister(&xNewSettings, lib, "g_settings_new") | 1426 | core.PuregoSafeRegister(&xNewSettings, lib, "g_settings_new") | ||
| 1410 | core.PuregoSafeRegister(&xNewSettingsFull, lib, "g_settings_new_full") | 1427 | core.PuregoSafeRegister(&xNewSettingsFull, lib, "g_settings_new_full") | ||
| 1411 | core.PuregoSafeRegister(&xNewSettingsWithBackend, lib, "g_settings_new_with_backend") | 1428 | core.PuregoSafeRegister(&xNewSettingsWithBackend, lib, "g_settings_new_with_backend") | ||
M v4/gio/gsettingsbackend.go +10 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | // Class structure for #GSettingsBackend. | 14 | // Class structure for #GSettingsBackend. | ||
| @@ -168,6 +169,12 @@ type SettingsBackend struct { | |||||
| 168 | gobject.Object | 169 | gobject.Object | ||
| 169 | } | 170 | } | ||
| 170 | 171 | ||||
| 172 | + | var xSettingsBackendGLibType func() types.GType | |||
| 173 | + | ||||
| 174 | + | func SettingsBackendGLibType() types.GType { | |||
| 175 | + | return xSettingsBackendGLibType() | |||
| 176 | + | } | |||
| 177 | + | ||||
| 171 | func SettingsBackendNewFromInternalPtr(ptr uintptr) *SettingsBackend { | 178 | func SettingsBackendNewFromInternalPtr(ptr uintptr) *SettingsBackend { | ||
| 172 | cls := &SettingsBackend{} | 179 | cls := &SettingsBackend{} | ||
| 173 | cls.Ptr = ptr | 180 | cls.Ptr = ptr | ||
| @@ -346,10 +353,13 @@ func init() { | |||||
| 346 | if err != nil { | 353 | if err != nil { | ||
| 347 | panic(err) | 354 | panic(err) | ||
| 348 | } | 355 | } | ||
| 356 | + | ||||
| 349 | core.PuregoSafeRegister(&xKeyfileSettingsBackendNew, lib, "g_keyfile_settings_backend_new") | 357 | core.PuregoSafeRegister(&xKeyfileSettingsBackendNew, lib, "g_keyfile_settings_backend_new") | ||
| 350 | core.PuregoSafeRegister(&xMemorySettingsBackendNew, lib, "g_memory_settings_backend_new") | 358 | core.PuregoSafeRegister(&xMemorySettingsBackendNew, lib, "g_memory_settings_backend_new") | ||
| 351 | core.PuregoSafeRegister(&xNullSettingsBackendNew, lib, "g_null_settings_backend_new") | 359 | core.PuregoSafeRegister(&xNullSettingsBackendNew, lib, "g_null_settings_backend_new") | ||
| 352 | 360 | ||||
| 361 | + | core.PuregoSafeRegister(&xSettingsBackendGLibType, lib, "g_settings_backend_get_type") | |||
| 362 | + | ||||
| 353 | core.PuregoSafeRegister(&xSettingsBackendChanged, lib, "g_settings_backend_changed") | 363 | core.PuregoSafeRegister(&xSettingsBackendChanged, lib, "g_settings_backend_changed") | ||
| 354 | core.PuregoSafeRegister(&xSettingsBackendChangedTree, lib, "g_settings_backend_changed_tree") | 364 | core.PuregoSafeRegister(&xSettingsBackendChangedTree, lib, "g_settings_backend_changed_tree") | ||
| 355 | core.PuregoSafeRegister(&xSettingsBackendKeysChanged, lib, "g_settings_backend_keys_changed") | 365 | core.PuregoSafeRegister(&xSettingsBackendKeysChanged, lib, "g_settings_backend_keys_changed") | ||
M v4/gio/gsettingsschema.go +26 -0
| @@ -7,6 +7,7 @@ import ( | |||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 10 | ) | 11 | ) | ||
| 11 | 12 | ||||
| 12 | // The #GSettingsSchemaSource and #GSettingsSchema APIs provide a | 13 | // The #GSettingsSchemaSource and #GSettingsSchema APIs provide a | ||
| @@ -109,6 +110,12 @@ import ( | |||||
| 109 | type SettingsSchema struct { | 110 | type SettingsSchema struct { | ||
| 110 | } | 111 | } | ||
| 111 | 112 | ||||
| 113 | + | var xSettingsSchemaGLibType func() types.GType | |||
| 114 | + | ||||
| 115 | + | func SettingsSchemaGLibType() types.GType { | |||
| 116 | + | return xSettingsSchemaGLibType() | |||
| 117 | + | } | |||
| 118 | + | ||||
| 112 | func (x *SettingsSchema) GoPointer() uintptr { | 119 | func (x *SettingsSchema) GoPointer() uintptr { | ||
| 113 | return uintptr(unsafe.Pointer(x)) | 120 | return uintptr(unsafe.Pointer(x)) | ||
| 114 | } | 121 | } | ||
| @@ -208,6 +215,12 @@ func (x *SettingsSchema) Unref() { | |||||
| 208 | type SettingsSchemaKey struct { | 215 | type SettingsSchemaKey struct { | ||
| 209 | } | 216 | } | ||
| 210 | 217 | ||||
| 218 | + | var xSettingsSchemaKeyGLibType func() types.GType | |||
| 219 | + | ||||
| 220 | + | func SettingsSchemaKeyGLibType() types.GType { | |||
| 221 | + | return xSettingsSchemaKeyGLibType() | |||
| 222 | + | } | |||
| 223 | + | ||||
| 211 | func (x *SettingsSchemaKey) GoPointer() uintptr { | 224 | func (x *SettingsSchemaKey) GoPointer() uintptr { | ||
| 212 | return uintptr(unsafe.Pointer(x)) | 225 | return uintptr(unsafe.Pointer(x)) | ||
| 213 | } | 226 | } | ||
| @@ -364,6 +377,12 @@ func (x *SettingsSchemaKey) Unref() { | |||||
| 364 | type SettingsSchemaSource struct { | 377 | type SettingsSchemaSource struct { | ||
| 365 | } | 378 | } | ||
| 366 | 379 | ||||
| 380 | + | var xSettingsSchemaSourceGLibType func() types.GType | |||
| 381 | + | ||||
| 382 | + | func SettingsSchemaSourceGLibType() types.GType { | |||
| 383 | + | return xSettingsSchemaSourceGLibType() | |||
| 384 | + | } | |||
| 385 | + | ||||
| 367 | func (x *SettingsSchemaSource) GoPointer() uintptr { | 386 | func (x *SettingsSchemaSource) GoPointer() uintptr { | ||
| 368 | return uintptr(unsafe.Pointer(x)) | 387 | return uintptr(unsafe.Pointer(x)) | ||
| 369 | } | 388 | } | ||
| @@ -494,8 +513,11 @@ func init() { | |||||
| 494 | if err != nil { | 513 | if err != nil { | ||
| 495 | panic(err) | 514 | panic(err) | ||
| 496 | } | 515 | } | ||
| 516 | + | ||||
| 497 | core.PuregoSafeRegister(&xSettingsSchemaSourceGetDefault, lib, "g_settings_schema_source_get_default") | 517 | core.PuregoSafeRegister(&xSettingsSchemaSourceGetDefault, lib, "g_settings_schema_source_get_default") | ||
| 498 | 518 | ||||
| 519 | + | core.PuregoSafeRegister(&xSettingsSchemaGLibType, lib, "g_settings_schema_get_type") | |||
| 520 | + | ||||
| 499 | core.PuregoSafeRegister(&xSettingsSchemaGetId, lib, "g_settings_schema_get_id") | 521 | core.PuregoSafeRegister(&xSettingsSchemaGetId, lib, "g_settings_schema_get_id") | ||
| 500 | core.PuregoSafeRegister(&xSettingsSchemaGetKey, lib, "g_settings_schema_get_key") | 522 | core.PuregoSafeRegister(&xSettingsSchemaGetKey, lib, "g_settings_schema_get_key") | ||
| 501 | core.PuregoSafeRegister(&xSettingsSchemaGetPath, lib, "g_settings_schema_get_path") | 523 | core.PuregoSafeRegister(&xSettingsSchemaGetPath, lib, "g_settings_schema_get_path") | ||
| @@ -505,6 +527,8 @@ func init() { | |||||
| 505 | core.PuregoSafeRegister(&xSettingsSchemaRef, lib, "g_settings_schema_ref") | 527 | core.PuregoSafeRegister(&xSettingsSchemaRef, lib, "g_settings_schema_ref") | ||
| 506 | core.PuregoSafeRegister(&xSettingsSchemaUnref, lib, "g_settings_schema_unref") | 528 | core.PuregoSafeRegister(&xSettingsSchemaUnref, lib, "g_settings_schema_unref") | ||
| 507 | 529 | ||||
| 530 | + | core.PuregoSafeRegister(&xSettingsSchemaKeyGLibType, lib, "g_settings_schema_key_get_type") | |||
| 531 | + | ||||
| 508 | core.PuregoSafeRegister(&xSettingsSchemaKeyGetDefaultValue, lib, "g_settings_schema_key_get_default_value") | 532 | core.PuregoSafeRegister(&xSettingsSchemaKeyGetDefaultValue, lib, "g_settings_schema_key_get_default_value") | ||
| 509 | core.PuregoSafeRegister(&xSettingsSchemaKeyGetDescription, lib, "g_settings_schema_key_get_description") | 533 | core.PuregoSafeRegister(&xSettingsSchemaKeyGetDescription, lib, "g_settings_schema_key_get_description") | ||
| 510 | core.PuregoSafeRegister(&xSettingsSchemaKeyGetName, lib, "g_settings_schema_key_get_name") | 534 | core.PuregoSafeRegister(&xSettingsSchemaKeyGetName, lib, "g_settings_schema_key_get_name") | ||
| @@ -515,6 +539,8 @@ func init() { | |||||
| 515 | core.PuregoSafeRegister(&xSettingsSchemaKeyRef, lib, "g_settings_schema_key_ref") | 539 | core.PuregoSafeRegister(&xSettingsSchemaKeyRef, lib, "g_settings_schema_key_ref") | ||
| 516 | core.PuregoSafeRegister(&xSettingsSchemaKeyUnref, lib, "g_settings_schema_key_unref") | 540 | core.PuregoSafeRegister(&xSettingsSchemaKeyUnref, lib, "g_settings_schema_key_unref") | ||
| 517 | 541 | ||||
| 542 | + | core.PuregoSafeRegister(&xSettingsSchemaSourceGLibType, lib, "g_settings_schema_source_get_type") | |||
| 543 | + | ||||
| 518 | core.PuregoSafeRegister(&xNewSettingsSchemaSourceFromDirectory, lib, "g_settings_schema_source_new_from_directory") | 544 | core.PuregoSafeRegister(&xNewSettingsSchemaSourceFromDirectory, lib, "g_settings_schema_source_new_from_directory") | ||
| 519 | 545 | ||||
| 520 | core.PuregoSafeRegister(&xSettingsSchemaSourceListSchemas, lib, "g_settings_schema_source_list_schemas") | 546 | core.PuregoSafeRegister(&xSettingsSchemaSourceListSchemas, lib, "g_settings_schema_source_list_schemas") | ||
M v4/gio/gsimpleactiongroup.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | type SimpleActionGroupClass struct { | 14 | type SimpleActionGroupClass struct { | ||
| @@ -33,6 +34,12 @@ type SimpleActionGroup struct { | |||||
| 33 | gobject.Object | 34 | gobject.Object | ||
| 34 | } | 35 | } | ||
| 35 | 36 | ||||
| 37 | + | var xSimpleActionGroupGLibType func() types.GType | |||
| 38 | + | ||||
| 39 | + | func SimpleActionGroupGLibType() types.GType { | |||
| 40 | + | return xSimpleActionGroupGLibType() | |||
| 41 | + | } | |||
| 42 | + | ||||
| 36 | func SimpleActionGroupNewFromInternalPtr(ptr uintptr) *SimpleActionGroup { | 43 | func SimpleActionGroupNewFromInternalPtr(ptr uintptr) *SimpleActionGroup { | ||
| 37 | cls := &SimpleActionGroup{} | 44 | cls := &SimpleActionGroup{} | ||
| 38 | cls.Ptr = ptr | 45 | cls.Ptr = ptr | ||
| @@ -441,6 +448,8 @@ func init() { | |||||
| 441 | panic(err) | 448 | panic(err) | ||
| 442 | } | 449 | } | ||
| 443 | 450 | ||||
| 451 | + | core.PuregoSafeRegister(&xSimpleActionGroupGLibType, lib, "g_simple_action_group_get_type") | |||
| 452 | + | ||||
| 444 | core.PuregoSafeRegister(&xNewSimpleActionGroup, lib, "g_simple_action_group_new") | 453 | core.PuregoSafeRegister(&xNewSimpleActionGroup, lib, "g_simple_action_group_new") | ||
| 445 | 454 | ||||
| 446 | core.PuregoSafeRegister(&xSimpleActionGroupAddEntries, lib, "g_simple_action_group_add_entries") | 455 | core.PuregoSafeRegister(&xSimpleActionGroupAddEntries, lib, "g_simple_action_group_add_entries") | ||
M v4/gio/gsimpleasyncresult.go +10 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | type SimpleAsyncResultClass struct { | 14 | type SimpleAsyncResultClass struct { | ||
| @@ -226,6 +227,12 @@ type SimpleAsyncResult struct { | |||||
| 226 | gobject.Object | 227 | gobject.Object | ||
| 227 | } | 228 | } | ||
| 228 | 229 | ||||
| 230 | + | var xSimpleAsyncResultGLibType func() types.GType | |||
| 231 | + | ||||
| 232 | + | func SimpleAsyncResultGLibType() types.GType { | |||
| 233 | + | return xSimpleAsyncResultGLibType() | |||
| 234 | + | } | |||
| 235 | + | ||||
| 229 | func SimpleAsyncResultNewFromInternalPtr(ptr uintptr) *SimpleAsyncResult { | 236 | func SimpleAsyncResultNewFromInternalPtr(ptr uintptr) *SimpleAsyncResult { | ||
| 230 | cls := &SimpleAsyncResult{} | 237 | cls := &SimpleAsyncResult{} | ||
| 231 | cls.Ptr = ptr | 238 | cls.Ptr = ptr | ||
| @@ -590,10 +597,13 @@ func init() { | |||||
| 590 | if err != nil { | 597 | if err != nil { | ||
| 591 | panic(err) | 598 | panic(err) | ||
| 592 | } | 599 | } | ||
| 600 | + | ||||
| 593 | core.PuregoSafeRegister(&xSimpleAsyncReportErrorInIdle, lib, "g_simple_async_report_error_in_idle") | 601 | core.PuregoSafeRegister(&xSimpleAsyncReportErrorInIdle, lib, "g_simple_async_report_error_in_idle") | ||
| 594 | core.PuregoSafeRegister(&xSimpleAsyncReportGerrorInIdle, lib, "g_simple_async_report_gerror_in_idle") | 602 | core.PuregoSafeRegister(&xSimpleAsyncReportGerrorInIdle, lib, "g_simple_async_report_gerror_in_idle") | ||
| 595 | core.PuregoSafeRegister(&xSimpleAsyncReportTakeGerrorInIdle, lib, "g_simple_async_report_take_gerror_in_idle") | 603 | core.PuregoSafeRegister(&xSimpleAsyncReportTakeGerrorInIdle, lib, "g_simple_async_report_take_gerror_in_idle") | ||
| 596 | 604 | ||||
| 605 | + | core.PuregoSafeRegister(&xSimpleAsyncResultGLibType, lib, "g_simple_async_result_get_type") | |||
| 606 | + | ||||
| 597 | core.PuregoSafeRegister(&xNewSimpleAsyncResult, lib, "g_simple_async_result_new") | 607 | core.PuregoSafeRegister(&xNewSimpleAsyncResult, lib, "g_simple_async_result_new") | ||
| 598 | core.PuregoSafeRegister(&xNewSimpleAsyncResultError, lib, "g_simple_async_result_new_error") | 608 | core.PuregoSafeRegister(&xNewSimpleAsyncResultError, lib, "g_simple_async_result_new_error") | ||
| 599 | core.PuregoSafeRegister(&xNewSimpleAsyncResultFromError, lib, "g_simple_async_result_new_from_error") | 609 | core.PuregoSafeRegister(&xNewSimpleAsyncResultFromError, lib, "g_simple_async_result_new_from_error") | ||
M v4/gio/gsimpleproxyresolver.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | type SimpleProxyResolverClass struct { | 14 | type SimpleProxyResolverClass struct { | ||
| @@ -37,6 +38,12 @@ type SimpleProxyResolver struct { | |||||
| 37 | gobject.Object | 38 | gobject.Object | ||
| 38 | } | 39 | } | ||
| 39 | 40 | ||||
| 41 | + | var xSimpleProxyResolverGLibType func() types.GType | |||
| 42 | + | ||||
| 43 | + | func SimpleProxyResolverGLibType() types.GType { | |||
| 44 | + | return xSimpleProxyResolverGLibType() | |||
| 45 | + | } | |||
| 46 | + | ||||
| 40 | func SimpleProxyResolverNewFromInternalPtr(ptr uintptr) *SimpleProxyResolver { | 47 | func SimpleProxyResolverNewFromInternalPtr(ptr uintptr) *SimpleProxyResolver { | ||
| 41 | cls := &SimpleProxyResolver{} | 48 | cls := &SimpleProxyResolver{} | ||
| 42 | cls.Ptr = ptr | 49 | cls.Ptr = ptr | ||
| @@ -176,6 +183,8 @@ func init() { | |||||
| 176 | panic(err) | 183 | panic(err) | ||
| 177 | } | 184 | } | ||
| 178 | 185 | ||||
| 186 | + | core.PuregoSafeRegister(&xSimpleProxyResolverGLibType, lib, "g_simple_proxy_resolver_get_type") | |||
| 187 | + | ||||
| 179 | core.PuregoSafeRegister(&xSimpleProxyResolverSetDefaultProxy, lib, "g_simple_proxy_resolver_set_default_proxy") | 188 | core.PuregoSafeRegister(&xSimpleProxyResolverSetDefaultProxy, lib, "g_simple_proxy_resolver_set_default_proxy") | ||
| 180 | core.PuregoSafeRegister(&xSimpleProxyResolverSetIgnoreHosts, lib, "g_simple_proxy_resolver_set_ignore_hosts") | 189 | core.PuregoSafeRegister(&xSimpleProxyResolverSetIgnoreHosts, lib, "g_simple_proxy_resolver_set_ignore_hosts") | ||
| 181 | core.PuregoSafeRegister(&xSimpleProxyResolverSetUriProxy, lib, "g_simple_proxy_resolver_set_uri_proxy") | 190 | core.PuregoSafeRegister(&xSimpleProxyResolverSetUriProxy, lib, "g_simple_proxy_resolver_set_uri_proxy") | ||
M v4/gio/gsocket.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | type SocketClass struct { | 14 | type SocketClass struct { | ||
| @@ -80,6 +81,12 @@ type Socket struct { | |||||
| 80 | gobject.Object | 81 | gobject.Object | ||
| 81 | } | 82 | } | ||
| 82 | 83 | ||||
| 84 | + | var xSocketGLibType func() types.GType | |||
| 85 | + | ||||
| 86 | + | func SocketGLibType() types.GType { | |||
| 87 | + | return xSocketGLibType() | |||
| 88 | + | } | |||
| 89 | + | ||||
| 83 | func SocketNewFromInternalPtr(ptr uintptr) *Socket { | 90 | func SocketNewFromInternalPtr(ptr uintptr) *Socket { | ||
| 84 | cls := &Socket{} | 91 | cls := &Socket{} | ||
| 85 | cls.Ptr = ptr | 92 | cls.Ptr = ptr | ||
| @@ -1464,6 +1471,8 @@ func init() { | |||||
| 1464 | panic(err) | 1471 | panic(err) | ||
| 1465 | } | 1472 | } | ||
| 1466 | 1473 | ||||
| 1474 | + | core.PuregoSafeRegister(&xSocketGLibType, lib, "g_socket_get_type") | |||
| 1475 | + | ||||
| 1467 | core.PuregoSafeRegister(&xNewSocket, lib, "g_socket_new") | 1476 | core.PuregoSafeRegister(&xNewSocket, lib, "g_socket_new") | ||
| 1468 | core.PuregoSafeRegister(&xNewSocketFromFd, lib, "g_socket_new_from_fd") | 1477 | core.PuregoSafeRegister(&xNewSocketFromFd, lib, "g_socket_new_from_fd") | ||
| 1469 | 1478 | ||||
M v4/gio/gsocketaddress.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | type SocketAddressClass struct { | 14 | type SocketAddressClass struct { | ||
| @@ -25,6 +26,12 @@ type SocketAddress struct { | |||||
| 25 | gobject.Object | 26 | gobject.Object | ||
| 26 | } | 27 | } | ||
| 27 | 28 | ||||
| 29 | + | var xSocketAddressGLibType func() types.GType | |||
| 30 | + | ||||
| 31 | + | func SocketAddressGLibType() types.GType { | |||
| 32 | + | return xSocketAddressGLibType() | |||
| 33 | + | } | |||
| 34 | + | ||||
| 28 | func SocketAddressNewFromInternalPtr(ptr uintptr) *SocketAddress { | 35 | func SocketAddressNewFromInternalPtr(ptr uintptr) *SocketAddress { | ||
| 29 | cls := &SocketAddress{} | 36 | cls := &SocketAddress{} | ||
| 30 | cls.Ptr = ptr | 37 | cls.Ptr = ptr | ||
| @@ -148,6 +155,8 @@ func init() { | |||||
| 148 | panic(err) | 155 | panic(err) | ||
| 149 | } | 156 | } | ||
| 150 | 157 | ||||
| 158 | + | core.PuregoSafeRegister(&xSocketAddressGLibType, lib, "g_socket_address_get_type") | |||
| 159 | + | ||||
| 151 | core.PuregoSafeRegister(&xNewSocketAddressFromNative, lib, "g_socket_address_new_from_native") | 160 | core.PuregoSafeRegister(&xNewSocketAddressFromNative, lib, "g_socket_address_new_from_native") | ||
| 152 | 161 | ||||
| 153 | core.PuregoSafeRegister(&xSocketAddressGetFamily, lib, "g_socket_address_get_family") | 162 | core.PuregoSafeRegister(&xSocketAddressGetFamily, lib, "g_socket_address_get_family") | ||
M v4/gio/gsocketaddressenumerator.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | // Class structure for #GSocketAddressEnumerator. | 14 | // Class structure for #GSocketAddressEnumerator. | ||
| @@ -37,6 +38,12 @@ type SocketAddressEnumerator struct { | |||||
| 37 | gobject.Object | 38 | gobject.Object | ||
| 38 | } | 39 | } | ||
| 39 | 40 | ||||
| 41 | + | var xSocketAddressEnumeratorGLibType func() types.GType | |||
| 42 | + | ||||
| 43 | + | func SocketAddressEnumeratorGLibType() types.GType { | |||
| 44 | + | return xSocketAddressEnumeratorGLibType() | |||
| 45 | + | } | |||
| 46 | + | ||||
| 40 | func SocketAddressEnumeratorNewFromInternalPtr(ptr uintptr) *SocketAddressEnumerator { | 47 | func SocketAddressEnumeratorNewFromInternalPtr(ptr uintptr) *SocketAddressEnumerator { | ||
| 41 | cls := &SocketAddressEnumerator{} | 48 | cls := &SocketAddressEnumerator{} | ||
| 42 | cls.Ptr = ptr | 49 | cls.Ptr = ptr | ||
| @@ -127,6 +134,8 @@ func init() { | |||||
| 127 | panic(err) | 134 | panic(err) | ||
| 128 | } | 135 | } | ||
| 129 | 136 | ||||
| 137 | + | core.PuregoSafeRegister(&xSocketAddressEnumeratorGLibType, lib, "g_socket_address_enumerator_get_type") | |||
| 138 | + | ||||
| 130 | core.PuregoSafeRegister(&xSocketAddressEnumeratorNext, lib, "g_socket_address_enumerator_next") | 139 | core.PuregoSafeRegister(&xSocketAddressEnumeratorNext, lib, "g_socket_address_enumerator_next") | ||
| 131 | core.PuregoSafeRegister(&xSocketAddressEnumeratorNextAsync, lib, "g_socket_address_enumerator_next_async") | 140 | core.PuregoSafeRegister(&xSocketAddressEnumeratorNextAsync, lib, "g_socket_address_enumerator_next_async") | ||
| 132 | core.PuregoSafeRegister(&xSocketAddressEnumeratorNextFinish, lib, "g_socket_address_enumerator_next_finish") | 141 | core.PuregoSafeRegister(&xSocketAddressEnumeratorNextFinish, lib, "g_socket_address_enumerator_next_finish") | ||
M v4/gio/gsocketclient.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | type SocketClientClass struct { | 14 | type SocketClientClass struct { | ||
| @@ -42,6 +43,12 @@ type SocketClient struct { | |||||
| 42 | gobject.Object | 43 | gobject.Object | ||
| 43 | } | 44 | } | ||
| 44 | 45 | ||||
| 46 | + | var xSocketClientGLibType func() types.GType | |||
| 47 | + | ||||
| 48 | + | func SocketClientGLibType() types.GType { | |||
| 49 | + | return xSocketClientGLibType() | |||
| 50 | + | } | |||
| 51 | + | ||||
| 45 | func SocketClientNewFromInternalPtr(ptr uintptr) *SocketClient { | 52 | func SocketClientNewFromInternalPtr(ptr uintptr) *SocketClient { | ||
| 46 | cls := &SocketClient{} | 53 | cls := &SocketClient{} | ||
| 47 | cls.Ptr = ptr | 54 | cls.Ptr = ptr | ||
| @@ -735,6 +742,8 @@ func init() { | |||||
| 735 | panic(err) | 742 | panic(err) | ||
| 736 | } | 743 | } | ||
| 737 | 744 | ||||
| 745 | + | core.PuregoSafeRegister(&xSocketClientGLibType, lib, "g_socket_client_get_type") | |||
| 746 | + | ||||
| 738 | core.PuregoSafeRegister(&xNewSocketClient, lib, "g_socket_client_new") | 747 | core.PuregoSafeRegister(&xNewSocketClient, lib, "g_socket_client_new") | ||
| 739 | 748 | ||||
| 740 | core.PuregoSafeRegister(&xSocketClientAddApplicationProxy, lib, "g_socket_client_add_application_proxy") | 749 | core.PuregoSafeRegister(&xSocketClientAddApplicationProxy, lib, "g_socket_client_add_application_proxy") | ||
M v4/gio/gsocketconnectable.go +10 -0
| @@ -6,6 +6,7 @@ import ( | |||||
| 6 | 6 | ||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 9 | ) | 10 | ) | ||
| 10 | 11 | ||||
| 11 | // Provides an interface for returning a #GSocketAddressEnumerator | 12 | // Provides an interface for returning a #GSocketAddressEnumerator | ||
| @@ -85,6 +86,13 @@ type SocketConnectable interface { | |||||
| 85 | ProxyEnumerate() *SocketAddressEnumerator | 86 | ProxyEnumerate() *SocketAddressEnumerator | ||
| 86 | ToString() string | 87 | ToString() string | ||
| 87 | } | 88 | } | ||
| 89 | + | ||||
| 90 | + | var xSocketConnectableGLibType func() types.GType | |||
| 91 | + | ||||
| 92 | + | func SocketConnectableGLibType() types.GType { | |||
| 93 | + | return xSocketConnectableGLibType() | |||
| 94 | + | } | |||
| 95 | + | ||||
| 88 | type SocketConnectableBase struct { | 96 | type SocketConnectableBase struct { | ||
| 89 | Ptr uintptr | 97 | Ptr uintptr | ||
| 90 | } | 98 | } | ||
| @@ -154,6 +162,8 @@ func init() { | |||||
| 154 | panic(err) | 162 | panic(err) | ||
| 155 | } | 163 | } | ||
| 156 | 164 | ||||
| 165 | + | core.PuregoSafeRegister(&xSocketConnectableGLibType, lib, "g_socket_connectable_get_type") | |||
| 166 | + | ||||
| 157 | core.PuregoSafeRegister(&XGSocketConnectableEnumerate, lib, "g_socket_connectable_enumerate") | 167 | core.PuregoSafeRegister(&XGSocketConnectableEnumerate, lib, "g_socket_connectable_enumerate") | ||
| 158 | core.PuregoSafeRegister(&XGSocketConnectableProxyEnumerate, lib, "g_socket_connectable_proxy_enumerate") | 168 | core.PuregoSafeRegister(&XGSocketConnectableProxyEnumerate, lib, "g_socket_connectable_proxy_enumerate") | ||
| 159 | core.PuregoSafeRegister(&XGSocketConnectableToString, lib, "g_socket_connectable_to_string") | 169 | core.PuregoSafeRegister(&XGSocketConnectableToString, lib, "g_socket_connectable_to_string") | ||
M v4/gio/gsocketconnection.go +8 -0
| @@ -46,6 +46,12 @@ type SocketConnection struct { | |||||
| 46 | IOStream | 46 | IOStream | ||
| 47 | } | 47 | } | ||
| 48 | 48 | ||||
| 49 | + | var xSocketConnectionGLibType func() types.GType | |||
| 50 | + | ||||
| 51 | + | func SocketConnectionGLibType() types.GType { | |||
| 52 | + | return xSocketConnectionGLibType() | |||
| 53 | + | } | |||
| 54 | + | ||||
| 49 | func SocketConnectionNewFromInternalPtr(ptr uintptr) *SocketConnection { | 55 | func SocketConnectionNewFromInternalPtr(ptr uintptr) *SocketConnection { | ||
| 50 | cls := &SocketConnection{} | 56 | cls := &SocketConnection{} | ||
| 51 | cls.Ptr = ptr | 57 | cls.Ptr = ptr | ||
| @@ -210,6 +216,8 @@ func init() { | |||||
| 210 | panic(err) | 216 | panic(err) | ||
| 211 | } | 217 | } | ||
| 212 | 218 | ||||
| 219 | + | core.PuregoSafeRegister(&xSocketConnectionGLibType, lib, "g_socket_connection_get_type") | |||
| 220 | + | ||||
| 213 | core.PuregoSafeRegister(&xSocketConnectionConnect, lib, "g_socket_connection_connect") | 221 | core.PuregoSafeRegister(&xSocketConnectionConnect, lib, "g_socket_connection_connect") | ||
| 214 | core.PuregoSafeRegister(&xSocketConnectionConnectAsync, lib, "g_socket_connection_connect_async") | 222 | core.PuregoSafeRegister(&xSocketConnectionConnectAsync, lib, "g_socket_connection_connect_async") | ||
| 215 | core.PuregoSafeRegister(&xSocketConnectionConnectFinish, lib, "g_socket_connection_connect_finish") | 223 | core.PuregoSafeRegister(&xSocketConnectionConnectFinish, lib, "g_socket_connection_connect_finish") | ||
M v4/gio/gsocketcontrolmessage.go +9 -0
| @@ -7,6 +7,7 @@ import ( | |||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 10 | ) | 11 | ) | ||
| 11 | 12 | ||||
| 12 | // Class structure for #GSocketControlMessage. | 13 | // Class structure for #GSocketControlMessage. | ||
| @@ -49,6 +50,12 @@ type SocketControlMessage struct { | |||||
| 49 | gobject.Object | 50 | gobject.Object | ||
| 50 | } | 51 | } | ||
| 51 | 52 | ||||
| 53 | + | var xSocketControlMessageGLibType func() types.GType | |||
| 54 | + | ||||
| 55 | + | func SocketControlMessageGLibType() types.GType { | |||
| 56 | + | return xSocketControlMessageGLibType() | |||
| 57 | + | } | |||
| 58 | + | ||||
| 52 | func SocketControlMessageNewFromInternalPtr(ptr uintptr) *SocketControlMessage { | 59 | func SocketControlMessageNewFromInternalPtr(ptr uintptr) *SocketControlMessage { | ||
| 53 | cls := &SocketControlMessage{} | 60 | cls := &SocketControlMessage{} | ||
| 54 | cls.Ptr = ptr | 61 | cls.Ptr = ptr | ||
| @@ -135,6 +142,8 @@ func init() { | |||||
| 135 | panic(err) | 142 | panic(err) | ||
| 136 | } | 143 | } | ||
| 137 | 144 | ||||
| 145 | + | core.PuregoSafeRegister(&xSocketControlMessageGLibType, lib, "g_socket_control_message_get_type") | |||
| 146 | + | ||||
| 138 | core.PuregoSafeRegister(&xSocketControlMessageGetLevel, lib, "g_socket_control_message_get_level") | 147 | core.PuregoSafeRegister(&xSocketControlMessageGetLevel, lib, "g_socket_control_message_get_level") | ||
| 139 | core.PuregoSafeRegister(&xSocketControlMessageGetMsgType, lib, "g_socket_control_message_get_msg_type") | 148 | core.PuregoSafeRegister(&xSocketControlMessageGetMsgType, lib, "g_socket_control_message_get_msg_type") | ||
| 140 | core.PuregoSafeRegister(&xSocketControlMessageGetSize, lib, "g_socket_control_message_get_size") | 149 | core.PuregoSafeRegister(&xSocketControlMessageGetSize, lib, "g_socket_control_message_get_size") | ||
M v4/gio/gsocketlistener.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | // Class structure for #GSocketListener. | 14 | // Class structure for #GSocketListener. | ||
| @@ -44,6 +45,12 @@ type SocketListener struct { | |||||
| 44 | gobject.Object | 45 | gobject.Object | ||
| 45 | } | 46 | } | ||
| 46 | 47 | ||||
| 48 | + | var xSocketListenerGLibType func() types.GType | |||
| 49 | + | ||||
| 50 | + | func SocketListenerGLibType() types.GType { | |||
| 51 | + | return xSocketListenerGLibType() | |||
| 52 | + | } | |||
| 53 | + | ||||
| 47 | func SocketListenerNewFromInternalPtr(ptr uintptr) *SocketListener { | 54 | func SocketListenerNewFromInternalPtr(ptr uintptr) *SocketListener { | ||
| 48 | cls := &SocketListener{} | 55 | cls := &SocketListener{} | ||
| 49 | cls.Ptr = ptr | 56 | cls.Ptr = ptr | ||
| @@ -370,6 +377,8 @@ func init() { | |||||
| 370 | panic(err) | 377 | panic(err) | ||
| 371 | } | 378 | } | ||
| 372 | 379 | ||||
| 380 | + | core.PuregoSafeRegister(&xSocketListenerGLibType, lib, "g_socket_listener_get_type") | |||
| 381 | + | ||||
| 373 | core.PuregoSafeRegister(&xNewSocketListener, lib, "g_socket_listener_new") | 382 | core.PuregoSafeRegister(&xNewSocketListener, lib, "g_socket_listener_new") | ||
| 374 | 383 | ||||
| 375 | core.PuregoSafeRegister(&xSocketListenerAccept, lib, "g_socket_listener_accept") | 384 | core.PuregoSafeRegister(&xSocketListenerAccept, lib, "g_socket_listener_accept") | ||
M v4/gio/gsocketservice.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | // Class structure for #GSocketService. | 14 | // Class structure for #GSocketService. | ||
| @@ -56,6 +57,12 @@ type SocketService struct { | |||||
| 56 | SocketListener | 57 | SocketListener | ||
| 57 | } | 58 | } | ||
| 58 | 59 | ||||
| 60 | + | var xSocketServiceGLibType func() types.GType | |||
| 61 | + | ||||
| 62 | + | func SocketServiceGLibType() types.GType { | |||
| 63 | + | return xSocketServiceGLibType() | |||
| 64 | + | } | |||
| 65 | + | ||||
| 59 | func SocketServiceNewFromInternalPtr(ptr uintptr) *SocketService { | 66 | func SocketServiceNewFromInternalPtr(ptr uintptr) *SocketService { | ||
| 60 | cls := &SocketService{} | 67 | cls := &SocketService{} | ||
| 61 | cls.Ptr = ptr | 68 | cls.Ptr = ptr | ||
| @@ -174,6 +181,8 @@ func init() { | |||||
| 174 | panic(err) | 181 | panic(err) | ||
| 175 | } | 182 | } | ||
| 176 | 183 | ||||
| 184 | + | core.PuregoSafeRegister(&xSocketServiceGLibType, lib, "g_socket_service_get_type") | |||
| 185 | + | ||||
| 177 | core.PuregoSafeRegister(&xNewSocketService, lib, "g_socket_service_new") | 186 | core.PuregoSafeRegister(&xNewSocketService, lib, "g_socket_service_new") | ||
| 178 | 187 | ||||
| 179 | core.PuregoSafeRegister(&xSocketServiceIsActive, lib, "g_socket_service_is_active") | 188 | core.PuregoSafeRegister(&xSocketServiceIsActive, lib, "g_socket_service_is_active") | ||
M v4/gio/gsrvtarget.go +1 -0
| @@ -21,6 +21,7 @@ func init() { | |||||
| 21 | if err != nil { | 21 | if err != nil { | ||
| 22 | panic(err) | 22 | panic(err) | ||
| 23 | } | 23 | } | ||
| 24 | + | ||||
| 24 | core.PuregoSafeRegister(&xSrvTargetListSort, lib, "g_srv_target_list_sort") | 25 | core.PuregoSafeRegister(&xSrvTargetListSort, lib, "g_srv_target_list_sort") | ||
| 25 | 26 | ||||
| 26 | } | 27 | } | ||
M v4/gio/gtask.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | // The prototype for a task function to be run in a thread via | 14 | // The prototype for a task function to be run in a thread via | ||
| @@ -545,6 +546,12 @@ type Task struct { | |||||
| 545 | gobject.Object | 546 | gobject.Object | ||
| 546 | } | 547 | } | ||
| 547 | 548 | ||||
| 549 | + | var xTaskGLibType func() types.GType | |||
| 550 | + | ||||
| 551 | + | func TaskGLibType() types.GType { | |||
| 552 | + | return xTaskGLibType() | |||
| 553 | + | } | |||
| 554 | + | ||||
| 548 | func TaskNewFromInternalPtr(ptr uintptr) *Task { | 555 | func TaskNewFromInternalPtr(ptr uintptr) *Task { | ||
| 549 | cls := &Task{} | 556 | cls := &Task{} | ||
| 550 | cls.Ptr = ptr | 557 | cls.Ptr = ptr | ||
| @@ -1176,6 +1183,8 @@ func init() { | |||||
| 1176 | panic(err) | 1183 | panic(err) | ||
| 1177 | } | 1184 | } | ||
| 1178 | 1185 | ||||
| 1186 | + | core.PuregoSafeRegister(&xTaskGLibType, lib, "g_task_get_type") | |||
| 1187 | + | ||||
| 1179 | core.PuregoSafeRegister(&xNewTask, lib, "g_task_new") | 1188 | core.PuregoSafeRegister(&xNewTask, lib, "g_task_new") | ||
| 1180 | 1189 | ||||
| 1181 | core.PuregoSafeRegister(&xTaskAttachSource, lib, "g_task_attach_source") | 1190 | core.PuregoSafeRegister(&xTaskAttachSource, lib, "g_task_attach_source") | ||
M v4/gio/gtcpconnection.go +9 -0
| @@ -6,6 +6,7 @@ import ( | |||||
| 6 | 6 | ||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 9 | ) | 10 | ) | ||
| 10 | 11 | ||||
| 11 | type TcpConnectionClass struct { | 12 | type TcpConnectionClass struct { | ||
| @@ -29,6 +30,12 @@ type TcpConnection struct { | |||||
| 29 | SocketConnection | 30 | SocketConnection | ||
| 30 | } | 31 | } | ||
| 31 | 32 | ||||
| 33 | + | var xTcpConnectionGLibType func() types.GType | |||
| 34 | + | ||||
| 35 | + | func TcpConnectionGLibType() types.GType { | |||
| 36 | + | return xTcpConnectionGLibType() | |||
| 37 | + | } | |||
| 38 | + | ||||
| 32 | func TcpConnectionNewFromInternalPtr(ptr uintptr) *TcpConnection { | 39 | func TcpConnectionNewFromInternalPtr(ptr uintptr) *TcpConnection { | ||
| 33 | cls := &TcpConnection{} | 40 | cls := &TcpConnection{} | ||
| 34 | cls.Ptr = ptr | 41 | cls.Ptr = ptr | ||
| @@ -76,6 +83,8 @@ func init() { | |||||
| 76 | panic(err) | 83 | panic(err) | ||
| 77 | } | 84 | } | ||
| 78 | 85 | ||||
| 86 | + | core.PuregoSafeRegister(&xTcpConnectionGLibType, lib, "g_tcp_connection_get_type") | |||
| 87 | + | ||||
| 79 | core.PuregoSafeRegister(&xTcpConnectionGetGracefulDisconnect, lib, "g_tcp_connection_get_graceful_disconnect") | 88 | core.PuregoSafeRegister(&xTcpConnectionGetGracefulDisconnect, lib, "g_tcp_connection_get_graceful_disconnect") | ||
| 80 | core.PuregoSafeRegister(&xTcpConnectionSetGracefulDisconnect, lib, "g_tcp_connection_set_graceful_disconnect") | 89 | core.PuregoSafeRegister(&xTcpConnectionSetGracefulDisconnect, lib, "g_tcp_connection_set_graceful_disconnect") | ||
| 81 | 90 | ||||
M v4/gio/gtcpwrapperconnection.go +9 -0
| @@ -7,6 +7,7 @@ import ( | |||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 10 | ) | 11 | ) | ||
| 11 | 12 | ||||
| 12 | type TcpWrapperConnectionClass struct { | 13 | type TcpWrapperConnectionClass struct { | ||
| @@ -33,6 +34,12 @@ type TcpWrapperConnection struct { | |||||
| 33 | TcpConnection | 34 | TcpConnection | ||
| 34 | } | 35 | } | ||
| 35 | 36 | ||||
| 37 | + | var xTcpWrapperConnectionGLibType func() types.GType | |||
| 38 | + | ||||
| 39 | + | func TcpWrapperConnectionGLibType() types.GType { | |||
| 40 | + | return xTcpWrapperConnectionGLibType() | |||
| 41 | + | } | |||
| 42 | + | ||||
| 36 | func TcpWrapperConnectionNewFromInternalPtr(ptr uintptr) *TcpWrapperConnection { | 43 | func TcpWrapperConnectionNewFromInternalPtr(ptr uintptr) *TcpWrapperConnection { | ||
| 37 | cls := &TcpWrapperConnection{} | 44 | cls := &TcpWrapperConnection{} | ||
| 38 | cls.Ptr = ptr | 45 | cls.Ptr = ptr | ||
| @@ -86,6 +93,8 @@ func init() { | |||||
| 86 | panic(err) | 93 | panic(err) | ||
| 87 | } | 94 | } | ||
| 88 | 95 | ||||
| 96 | + | core.PuregoSafeRegister(&xTcpWrapperConnectionGLibType, lib, "g_tcp_wrapper_connection_get_type") | |||
| 97 | + | ||||
| 89 | core.PuregoSafeRegister(&xNewTcpWrapperConnection, lib, "g_tcp_wrapper_connection_new") | 98 | core.PuregoSafeRegister(&xNewTcpWrapperConnection, lib, "g_tcp_wrapper_connection_new") | ||
| 90 | 99 | ||||
| 91 | core.PuregoSafeRegister(&xTcpWrapperConnectionGetBaseIoStream, lib, "g_tcp_wrapper_connection_get_base_io_stream") | 100 | core.PuregoSafeRegister(&xTcpWrapperConnectionGetBaseIoStream, lib, "g_tcp_wrapper_connection_get_base_io_stream") | ||
M v4/gio/gthemedicon.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | type ThemedIconClass struct { | 14 | type ThemedIconClass struct { | ||
| @@ -28,6 +29,12 @@ type ThemedIcon struct { | |||||
| 28 | gobject.Object | 29 | gobject.Object | ||
| 29 | } | 30 | } | ||
| 30 | 31 | ||||
| 32 | + | var xThemedIconGLibType func() types.GType | |||
| 33 | + | ||||
| 34 | + | func ThemedIconGLibType() types.GType { | |||
| 35 | + | return xThemedIconGLibType() | |||
| 36 | + | } | |||
| 37 | + | ||||
| 31 | func ThemedIconNewFromInternalPtr(ptr uintptr) *ThemedIcon { | 38 | func ThemedIconNewFromInternalPtr(ptr uintptr) *ThemedIcon { | ||
| 32 | cls := &ThemedIcon{} | 39 | cls := &ThemedIcon{} | ||
| 33 | cls.Ptr = ptr | 40 | cls.Ptr = ptr | ||
| @@ -184,6 +191,8 @@ func init() { | |||||
| 184 | panic(err) | 191 | panic(err) | ||
| 185 | } | 192 | } | ||
| 186 | 193 | ||||
| 194 | + | core.PuregoSafeRegister(&xThemedIconGLibType, lib, "g_themed_icon_get_type") | |||
| 195 | + | ||||
| 187 | core.PuregoSafeRegister(&xNewThemedIcon, lib, "g_themed_icon_new") | 196 | core.PuregoSafeRegister(&xNewThemedIcon, lib, "g_themed_icon_new") | ||
| 188 | core.PuregoSafeRegister(&xNewThemedIconFromNames, lib, "g_themed_icon_new_from_names") | 197 | core.PuregoSafeRegister(&xNewThemedIconFromNames, lib, "g_themed_icon_new_from_names") | ||
| 189 | core.PuregoSafeRegister(&xNewThemedIconWithDefaultFallbacks, lib, "g_themed_icon_new_with_default_fallbacks") | 198 | core.PuregoSafeRegister(&xNewThemedIconWithDefaultFallbacks, lib, "g_themed_icon_new_with_default_fallbacks") | ||
M v4/gio/gthreadedsocketservice.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | type ThreadedSocketServiceClass struct { | 14 | type ThreadedSocketServiceClass struct { | ||
| @@ -44,6 +45,12 @@ type ThreadedSocketService struct { | |||||
| 44 | SocketService | 45 | SocketService | ||
| 45 | } | 46 | } | ||
| 46 | 47 | ||||
| 48 | + | var xThreadedSocketServiceGLibType func() types.GType | |||
| 49 | + | ||||
| 50 | + | func ThreadedSocketServiceGLibType() types.GType { | |||
| 51 | + | return xThreadedSocketServiceGLibType() | |||
| 52 | + | } | |||
| 53 | + | ||||
| 47 | func ThreadedSocketServiceNewFromInternalPtr(ptr uintptr) *ThreadedSocketService { | 54 | func ThreadedSocketServiceNewFromInternalPtr(ptr uintptr) *ThreadedSocketService { | ||
| 48 | cls := &ThreadedSocketService{} | 55 | cls := &ThreadedSocketService{} | ||
| 49 | cls.Ptr = ptr | 56 | cls.Ptr = ptr | ||
| @@ -104,6 +111,8 @@ func init() { | |||||
| 104 | panic(err) | 111 | panic(err) | ||
| 105 | } | 112 | } | ||
| 106 | 113 | ||||
| 114 | + | core.PuregoSafeRegister(&xThreadedSocketServiceGLibType, lib, "g_threaded_socket_service_get_type") | |||
| 115 | + | ||||
| 107 | core.PuregoSafeRegister(&xNewThreadedSocketService, lib, "g_threaded_socket_service_new") | 116 | core.PuregoSafeRegister(&xNewThreadedSocketService, lib, "g_threaded_socket_service_new") | ||
| 108 | 117 | ||||
| 109 | } | 118 | } | ||
M v4/gio/gtlsbackend.go +10 -0
| @@ -34,6 +34,13 @@ type TlsBackend interface { | |||||
| 34 | SupportsDtls() bool | 34 | SupportsDtls() bool | ||
| 35 | SupportsTls() bool | 35 | SupportsTls() bool | ||
| 36 | } | 36 | } | ||
| 37 | + | ||||
| 38 | + | var xTlsBackendGLibType func() types.GType | |||
| 39 | + | ||||
| 40 | + | func TlsBackendGLibType() types.GType { | |||
| 41 | + | return xTlsBackendGLibType() | |||
| 42 | + | } | |||
| 43 | + | ||||
| 37 | type TlsBackendBase struct { | 44 | type TlsBackendBase struct { | ||
| 38 | Ptr uintptr | 45 | Ptr uintptr | ||
| 39 | } | 46 | } | ||
| @@ -171,8 +178,11 @@ func init() { | |||||
| 171 | if err != nil { | 178 | if err != nil { | ||
| 172 | panic(err) | 179 | panic(err) | ||
| 173 | } | 180 | } | ||
| 181 | + | ||||
| 174 | core.PuregoSafeRegister(&xTlsBackendGetDefault, lib, "g_tls_backend_get_default") | 182 | core.PuregoSafeRegister(&xTlsBackendGetDefault, lib, "g_tls_backend_get_default") | ||
| 175 | 183 | ||||
| 184 | + | core.PuregoSafeRegister(&xTlsBackendGLibType, lib, "g_tls_backend_get_type") | |||
| 185 | + | ||||
| 176 | core.PuregoSafeRegister(&XGTlsBackendGetCertificateType, lib, "g_tls_backend_get_certificate_type") | 186 | core.PuregoSafeRegister(&XGTlsBackendGetCertificateType, lib, "g_tls_backend_get_certificate_type") | ||
| 177 | core.PuregoSafeRegister(&XGTlsBackendGetClientConnectionType, lib, "g_tls_backend_get_client_connection_type") | 187 | core.PuregoSafeRegister(&XGTlsBackendGetClientConnectionType, lib, "g_tls_backend_get_client_connection_type") | ||
| 178 | core.PuregoSafeRegister(&XGTlsBackendGetDefaultDatabase, lib, "g_tls_backend_get_default_database") | 188 | core.PuregoSafeRegister(&XGTlsBackendGetDefaultDatabase, lib, "g_tls_backend_get_default_database") | ||
M v4/gio/gtlscertificate.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | type TlsCertificateClass struct { | 14 | type TlsCertificateClass struct { | ||
| @@ -36,6 +37,12 @@ type TlsCertificate struct { | |||||
| 36 | gobject.Object | 37 | gobject.Object | ||
| 37 | } | 38 | } | ||
| 38 | 39 | ||||
| 40 | + | var xTlsCertificateGLibType func() types.GType | |||
| 41 | + | ||||
| 42 | + | func TlsCertificateGLibType() types.GType { | |||
| 43 | + | return xTlsCertificateGLibType() | |||
| 44 | + | } | |||
| 45 | + | ||||
| 39 | func TlsCertificateNewFromInternalPtr(ptr uintptr) *TlsCertificate { | 46 | func TlsCertificateNewFromInternalPtr(ptr uintptr) *TlsCertificate { | ||
| 40 | cls := &TlsCertificate{} | 47 | cls := &TlsCertificate{} | ||
| 41 | cls.Ptr = ptr | 48 | cls.Ptr = ptr | ||
| @@ -406,6 +413,8 @@ func init() { | |||||
| 406 | panic(err) | 413 | panic(err) | ||
| 407 | } | 414 | } | ||
| 408 | 415 | ||||
| 416 | + | core.PuregoSafeRegister(&xTlsCertificateGLibType, lib, "g_tls_certificate_get_type") | |||
| 417 | + | ||||
| 409 | core.PuregoSafeRegister(&xNewTlsCertificateFromFile, lib, "g_tls_certificate_new_from_file") | 418 | core.PuregoSafeRegister(&xNewTlsCertificateFromFile, lib, "g_tls_certificate_new_from_file") | ||
| 410 | core.PuregoSafeRegister(&xNewTlsCertificateFromFileWithPassword, lib, "g_tls_certificate_new_from_file_with_password") | 419 | core.PuregoSafeRegister(&xNewTlsCertificateFromFileWithPassword, lib, "g_tls_certificate_new_from_file_with_password") | ||
| 411 | core.PuregoSafeRegister(&xNewTlsCertificateFromFiles, lib, "g_tls_certificate_new_from_files") | 420 | core.PuregoSafeRegister(&xNewTlsCertificateFromFiles, lib, "g_tls_certificate_new_from_files") | ||
M v4/gio/gtlsclientconnection.go +11 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | // vtable for a #GTlsClientConnection implementation. | 14 | // vtable for a #GTlsClientConnection implementation. | ||
| @@ -33,6 +34,13 @@ type TlsClientConnection interface { | |||||
| 33 | SetUseSsl3(UseSsl3Var bool) | 34 | SetUseSsl3(UseSsl3Var bool) | ||
| 34 | SetValidationFlags(FlagsVar TlsCertificateFlags) | 35 | SetValidationFlags(FlagsVar TlsCertificateFlags) | ||
| 35 | } | 36 | } | ||
| 37 | + | ||||
| 38 | + | var xTlsClientConnectionGLibType func() types.GType | |||
| 39 | + | ||||
| 40 | + | func TlsClientConnectionGLibType() types.GType { | |||
| 41 | + | return xTlsClientConnectionGLibType() | |||
| 42 | + | } | |||
| 43 | + | ||||
| 36 | type TlsClientConnectionBase struct { | 44 | type TlsClientConnectionBase struct { | ||
| 37 | Ptr uintptr | 45 | Ptr uintptr | ||
| 38 | } | 46 | } | ||
| @@ -206,8 +214,11 @@ func init() { | |||||
| 206 | if err != nil { | 214 | if err != nil { | ||
| 207 | panic(err) | 215 | panic(err) | ||
| 208 | } | 216 | } | ||
| 217 | + | ||||
| 209 | core.PuregoSafeRegister(&xTlsClientConnectionNew, lib, "g_tls_client_connection_new") | 218 | core.PuregoSafeRegister(&xTlsClientConnectionNew, lib, "g_tls_client_connection_new") | ||
| 210 | 219 | ||||
| 220 | + | core.PuregoSafeRegister(&xTlsClientConnectionGLibType, lib, "g_tls_client_connection_get_type") | |||
| 221 | + | ||||
| 211 | core.PuregoSafeRegister(&XGTlsClientConnectionCopySessionState, lib, "g_tls_client_connection_copy_session_state") | 222 | core.PuregoSafeRegister(&XGTlsClientConnectionCopySessionState, lib, "g_tls_client_connection_copy_session_state") | ||
| 212 | core.PuregoSafeRegister(&XGTlsClientConnectionGetAcceptedCas, lib, "g_tls_client_connection_get_accepted_cas") | 223 | core.PuregoSafeRegister(&XGTlsClientConnectionGetAcceptedCas, lib, "g_tls_client_connection_get_accepted_cas") | ||
| 213 | core.PuregoSafeRegister(&XGTlsClientConnectionGetServerIdentity, lib, "g_tls_client_connection_get_server_identity") | 224 | core.PuregoSafeRegister(&XGTlsClientConnectionGetServerIdentity, lib, "g_tls_client_connection_get_server_identity") | ||
M v4/gio/gtlsconnection.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | // The class structure for the #GTlsConnection type. | 14 | // The class structure for the #GTlsConnection type. | ||
| @@ -38,6 +39,12 @@ type TlsConnection struct { | |||||
| 38 | IOStream | 39 | IOStream | ||
| 39 | } | 40 | } | ||
| 40 | 41 | ||||
| 42 | + | var xTlsConnectionGLibType func() types.GType | |||
| 43 | + | ||||
| 44 | + | func TlsConnectionGLibType() types.GType { | |||
| 45 | + | return xTlsConnectionGLibType() | |||
| 46 | + | } | |||
| 47 | + | ||||
| 41 | func TlsConnectionNewFromInternalPtr(ptr uintptr) *TlsConnection { | 48 | func TlsConnectionNewFromInternalPtr(ptr uintptr) *TlsConnection { | ||
| 42 | cls := &TlsConnection{} | 49 | cls := &TlsConnection{} | ||
| 43 | cls.Ptr = ptr | 50 | cls.Ptr = ptr | ||
| @@ -524,6 +531,8 @@ func init() { | |||||
| 524 | panic(err) | 531 | panic(err) | ||
| 525 | } | 532 | } | ||
| 526 | 533 | ||||
| 534 | + | core.PuregoSafeRegister(&xTlsConnectionGLibType, lib, "g_tls_connection_get_type") | |||
| 535 | + | ||||
| 527 | core.PuregoSafeRegister(&xTlsConnectionEmitAcceptCertificate, lib, "g_tls_connection_emit_accept_certificate") | 536 | core.PuregoSafeRegister(&xTlsConnectionEmitAcceptCertificate, lib, "g_tls_connection_emit_accept_certificate") | ||
| 528 | core.PuregoSafeRegister(&xTlsConnectionGetCertificate, lib, "g_tls_connection_get_certificate") | 537 | core.PuregoSafeRegister(&xTlsConnectionGetCertificate, lib, "g_tls_connection_get_certificate") | ||
| 529 | core.PuregoSafeRegister(&xTlsConnectionGetChannelBindingData, lib, "g_tls_connection_get_channel_binding_data") | 538 | core.PuregoSafeRegister(&xTlsConnectionGetChannelBindingData, lib, "g_tls_connection_get_channel_binding_data") | ||
M v4/gio/gtlsdatabase.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | // The class for #GTlsDatabase. Derived classes should implement the various | 14 | // The class for #GTlsDatabase. Derived classes should implement the various | ||
| @@ -52,6 +53,12 @@ type TlsDatabase struct { | |||||
| 52 | gobject.Object | 53 | gobject.Object | ||
| 53 | } | 54 | } | ||
| 54 | 55 | ||||
| 56 | + | var xTlsDatabaseGLibType func() types.GType | |||
| 57 | + | ||||
| 58 | + | func TlsDatabaseGLibType() types.GType { | |||
| 59 | + | return xTlsDatabaseGLibType() | |||
| 60 | + | } | |||
| 61 | + | ||||
| 55 | func TlsDatabaseNewFromInternalPtr(ptr uintptr) *TlsDatabase { | 62 | func TlsDatabaseNewFromInternalPtr(ptr uintptr) *TlsDatabase { | ||
| 56 | cls := &TlsDatabase{} | 63 | cls := &TlsDatabase{} | ||
| 57 | cls.Ptr = ptr | 64 | cls.Ptr = ptr | ||
| @@ -381,6 +388,8 @@ func init() { | |||||
| 381 | panic(err) | 388 | panic(err) | ||
| 382 | } | 389 | } | ||
| 383 | 390 | ||||
| 391 | + | core.PuregoSafeRegister(&xTlsDatabaseGLibType, lib, "g_tls_database_get_type") | |||
| 392 | + | ||||
| 384 | core.PuregoSafeRegister(&xTlsDatabaseCreateCertificateHandle, lib, "g_tls_database_create_certificate_handle") | 393 | core.PuregoSafeRegister(&xTlsDatabaseCreateCertificateHandle, lib, "g_tls_database_create_certificate_handle") | ||
| 385 | core.PuregoSafeRegister(&xTlsDatabaseLookupCertificateForHandle, lib, "g_tls_database_lookup_certificate_for_handle") | 394 | core.PuregoSafeRegister(&xTlsDatabaseLookupCertificateForHandle, lib, "g_tls_database_lookup_certificate_for_handle") | ||
| 386 | core.PuregoSafeRegister(&xTlsDatabaseLookupCertificateForHandleAsync, lib, "g_tls_database_lookup_certificate_for_handle_async") | 395 | core.PuregoSafeRegister(&xTlsDatabaseLookupCertificateForHandleAsync, lib, "g_tls_database_lookup_certificate_for_handle_async") | ||
M v4/gio/gtlsfiledatabase.go +11 -0
| @@ -7,6 +7,7 @@ import ( | |||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 10 | ) | 11 | ) | ||
| 11 | 12 | ||||
| 12 | // Provides an interface for #GTlsFileDatabase implementations. | 13 | // Provides an interface for #GTlsFileDatabase implementations. | ||
| @@ -27,6 +28,13 @@ type TlsFileDatabase interface { | |||||
| 27 | GoPointer() uintptr | 28 | GoPointer() uintptr | ||
| 28 | SetGoPointer(uintptr) | 29 | SetGoPointer(uintptr) | ||
| 29 | } | 30 | } | ||
| 31 | + | ||||
| 32 | + | var xTlsFileDatabaseGLibType func() types.GType | |||
| 33 | + | ||||
| 34 | + | func TlsFileDatabaseGLibType() types.GType { | |||
| 35 | + | return xTlsFileDatabaseGLibType() | |||
| 36 | + | } | |||
| 37 | + | ||||
| 30 | type TlsFileDatabaseBase struct { | 38 | type TlsFileDatabaseBase struct { | ||
| 31 | Ptr uintptr | 39 | Ptr uintptr | ||
| 32 | } | 40 | } | ||
| @@ -68,6 +76,9 @@ func init() { | |||||
| 68 | if err != nil { | 76 | if err != nil { | ||
| 69 | panic(err) | 77 | panic(err) | ||
| 70 | } | 78 | } | ||
| 79 | + | ||||
| 71 | core.PuregoSafeRegister(&xTlsFileDatabaseNew, lib, "g_tls_file_database_new") | 80 | core.PuregoSafeRegister(&xTlsFileDatabaseNew, lib, "g_tls_file_database_new") | ||
| 72 | 81 | ||||
| 82 | + | core.PuregoSafeRegister(&xTlsFileDatabaseGLibType, lib, "g_tls_file_database_get_type") | |||
| 83 | + | ||||
| 73 | } | 84 | } | ||
M v4/gio/gtlsinteraction.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | // The class for #GTlsInteraction. Derived classes implement the various | 14 | // The class for #GTlsInteraction. Derived classes implement the various | ||
| @@ -65,6 +66,12 @@ type TlsInteraction struct { | |||||
| 65 | gobject.Object | 66 | gobject.Object | ||
| 66 | } | 67 | } | ||
| 67 | 68 | ||||
| 69 | + | var xTlsInteractionGLibType func() types.GType | |||
| 70 | + | ||||
| 71 | + | func TlsInteractionGLibType() types.GType { | |||
| 72 | + | return xTlsInteractionGLibType() | |||
| 73 | + | } | |||
| 74 | + | ||||
| 68 | func TlsInteractionNewFromInternalPtr(ptr uintptr) *TlsInteraction { | 75 | func TlsInteractionNewFromInternalPtr(ptr uintptr) *TlsInteraction { | ||
| 69 | cls := &TlsInteraction{} | 76 | cls := &TlsInteraction{} | ||
| 70 | cls.Ptr = ptr | 77 | cls.Ptr = ptr | ||
| @@ -289,6 +296,8 @@ func init() { | |||||
| 289 | panic(err) | 296 | panic(err) | ||
| 290 | } | 297 | } | ||
| 291 | 298 | ||||
| 299 | + | core.PuregoSafeRegister(&xTlsInteractionGLibType, lib, "g_tls_interaction_get_type") | |||
| 300 | + | ||||
| 292 | core.PuregoSafeRegister(&xTlsInteractionAskPassword, lib, "g_tls_interaction_ask_password") | 301 | core.PuregoSafeRegister(&xTlsInteractionAskPassword, lib, "g_tls_interaction_ask_password") | ||
| 293 | core.PuregoSafeRegister(&xTlsInteractionAskPasswordAsync, lib, "g_tls_interaction_ask_password_async") | 302 | core.PuregoSafeRegister(&xTlsInteractionAskPasswordAsync, lib, "g_tls_interaction_ask_password_async") | ||
| 294 | core.PuregoSafeRegister(&xTlsInteractionAskPasswordFinish, lib, "g_tls_interaction_ask_password_finish") | 303 | core.PuregoSafeRegister(&xTlsInteractionAskPasswordFinish, lib, "g_tls_interaction_ask_password_finish") | ||
M v4/gio/gtlspassword.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | // Class structure for #GTlsPassword. | 14 | // Class structure for #GTlsPassword. | ||
| @@ -33,6 +34,12 @@ type TlsPassword struct { | |||||
| 33 | gobject.Object | 34 | gobject.Object | ||
| 34 | } | 35 | } | ||
| 35 | 36 | ||||
| 37 | + | var xTlsPasswordGLibType func() types.GType | |||
| 38 | + | ||||
| 39 | + | func TlsPasswordGLibType() types.GType { | |||
| 40 | + | return xTlsPasswordGLibType() | |||
| 41 | + | } | |||
| 42 | + | ||||
| 36 | func TlsPasswordNewFromInternalPtr(ptr uintptr) *TlsPassword { | 43 | func TlsPasswordNewFromInternalPtr(ptr uintptr) *TlsPassword { | ||
| 37 | cls := &TlsPassword{} | 44 | cls := &TlsPassword{} | ||
| 38 | cls.Ptr = ptr | 45 | cls.Ptr = ptr | ||
| @@ -172,6 +179,8 @@ func init() { | |||||
| 172 | panic(err) | 179 | panic(err) | ||
| 173 | } | 180 | } | ||
| 174 | 181 | ||||
| 182 | + | core.PuregoSafeRegister(&xTlsPasswordGLibType, lib, "g_tls_password_get_type") | |||
| 183 | + | ||||
| 175 | core.PuregoSafeRegister(&xNewTlsPassword, lib, "g_tls_password_new") | 184 | core.PuregoSafeRegister(&xNewTlsPassword, lib, "g_tls_password_new") | ||
| 176 | 185 | ||||
| 177 | core.PuregoSafeRegister(&xTlsPasswordGetDescription, lib, "g_tls_password_get_description") | 186 | core.PuregoSafeRegister(&xTlsPasswordGetDescription, lib, "g_tls_password_get_description") | ||
M v4/gio/gtlsserverconnection.go +11 -0
| @@ -7,6 +7,7 @@ import ( | |||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 10 | ) | 11 | ) | ||
| 11 | 12 | ||||
| 12 | // vtable for a #GTlsServerConnection implementation. | 13 | // vtable for a #GTlsServerConnection implementation. | ||
| @@ -24,6 +25,13 @@ type TlsServerConnection interface { | |||||
| 24 | GoPointer() uintptr | 25 | GoPointer() uintptr | ||
| 25 | SetGoPointer(uintptr) | 26 | SetGoPointer(uintptr) | ||
| 26 | } | 27 | } | ||
| 28 | + | ||||
| 29 | + | var xTlsServerConnectionGLibType func() types.GType | |||
| 30 | + | ||||
| 31 | + | func TlsServerConnectionGLibType() types.GType { | |||
| 32 | + | return xTlsServerConnectionGLibType() | |||
| 33 | + | } | |||
| 34 | + | ||||
| 27 | type TlsServerConnectionBase struct { | 35 | type TlsServerConnectionBase struct { | ||
| 28 | Ptr uintptr | 36 | Ptr uintptr | ||
| 29 | } | 37 | } | ||
| @@ -67,6 +75,9 @@ func init() { | |||||
| 67 | if err != nil { | 75 | if err != nil { | ||
| 68 | panic(err) | 76 | panic(err) | ||
| 69 | } | 77 | } | ||
| 78 | + | ||||
| 70 | core.PuregoSafeRegister(&xTlsServerConnectionNew, lib, "g_tls_server_connection_new") | 79 | core.PuregoSafeRegister(&xTlsServerConnectionNew, lib, "g_tls_server_connection_new") | ||
| 71 | 80 | ||||
| 81 | + | core.PuregoSafeRegister(&xTlsServerConnectionGLibType, lib, "g_tls_server_connection_get_type") | |||
| 82 | + | ||||
| 72 | } | 83 | } | ||
M v4/gio/gunixconnection.go +9 -0
| @@ -7,6 +7,7 @@ import ( | |||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 10 | ) | 11 | ) | ||
| 11 | 12 | ||||
| 12 | type UnixConnectionClass struct { | 13 | type UnixConnectionClass struct { | ||
| @@ -40,6 +41,12 @@ type UnixConnection struct { | |||||
| 40 | SocketConnection | 41 | SocketConnection | ||
| 41 | } | 42 | } | ||
| 42 | 43 | ||||
| 44 | + | var xUnixConnectionGLibType func() types.GType | |||
| 45 | + | ||||
| 46 | + | func UnixConnectionGLibType() types.GType { | |||
| 47 | + | return xUnixConnectionGLibType() | |||
| 48 | + | } | |||
| 49 | + | ||||
| 43 | func UnixConnectionNewFromInternalPtr(ptr uintptr) *UnixConnection { | 50 | func UnixConnectionNewFromInternalPtr(ptr uintptr) *UnixConnection { | ||
| 44 | cls := &UnixConnection{} | 51 | cls := &UnixConnection{} | ||
| 45 | cls.Ptr = ptr | 52 | cls.Ptr = ptr | ||
| @@ -237,6 +244,8 @@ func init() { | |||||
| 237 | panic(err) | 244 | panic(err) | ||
| 238 | } | 245 | } | ||
| 239 | 246 | ||||
| 247 | + | core.PuregoSafeRegister(&xUnixConnectionGLibType, lib, "g_unix_connection_get_type") | |||
| 248 | + | ||||
| 240 | core.PuregoSafeRegister(&xUnixConnectionReceiveCredentials, lib, "g_unix_connection_receive_credentials") | 249 | core.PuregoSafeRegister(&xUnixConnectionReceiveCredentials, lib, "g_unix_connection_receive_credentials") | ||
| 241 | core.PuregoSafeRegister(&xUnixConnectionReceiveCredentialsAsync, lib, "g_unix_connection_receive_credentials_async") | 250 | core.PuregoSafeRegister(&xUnixConnectionReceiveCredentialsAsync, lib, "g_unix_connection_receive_credentials_async") | ||
| 242 | core.PuregoSafeRegister(&xUnixConnectionReceiveCredentialsFinish, lib, "g_unix_connection_receive_credentials_finish") | 251 | core.PuregoSafeRegister(&xUnixConnectionReceiveCredentialsFinish, lib, "g_unix_connection_receive_credentials_finish") | ||
M v4/gio/gunixcredentialsmessage.go +9 -0
| @@ -7,6 +7,7 @@ import ( | |||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | 9 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 10 | ) | 11 | ) | ||
| 11 | 12 | ||||
| 12 | // Class structure for #GUnixCredentialsMessage. | 13 | // Class structure for #GUnixCredentialsMessage. | ||
| @@ -48,6 +49,12 @@ type UnixCredentialsMessage struct { | |||||
| 48 | SocketControlMessage | 49 | SocketControlMessage | ||
| 49 | } | 50 | } | ||
| 50 | 51 | ||||
| 52 | + | var xUnixCredentialsMessageGLibType func() types.GType | |||
| 53 | + | ||||
| 54 | + | func UnixCredentialsMessageGLibType() types.GType { | |||
| 55 | + | return xUnixCredentialsMessageGLibType() | |||
| 56 | + | } | |||
| 57 | + | ||||
| 51 | func UnixCredentialsMessageNewFromInternalPtr(ptr uintptr) *UnixCredentialsMessage { | 58 | func UnixCredentialsMessageNewFromInternalPtr(ptr uintptr) *UnixCredentialsMessage { | ||
| 52 | cls := &UnixCredentialsMessage{} | 59 | cls := &UnixCredentialsMessage{} | ||
| 53 | cls.Ptr = ptr | 60 | cls.Ptr = ptr | ||
| @@ -126,6 +133,8 @@ func init() { | |||||
| 126 | panic(err) | 133 | panic(err) | ||
| 127 | } | 134 | } | ||
| 128 | 135 | ||||
| 136 | + | core.PuregoSafeRegister(&xUnixCredentialsMessageGLibType, lib, "g_unix_credentials_message_get_type") | |||
| 137 | + | ||||
| 129 | core.PuregoSafeRegister(&xNewUnixCredentialsMessage, lib, "g_unix_credentials_message_new") | 138 | core.PuregoSafeRegister(&xNewUnixCredentialsMessage, lib, "g_unix_credentials_message_new") | ||
| 130 | core.PuregoSafeRegister(&xNewUnixCredentialsMessageWithCredentials, lib, "g_unix_credentials_message_new_with_credentials") | 139 | core.PuregoSafeRegister(&xNewUnixCredentialsMessageWithCredentials, lib, "g_unix_credentials_message_new_with_credentials") | ||
| 131 | 140 | ||||
M v4/gio/gunixfdlist.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | type UnixFDListClass struct { | 14 | type UnixFDListClass struct { | ||
| @@ -39,6 +40,12 @@ type UnixFDList struct { | |||||
| 39 | gobject.Object | 40 | gobject.Object | ||
| 40 | } | 41 | } | ||
| 41 | 42 | ||||
| 43 | + | var xUnixFDListGLibType func() types.GType | |||
| 44 | + | ||||
| 45 | + | func UnixFDListGLibType() types.GType { | |||
| 46 | + | return xUnixFDListGLibType() | |||
| 47 | + | } | |||
| 48 | + | ||||
| 42 | func UnixFDListNewFromInternalPtr(ptr uintptr) *UnixFDList { | 49 | func UnixFDListNewFromInternalPtr(ptr uintptr) *UnixFDList { | ||
| 43 | cls := &UnixFDList{} | 50 | cls := &UnixFDList{} | ||
| 44 | cls.Ptr = ptr | 51 | cls.Ptr = ptr | ||
| @@ -205,6 +212,8 @@ func init() { | |||||
| 205 | panic(err) | 212 | panic(err) | ||
| 206 | } | 213 | } | ||
| 207 | 214 | ||||
| 215 | + | core.PuregoSafeRegister(&xUnixFDListGLibType, lib, "g_unix_fd_list_get_type") | |||
| 216 | + | ||||
| 208 | core.PuregoSafeRegister(&xNewUnixFDList, lib, "g_unix_fd_list_new") | 217 | core.PuregoSafeRegister(&xNewUnixFDList, lib, "g_unix_fd_list_new") | ||
| 209 | core.PuregoSafeRegister(&xNewUnixFDListFromArray, lib, "g_unix_fd_list_new_from_array") | 218 | core.PuregoSafeRegister(&xNewUnixFDListFromArray, lib, "g_unix_fd_list_new_from_array") | ||
| 210 | 219 | ||||
M v4/gio/gunixfdmessage.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | type UnixFDMessageClass struct { | 14 | type UnixFDMessageClass struct { | ||
| @@ -42,6 +43,12 @@ type UnixFDMessage struct { | |||||
| 42 | SocketControlMessage | 43 | SocketControlMessage | ||
| 43 | } | 44 | } | ||
| 44 | 45 | ||||
| 46 | + | var xUnixFDMessageGLibType func() types.GType | |||
| 47 | + | ||||
| 48 | + | func UnixFDMessageGLibType() types.GType { | |||
| 49 | + | return xUnixFDMessageGLibType() | |||
| 50 | + | } | |||
| 51 | + | ||||
| 45 | func UnixFDMessageNewFromInternalPtr(ptr uintptr) *UnixFDMessage { | 52 | func UnixFDMessageNewFromInternalPtr(ptr uintptr) *UnixFDMessage { | ||
| 46 | cls := &UnixFDMessage{} | 53 | cls := &UnixFDMessage{} | ||
| 47 | cls.Ptr = ptr | 54 | cls.Ptr = ptr | ||
| @@ -160,6 +167,8 @@ func init() { | |||||
| 160 | panic(err) | 167 | panic(err) | ||
| 161 | } | 168 | } | ||
| 162 | 169 | ||||
| 170 | + | core.PuregoSafeRegister(&xUnixFDMessageGLibType, lib, "g_unix_fd_message_get_type") | |||
| 171 | + | ||||
| 163 | core.PuregoSafeRegister(&xNewUnixFDMessage, lib, "g_unix_fd_message_new") | 172 | core.PuregoSafeRegister(&xNewUnixFDMessage, lib, "g_unix_fd_message_new") | ||
| 164 | core.PuregoSafeRegister(&xNewUnixFDMessageWithFdList, lib, "g_unix_fd_message_new_with_fd_list") | 173 | core.PuregoSafeRegister(&xNewUnixFDMessageWithFdList, lib, "g_unix_fd_message_new_with_fd_list") | ||
| 165 | 174 | ||||
M v4/gio/gunixinputstream.go +9 -0
| @@ -7,6 +7,7 @@ import ( | |||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 10 | ) | 11 | ) | ||
| 11 | 12 | ||||
| 12 | type UnixInputStreamClass struct { | 13 | type UnixInputStreamClass struct { | ||
| @@ -37,6 +38,12 @@ type UnixInputStream struct { | |||||
| 37 | InputStream | 38 | InputStream | ||
| 38 | } | 39 | } | ||
| 39 | 40 | ||||
| 41 | + | var xUnixInputStreamGLibType func() types.GType | |||
| 42 | + | ||||
| 43 | + | func UnixInputStreamGLibType() types.GType { | |||
| 44 | + | return xUnixInputStreamGLibType() | |||
| 45 | + | } | |||
| 46 | + | ||||
| 40 | func UnixInputStreamNewFromInternalPtr(ptr uintptr) *UnixInputStream { | 47 | func UnixInputStreamNewFromInternalPtr(ptr uintptr) *UnixInputStream { | ||
| 41 | cls := &UnixInputStream{} | 48 | cls := &UnixInputStream{} | ||
| 42 | cls.Ptr = ptr | 49 | cls.Ptr = ptr | ||
| @@ -168,6 +175,8 @@ func init() { | |||||
| 168 | panic(err) | 175 | panic(err) | ||
| 169 | } | 176 | } | ||
| 170 | 177 | ||||
| 178 | + | core.PuregoSafeRegister(&xUnixInputStreamGLibType, lib, "g_unix_input_stream_get_type") | |||
| 179 | + | ||||
| 171 | core.PuregoSafeRegister(&xNewUnixInputStream, lib, "g_unix_input_stream_new") | 180 | core.PuregoSafeRegister(&xNewUnixInputStream, lib, "g_unix_input_stream_new") | ||
| 172 | 181 | ||||
| 173 | core.PuregoSafeRegister(&xUnixInputStreamGetCloseFd, lib, "g_unix_input_stream_get_close_fd") | 182 | core.PuregoSafeRegister(&xUnixInputStreamGetCloseFd, lib, "g_unix_input_stream_get_close_fd") | ||
M v4/gio/gunixmounts.go +26 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | // Defines a Unix mount entry (e.g. <filename>/media/cdrom</filename>). | 14 | // Defines a Unix mount entry (e.g. <filename>/media/cdrom</filename>). | ||
| @@ -15,6 +16,12 @@ import ( | |||||
| 15 | type UnixMountEntry struct { | 16 | type UnixMountEntry struct { | ||
| 16 | } | 17 | } | ||
| 17 | 18 | ||||
| 19 | + | var xUnixMountEntryGLibType func() types.GType | |||
| 20 | + | ||||
| 21 | + | func UnixMountEntryGLibType() types.GType { | |||
| 22 | + | return xUnixMountEntryGLibType() | |||
| 23 | + | } | |||
| 24 | + | ||||
| 18 | func (x *UnixMountEntry) GoPointer() uintptr { | 25 | func (x *UnixMountEntry) GoPointer() uintptr { | ||
| 19 | return uintptr(unsafe.Pointer(x)) | 26 | return uintptr(unsafe.Pointer(x)) | ||
| 20 | } | 27 | } | ||
| @@ -31,6 +38,12 @@ func (x *UnixMountMonitorClass) GoPointer() uintptr { | |||||
| 31 | type UnixMountPoint struct { | 38 | type UnixMountPoint struct { | ||
| 32 | } | 39 | } | ||
| 33 | 40 | ||||
| 41 | + | var xUnixMountPointGLibType func() types.GType | |||
| 42 | + | ||||
| 43 | + | func UnixMountPointGLibType() types.GType { | |||
| 44 | + | return xUnixMountPointGLibType() | |||
| 45 | + | } | |||
| 46 | + | ||||
| 34 | func (x *UnixMountPoint) GoPointer() uintptr { | 47 | func (x *UnixMountPoint) GoPointer() uintptr { | ||
| 35 | return uintptr(unsafe.Pointer(x)) | 48 | return uintptr(unsafe.Pointer(x)) | ||
| 36 | } | 49 | } | ||
| @@ -476,6 +489,12 @@ type UnixMountMonitor struct { | |||||
| 476 | gobject.Object | 489 | gobject.Object | ||
| 477 | } | 490 | } | ||
| 478 | 491 | ||||
| 492 | + | var xUnixMountMonitorGLibType func() types.GType | |||
| 493 | + | ||||
| 494 | + | func UnixMountMonitorGLibType() types.GType { | |||
| 495 | + | return xUnixMountMonitorGLibType() | |||
| 496 | + | } | |||
| 497 | + | ||||
| 479 | func UnixMountMonitorNewFromInternalPtr(ptr uintptr) *UnixMountMonitor { | 498 | func UnixMountMonitorNewFromInternalPtr(ptr uintptr) *UnixMountMonitor { | ||
| 480 | cls := &UnixMountMonitor{} | 499 | cls := &UnixMountMonitor{} | ||
| 481 | cls.Ptr = ptr | 500 | cls.Ptr = ptr | ||
| @@ -593,6 +612,7 @@ func init() { | |||||
| 593 | if err != nil { | 612 | if err != nil { | ||
| 594 | panic(err) | 613 | panic(err) | ||
| 595 | } | 614 | } | ||
| 615 | + | ||||
| 596 | core.PuregoSafeRegister(&xUnixIsMountPathSystemInternal, lib, "g_unix_is_mount_path_system_internal") | 616 | core.PuregoSafeRegister(&xUnixIsMountPathSystemInternal, lib, "g_unix_is_mount_path_system_internal") | ||
| 597 | core.PuregoSafeRegister(&xUnixIsSystemDevicePath, lib, "g_unix_is_system_device_path") | 617 | core.PuregoSafeRegister(&xUnixIsSystemDevicePath, lib, "g_unix_is_system_device_path") | ||
| 598 | core.PuregoSafeRegister(&xUnixIsSystemFsType, lib, "g_unix_is_system_fs_type") | 618 | core.PuregoSafeRegister(&xUnixIsSystemFsType, lib, "g_unix_is_system_fs_type") | ||
| @@ -619,6 +639,10 @@ func init() { | |||||
| 619 | core.PuregoSafeRegister(&xUnixMountsChangedSince, lib, "g_unix_mounts_changed_since") | 639 | core.PuregoSafeRegister(&xUnixMountsChangedSince, lib, "g_unix_mounts_changed_since") | ||
| 620 | core.PuregoSafeRegister(&xUnixMountsGet, lib, "g_unix_mounts_get") | 640 | core.PuregoSafeRegister(&xUnixMountsGet, lib, "g_unix_mounts_get") | ||
| 621 | 641 | ||||
| 642 | + | core.PuregoSafeRegister(&xUnixMountEntryGLibType, lib, "g_unix_mount_entry_get_type") | |||
| 643 | + | ||||
| 644 | + | core.PuregoSafeRegister(&xUnixMountPointGLibType, lib, "g_unix_mount_point_get_type") | |||
| 645 | + | ||||
| 622 | core.PuregoSafeRegister(&xUnixMountPointCompare, lib, "g_unix_mount_point_compare") | 646 | core.PuregoSafeRegister(&xUnixMountPointCompare, lib, "g_unix_mount_point_compare") | ||
| 623 | core.PuregoSafeRegister(&xUnixMountPointCopy, lib, "g_unix_mount_point_copy") | 647 | core.PuregoSafeRegister(&xUnixMountPointCopy, lib, "g_unix_mount_point_copy") | ||
| 624 | core.PuregoSafeRegister(&xUnixMountPointFree, lib, "g_unix_mount_point_free") | 648 | core.PuregoSafeRegister(&xUnixMountPointFree, lib, "g_unix_mount_point_free") | ||
| @@ -634,6 +658,8 @@ func init() { | |||||
| 634 | core.PuregoSafeRegister(&xUnixMountPointIsReadonly, lib, "g_unix_mount_point_is_readonly") | 658 | core.PuregoSafeRegister(&xUnixMountPointIsReadonly, lib, "g_unix_mount_point_is_readonly") | ||
| 635 | core.PuregoSafeRegister(&xUnixMountPointIsUserMountable, lib, "g_unix_mount_point_is_user_mountable") | 659 | core.PuregoSafeRegister(&xUnixMountPointIsUserMountable, lib, "g_unix_mount_point_is_user_mountable") | ||
| 636 | 660 | ||||
| 661 | + | core.PuregoSafeRegister(&xUnixMountMonitorGLibType, lib, "g_unix_mount_monitor_get_type") | |||
| 662 | + | ||||
| 637 | core.PuregoSafeRegister(&xNewUnixMountMonitor, lib, "g_unix_mount_monitor_new") | 663 | core.PuregoSafeRegister(&xNewUnixMountMonitor, lib, "g_unix_mount_monitor_new") | ||
| 638 | 664 | ||||
| 639 | core.PuregoSafeRegister(&xUnixMountMonitorSetRateLimit, lib, "g_unix_mount_monitor_set_rate_limit") | 665 | core.PuregoSafeRegister(&xUnixMountMonitorSetRateLimit, lib, "g_unix_mount_monitor_set_rate_limit") | ||
M v4/gio/gunixoutputstream.go +9 -0
| @@ -7,6 +7,7 @@ import ( | |||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 10 | ) | 11 | ) | ||
| 11 | 12 | ||||
| 12 | type UnixOutputStreamClass struct { | 13 | type UnixOutputStreamClass struct { | ||
| @@ -37,6 +38,12 @@ type UnixOutputStream struct { | |||||
| 37 | OutputStream | 38 | OutputStream | ||
| 38 | } | 39 | } | ||
| 39 | 40 | ||||
| 41 | + | var xUnixOutputStreamGLibType func() types.GType | |||
| 42 | + | ||||
| 43 | + | func UnixOutputStreamGLibType() types.GType { | |||
| 44 | + | return xUnixOutputStreamGLibType() | |||
| 45 | + | } | |||
| 46 | + | ||||
| 40 | func UnixOutputStreamNewFromInternalPtr(ptr uintptr) *UnixOutputStream { | 47 | func UnixOutputStreamNewFromInternalPtr(ptr uintptr) *UnixOutputStream { | ||
| 41 | cls := &UnixOutputStream{} | 48 | cls := &UnixOutputStream{} | ||
| 42 | cls.Ptr = ptr | 49 | cls.Ptr = ptr | ||
| @@ -199,6 +206,8 @@ func init() { | |||||
| 199 | panic(err) | 206 | panic(err) | ||
| 200 | } | 207 | } | ||
| 201 | 208 | ||||
| 209 | + | core.PuregoSafeRegister(&xUnixOutputStreamGLibType, lib, "g_unix_output_stream_get_type") | |||
| 210 | + | ||||
| 202 | core.PuregoSafeRegister(&xNewUnixOutputStream, lib, "g_unix_output_stream_new") | 211 | core.PuregoSafeRegister(&xNewUnixOutputStream, lib, "g_unix_output_stream_new") | ||
| 203 | 212 | ||||
| 204 | core.PuregoSafeRegister(&xUnixOutputStreamGetCloseFd, lib, "g_unix_output_stream_get_close_fd") | 213 | core.PuregoSafeRegister(&xUnixOutputStreamGetCloseFd, lib, "g_unix_output_stream_get_close_fd") | ||
M v4/gio/gunixsocketaddress.go +9 -0
| @@ -6,6 +6,7 @@ import ( | |||||
| 6 | 6 | ||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 9 | ) | 10 | ) | ||
| 10 | 11 | ||||
| 11 | type UnixSocketAddressClass struct { | 12 | type UnixSocketAddressClass struct { | ||
| @@ -45,6 +46,12 @@ type UnixSocketAddress struct { | |||||
| 45 | SocketAddress | 46 | SocketAddress | ||
| 46 | } | 47 | } | ||
| 47 | 48 | ||||
| 49 | + | var xUnixSocketAddressGLibType func() types.GType | |||
| 50 | + | ||||
| 51 | + | func UnixSocketAddressGLibType() types.GType { | |||
| 52 | + | return xUnixSocketAddressGLibType() | |||
| 53 | + | } | |||
| 54 | + | ||||
| 48 | func UnixSocketAddressNewFromInternalPtr(ptr uintptr) *UnixSocketAddress { | 55 | func UnixSocketAddressNewFromInternalPtr(ptr uintptr) *UnixSocketAddress { | ||
| 49 | cls := &UnixSocketAddress{} | 56 | cls := &UnixSocketAddress{} | ||
| 50 | cls.Ptr = ptr | 57 | cls.Ptr = ptr | ||
| @@ -246,6 +253,8 @@ func init() { | |||||
| 246 | panic(err) | 253 | panic(err) | ||
| 247 | } | 254 | } | ||
| 248 | 255 | ||||
| 256 | + | core.PuregoSafeRegister(&xUnixSocketAddressGLibType, lib, "g_unix_socket_address_get_type") | |||
| 257 | + | ||||
| 249 | core.PuregoSafeRegister(&xNewUnixSocketAddress, lib, "g_unix_socket_address_new") | 258 | core.PuregoSafeRegister(&xNewUnixSocketAddress, lib, "g_unix_socket_address_new") | ||
| 250 | core.PuregoSafeRegister(&xNewUnixSocketAddressAbstract, lib, "g_unix_socket_address_new_abstract") | 259 | core.PuregoSafeRegister(&xNewUnixSocketAddressAbstract, lib, "g_unix_socket_address_new_abstract") | ||
| 251 | core.PuregoSafeRegister(&xNewUnixSocketAddressWithType, lib, "g_unix_socket_address_new_with_type") | 260 | core.PuregoSafeRegister(&xNewUnixSocketAddressWithType, lib, "g_unix_socket_address_new_with_type") | ||
M v4/gio/gvfs.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | // This function type is used by g_vfs_register_uri_scheme() to make it | 14 | // This function type is used by g_vfs_register_uri_scheme() to make it | ||
| @@ -37,6 +38,12 @@ type Vfs struct { | |||||
| 37 | gobject.Object | 38 | gobject.Object | ||
| 38 | } | 39 | } | ||
| 39 | 40 | ||||
| 41 | + | var xVfsGLibType func() types.GType | |||
| 42 | + | ||||
| 43 | + | func VfsGLibType() types.GType { | |||
| 44 | + | return xVfsGLibType() | |||
| 45 | + | } | |||
| 46 | + | ||||
| 40 | func VfsNewFromInternalPtr(ptr uintptr) *Vfs { | 47 | func VfsNewFromInternalPtr(ptr uintptr) *Vfs { | ||
| 41 | cls := &Vfs{} | 48 | cls := &Vfs{} | ||
| 42 | cls.Ptr = ptr | 49 | cls.Ptr = ptr | ||
| @@ -201,6 +208,8 @@ func init() { | |||||
| 201 | panic(err) | 208 | panic(err) | ||
| 202 | } | 209 | } | ||
| 203 | 210 | ||||
| 211 | + | core.PuregoSafeRegister(&xVfsGLibType, lib, "g_vfs_get_type") | |||
| 212 | + | ||||
| 204 | core.PuregoSafeRegister(&xVfsGetFileForPath, lib, "g_vfs_get_file_for_path") | 213 | core.PuregoSafeRegister(&xVfsGetFileForPath, lib, "g_vfs_get_file_for_path") | ||
| 205 | core.PuregoSafeRegister(&xVfsGetFileForUri, lib, "g_vfs_get_file_for_uri") | 214 | core.PuregoSafeRegister(&xVfsGetFileForUri, lib, "g_vfs_get_file_for_uri") | ||
| 206 | core.PuregoSafeRegister(&xVfsGetSupportedUriSchemes, lib, "g_vfs_get_supported_uri_schemes") | 215 | core.PuregoSafeRegister(&xVfsGetSupportedUriSchemes, lib, "g_vfs_get_supported_uri_schemes") | ||
M v4/gio/gvolume.go +10 -0
| @@ -7,6 +7,7 @@ import ( | |||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 10 | ) | 11 | ) | ||
| 11 | 12 | ||||
| 12 | // Interface for implementing operations for mountable volumes. | 13 | // Interface for implementing operations for mountable volumes. | ||
| @@ -81,6 +82,13 @@ type Volume interface { | |||||
| 81 | MountFinish(ResultVar AsyncResult) bool | 82 | MountFinish(ResultVar AsyncResult) bool | ||
| 82 | ShouldAutomount() bool | 83 | ShouldAutomount() bool | ||
| 83 | } | 84 | } | ||
| 85 | + | ||||
| 86 | + | var xVolumeGLibType func() types.GType | |||
| 87 | + | ||||
| 88 | + | func VolumeGLibType() types.GType { | |||
| 89 | + | return xVolumeGLibType() | |||
| 90 | + | } | |||
| 91 | + | ||||
| 84 | type VolumeBase struct { | 92 | type VolumeBase struct { | ||
| 85 | Ptr uintptr | 93 | Ptr uintptr | ||
| 86 | } | 94 | } | ||
| @@ -374,6 +382,8 @@ func init() { | |||||
| 374 | panic(err) | 382 | panic(err) | ||
| 375 | } | 383 | } | ||
| 376 | 384 | ||||
| 385 | + | core.PuregoSafeRegister(&xVolumeGLibType, lib, "g_volume_get_type") | |||
| 386 | + | ||||
| 377 | core.PuregoSafeRegister(&XGVolumeCanEject, lib, "g_volume_can_eject") | 387 | core.PuregoSafeRegister(&XGVolumeCanEject, lib, "g_volume_can_eject") | ||
| 378 | core.PuregoSafeRegister(&XGVolumeCanMount, lib, "g_volume_can_mount") | 388 | core.PuregoSafeRegister(&XGVolumeCanMount, lib, "g_volume_can_mount") | ||
| 379 | core.PuregoSafeRegister(&XGVolumeEject, lib, "g_volume_eject") | 389 | core.PuregoSafeRegister(&XGVolumeEject, lib, "g_volume_eject") | ||
M v4/gio/gvolumemonitor.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | type VolumeMonitorClass struct { | 14 | type VolumeMonitorClass struct { | ||
| @@ -39,6 +40,12 @@ type VolumeMonitor struct { | |||||
| 39 | gobject.Object | 40 | gobject.Object | ||
| 40 | } | 41 | } | ||
| 41 | 42 | ||||
| 43 | + | var xVolumeMonitorGLibType func() types.GType | |||
| 44 | + | ||||
| 45 | + | func VolumeMonitorGLibType() types.GType { | |||
| 46 | + | return xVolumeMonitorGLibType() | |||
| 47 | + | } | |||
| 48 | + | ||||
| 42 | func VolumeMonitorNewFromInternalPtr(ptr uintptr) *VolumeMonitor { | 49 | func VolumeMonitorNewFromInternalPtr(ptr uintptr) *VolumeMonitor { | ||
| 43 | cls := &VolumeMonitor{} | 50 | cls := &VolumeMonitor{} | ||
| 44 | cls.Ptr = ptr | 51 | cls.Ptr = ptr | ||
| @@ -429,6 +436,8 @@ func init() { | |||||
| 429 | panic(err) | 436 | panic(err) | ||
| 430 | } | 437 | } | ||
| 431 | 438 | ||||
| 439 | + | core.PuregoSafeRegister(&xVolumeMonitorGLibType, lib, "g_volume_monitor_get_type") | |||
| 440 | + | ||||
| 432 | core.PuregoSafeRegister(&xVolumeMonitorGetConnectedDrives, lib, "g_volume_monitor_get_connected_drives") | 441 | core.PuregoSafeRegister(&xVolumeMonitorGetConnectedDrives, lib, "g_volume_monitor_get_connected_drives") | ||
| 433 | core.PuregoSafeRegister(&xVolumeMonitorGetMountForUuid, lib, "g_volume_monitor_get_mount_for_uuid") | 442 | core.PuregoSafeRegister(&xVolumeMonitorGetMountForUuid, lib, "g_volume_monitor_get_mount_for_uuid") | ||
| 434 | core.PuregoSafeRegister(&xVolumeMonitorGetMounts, lib, "g_volume_monitor_get_mounts") | 443 | core.PuregoSafeRegister(&xVolumeMonitorGetMounts, lib, "g_volume_monitor_get_mounts") | ||
M v4/gio/gzlibcompressor.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | type ZlibCompressorClass struct { | 14 | type ZlibCompressorClass struct { | ||
| @@ -24,6 +25,12 @@ type ZlibCompressor struct { | |||||
| 24 | gobject.Object | 25 | gobject.Object | ||
| 25 | } | 26 | } | ||
| 26 | 27 | ||||
| 28 | + | var xZlibCompressorGLibType func() types.GType | |||
| 29 | + | ||||
| 30 | + | func ZlibCompressorGLibType() types.GType { | |||
| 31 | + | return xZlibCompressorGLibType() | |||
| 32 | + | } | |||
| 33 | + | ||||
| 27 | func ZlibCompressorNewFromInternalPtr(ptr uintptr) *ZlibCompressor { | 34 | func ZlibCompressorNewFromInternalPtr(ptr uintptr) *ZlibCompressor { | ||
| 28 | cls := &ZlibCompressor{} | 35 | cls := &ZlibCompressor{} | ||
| 29 | cls.Ptr = ptr | 36 | cls.Ptr = ptr | ||
| @@ -195,6 +202,8 @@ func init() { | |||||
| 195 | panic(err) | 202 | panic(err) | ||
| 196 | } | 203 | } | ||
| 197 | 204 | ||||
| 205 | + | core.PuregoSafeRegister(&xZlibCompressorGLibType, lib, "g_zlib_compressor_get_type") | |||
| 206 | + | ||||
| 198 | core.PuregoSafeRegister(&xNewZlibCompressor, lib, "g_zlib_compressor_new") | 207 | core.PuregoSafeRegister(&xNewZlibCompressor, lib, "g_zlib_compressor_new") | ||
| 199 | 208 | ||||
| 200 | core.PuregoSafeRegister(&xZlibCompressorGetFileInfo, lib, "g_zlib_compressor_get_file_info") | 209 | core.PuregoSafeRegister(&xZlibCompressorGetFileInfo, lib, "g_zlib_compressor_get_file_info") | ||
M v4/gio/gzlibdecompressor.go +9 -0
| @@ -8,6 +8,7 @@ import ( | |||||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | "github.com/jwijenbergh/puregotk/v4/glib" | 9 | "github.com/jwijenbergh/puregotk/v4/glib" | ||
| 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | 10 | "github.com/jwijenbergh/puregotk/v4/gobject" | ||
| 11 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 11 | ) | 12 | ) | ||
| 12 | 13 | ||||
| 13 | type ZlibDecompressorClass struct { | 14 | type ZlibDecompressorClass struct { | ||
| @@ -24,6 +25,12 @@ type ZlibDecompressor struct { | |||||
| 24 | gobject.Object | 25 | gobject.Object | ||
| 25 | } | 26 | } | ||
| 26 | 27 | ||||
| 28 | + | var xZlibDecompressorGLibType func() types.GType | |||
| 29 | + | ||||
| 30 | + | func ZlibDecompressorGLibType() types.GType { | |||
| 31 | + | return xZlibDecompressorGLibType() | |||
| 32 | + | } | |||
| 33 | + | ||||
| 27 | func ZlibDecompressorNewFromInternalPtr(ptr uintptr) *ZlibDecompressor { | 34 | func ZlibDecompressorNewFromInternalPtr(ptr uintptr) *ZlibDecompressor { | ||
| 28 | cls := &ZlibDecompressor{} | 35 | cls := &ZlibDecompressor{} | ||
| 29 | cls.Ptr = ptr | 36 | cls.Ptr = ptr | ||
| @@ -183,6 +190,8 @@ func init() { | |||||
| 183 | panic(err) | 190 | panic(err) | ||
| 184 | } | 191 | } | ||
| 185 | 192 | ||||
| 193 | + | core.PuregoSafeRegister(&xZlibDecompressorGLibType, lib, "g_zlib_decompressor_get_type") | |||
| 194 | + | ||||
| 186 | core.PuregoSafeRegister(&xNewZlibDecompressor, lib, "g_zlib_decompressor_new") | 195 | core.PuregoSafeRegister(&xNewZlibDecompressor, lib, "g_zlib_decompressor_new") | ||
| 187 | 196 | ||||
| 188 | core.PuregoSafeRegister(&xZlibDecompressorGetFileInfo, lib, "g_zlib_decompressor_get_file_info") | 197 | core.PuregoSafeRegister(&xZlibDecompressorGetFileInfo, lib, "g_zlib_decompressor_get_file_info") | ||
M v4/gio/main.go +1 -0
| @@ -20,6 +20,7 @@ func init() { | |||||
| 20 | if err != nil { | 20 | if err != nil { | ||
| 21 | panic(err) | 21 | panic(err) | ||
| 22 | } | 22 | } | ||
| 23 | + | ||||
| 23 | core.PuregoSafeRegister(&xDbusErrorQuark, lib, "g_dbus_error_quark") | 24 | core.PuregoSafeRegister(&xDbusErrorQuark, lib, "g_dbus_error_quark") | ||
| 24 | 25 | ||||
| 25 | } | 26 | } | ||
M v4/glib/garray.go +34 -0
| @@ -6,6 +6,7 @@ import ( | |||||
| 6 | 6 | ||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 9 | ) | 10 | ) | ||
| 10 | 11 | ||||
| 11 | // Contains the public fields of a GArray. | 12 | // Contains the public fields of a GArray. | ||
| @@ -15,6 +16,12 @@ type Array struct { | |||||
| 15 | Len uint | 16 | Len uint | ||
| 16 | } | 17 | } | ||
| 17 | 18 | ||||
| 19 | + | var xArrayGLibType func() types.GType | |||
| 20 | + | ||||
| 21 | + | func ArrayGLibType() types.GType { | |||
| 22 | + | return xArrayGLibType() | |||
| 23 | + | } | |||
| 24 | + | ||||
| 18 | func (x *Array) GoPointer() uintptr { | 25 | func (x *Array) GoPointer() uintptr { | ||
| 19 | return uintptr(unsafe.Pointer(x)) | 26 | return uintptr(unsafe.Pointer(x)) | ||
| 20 | } | 27 | } | ||
| @@ -26,6 +33,12 @@ type ByteArray struct { | |||||
| 26 | Len uint | 33 | Len uint | ||
| 27 | } | 34 | } | ||
| 28 | 35 | ||||
| 36 | + | var xByteArrayGLibType func() types.GType | |||
| 37 | + | ||||
| 38 | + | func ByteArrayGLibType() types.GType { | |||
| 39 | + | return xByteArrayGLibType() | |||
| 40 | + | } | |||
| 41 | + | ||||
| 29 | func (x *ByteArray) GoPointer() uintptr { | 42 | func (x *ByteArray) GoPointer() uintptr { | ||
| 30 | return uintptr(unsafe.Pointer(x)) | 43 | return uintptr(unsafe.Pointer(x)) | ||
| 31 | } | 44 | } | ||
| @@ -57,6 +70,12 @@ func (x *ByteArray) GoPointer() uintptr { | |||||
| 57 | type Bytes struct { | 70 | type Bytes struct { | ||
| 58 | } | 71 | } | ||
| 59 | 72 | ||||
| 73 | + | var xBytesGLibType func() types.GType | |||
| 74 | + | ||||
| 75 | + | func BytesGLibType() types.GType { | |||
| 76 | + | return xBytesGLibType() | |||
| 77 | + | } | |||
| 78 | + | ||||
| 60 | func (x *Bytes) GoPointer() uintptr { | 79 | func (x *Bytes) GoPointer() uintptr { | ||
| 61 | return uintptr(unsafe.Pointer(x)) | 80 | return uintptr(unsafe.Pointer(x)) | ||
| 62 | } | 81 | } | ||
| @@ -296,6 +315,12 @@ type PtrArray struct { | |||||
| 296 | Len uint | 315 | Len uint | ||
| 297 | } | 316 | } | ||
| 298 | 317 | ||||
| 318 | + | var xPtrArrayGLibType func() types.GType | |||
| 319 | + | ||||
| 320 | + | func PtrArrayGLibType() types.GType { | |||
| 321 | + | return xPtrArrayGLibType() | |||
| 322 | + | } | |||
| 323 | + | ||||
| 299 | func (x *PtrArray) GoPointer() uintptr { | 324 | func (x *PtrArray) GoPointer() uintptr { | ||
| 300 | return uintptr(unsafe.Pointer(x)) | 325 | return uintptr(unsafe.Pointer(x)) | ||
| 301 | } | 326 | } | ||
| @@ -411,6 +436,7 @@ func init() { | |||||
| 411 | if err != nil { | 436 | if err != nil { | ||
| 412 | panic(err) | 437 | panic(err) | ||
| 413 | } | 438 | } | ||
| 439 | + | ||||
| 414 | core.PuregoSafeRegister(&xByteArrayFree, lib, "g_byte_array_free") | 440 | core.PuregoSafeRegister(&xByteArrayFree, lib, "g_byte_array_free") | ||
| 415 | core.PuregoSafeRegister(&xByteArrayFreeToBytes, lib, "g_byte_array_free_to_bytes") | 441 | core.PuregoSafeRegister(&xByteArrayFreeToBytes, lib, "g_byte_array_free_to_bytes") | ||
| 416 | core.PuregoSafeRegister(&xByteArrayNew, lib, "g_byte_array_new") | 442 | core.PuregoSafeRegister(&xByteArrayNew, lib, "g_byte_array_new") | ||
| @@ -420,6 +446,12 @@ func init() { | |||||
| 420 | core.PuregoSafeRegister(&xPtrArrayFind, lib, "g_ptr_array_find") | 446 | core.PuregoSafeRegister(&xPtrArrayFind, lib, "g_ptr_array_find") | ||
| 421 | core.PuregoSafeRegister(&xPtrArrayFindWithEqualFunc, lib, "g_ptr_array_find_with_equal_func") | 447 | core.PuregoSafeRegister(&xPtrArrayFindWithEqualFunc, lib, "g_ptr_array_find_with_equal_func") | ||
| 422 | 448 | ||||
| 449 | + | core.PuregoSafeRegister(&xArrayGLibType, lib, "g_array_get_type") | |||
| 450 | + | ||||
| 451 | + | core.PuregoSafeRegister(&xByteArrayGLibType, lib, "g_byte_array_get_type") | |||
| 452 | + | ||||
| 453 | + | core.PuregoSafeRegister(&xBytesGLibType, lib, "g_bytes_get_type") | |||
| 454 | + | ||||
| 423 | core.PuregoSafeRegister(&xNewBytes, lib, "g_bytes_new") | 455 | core.PuregoSafeRegister(&xNewBytes, lib, "g_bytes_new") | ||
| 424 | core.PuregoSafeRegister(&xNewBytesStatic, lib, "g_bytes_new_static") | 456 | core.PuregoSafeRegister(&xNewBytesStatic, lib, "g_bytes_new_static") | ||
| 425 | core.PuregoSafeRegister(&xNewBytesTake, lib, "g_bytes_new_take") | 457 | core.PuregoSafeRegister(&xNewBytesTake, lib, "g_bytes_new_take") | ||
| @@ -437,4 +469,6 @@ func init() { | |||||
| 437 | core.PuregoSafeRegister(&xBytesUnrefToArray, lib, "g_bytes_unref_to_array") | 469 | core.PuregoSafeRegister(&xBytesUnrefToArray, lib, "g_bytes_unref_to_array") | ||
| 438 | core.PuregoSafeRegister(&xBytesUnrefToData, lib, "g_bytes_unref_to_data") | 470 | core.PuregoSafeRegister(&xBytesUnrefToData, lib, "g_bytes_unref_to_data") | ||
| 439 | 471 | ||||
| 472 | + | core.PuregoSafeRegister(&xPtrArrayGLibType, lib, "g_ptr_array_get_type") | |||
| 473 | + | ||||
| 440 | } | 474 | } | ||
M v4/glib/gatomic.go +1 -0
| @@ -300,6 +300,7 @@ func init() { | |||||
| 300 | if err != nil { | 300 | if err != nil { | ||
| 301 | panic(err) | 301 | panic(err) | ||
| 302 | } | 302 | } | ||
| 303 | + | ||||
| 303 | core.PuregoSafeRegister(&xAtomicIntAdd, lib, "g_atomic_int_add") | 304 | core.PuregoSafeRegister(&xAtomicIntAdd, lib, "g_atomic_int_add") | ||
| 304 | core.PuregoSafeRegister(&xAtomicIntAnd, lib, "g_atomic_int_and") | 305 | core.PuregoSafeRegister(&xAtomicIntAnd, lib, "g_atomic_int_and") | ||
| 305 | core.PuregoSafeRegister(&xAtomicIntCompareAndExchange, lib, "g_atomic_int_compare_and_exchange") | 306 | core.PuregoSafeRegister(&xAtomicIntCompareAndExchange, lib, "g_atomic_int_compare_and_exchange") | ||
M v4/glib/gbacktrace.go +1 -0
| @@ -90,6 +90,7 @@ func init() { | |||||
| 90 | if err != nil { | 90 | if err != nil { | ||
| 91 | panic(err) | 91 | panic(err) | ||
| 92 | } | 92 | } | ||
| 93 | + | ||||
| 93 | core.PuregoSafeRegister(&xOnErrorQuery, lib, "g_on_error_query") | 94 | core.PuregoSafeRegister(&xOnErrorQuery, lib, "g_on_error_query") | ||
| 94 | core.PuregoSafeRegister(&xOnErrorStackTrace, lib, "g_on_error_stack_trace") | 95 | core.PuregoSafeRegister(&xOnErrorStackTrace, lib, "g_on_error_stack_trace") | ||
| 95 | 96 | ||||
M v4/glib/gbase64.go +1 -0
| @@ -100,6 +100,7 @@ func init() { | |||||
| 100 | if err != nil { | 100 | if err != nil { | ||
| 101 | panic(err) | 101 | panic(err) | ||
| 102 | } | 102 | } | ||
| 103 | + | ||||
| 103 | core.PuregoSafeRegister(&xBase64Decode, lib, "g_base64_decode") | 104 | core.PuregoSafeRegister(&xBase64Decode, lib, "g_base64_decode") | ||
| 104 | core.PuregoSafeRegister(&xBase64DecodeInplace, lib, "g_base64_decode_inplace") | 105 | core.PuregoSafeRegister(&xBase64DecodeInplace, lib, "g_base64_decode_inplace") | ||
| 105 | core.PuregoSafeRegister(&xBase64DecodeStep, lib, "g_base64_decode_step") | 106 | core.PuregoSafeRegister(&xBase64DecodeStep, lib, "g_base64_decode_step") | ||
M v4/glib/gbitlock.go +1 -0
| @@ -118,6 +118,7 @@ func init() { | |||||
| 118 | if err != nil { | 118 | if err != nil { | ||
| 119 | panic(err) | 119 | panic(err) | ||
| 120 | } | 120 | } | ||
| 121 | + | ||||
| 121 | core.PuregoSafeRegister(&xBitLock, lib, "g_bit_lock") | 122 | core.PuregoSafeRegister(&xBitLock, lib, "g_bit_lock") | ||
| 122 | core.PuregoSafeRegister(&xBitTrylock, lib, "g_bit_trylock") | 123 | core.PuregoSafeRegister(&xBitTrylock, lib, "g_bit_trylock") | ||
| 123 | core.PuregoSafeRegister(&xBitUnlock, lib, "g_bit_unlock") | 124 | core.PuregoSafeRegister(&xBitUnlock, lib, "g_bit_unlock") | ||
M v4/glib/gcharset.go +1 -0
| @@ -133,6 +133,7 @@ func init() { | |||||
| 133 | if err != nil { | 133 | if err != nil { | ||
| 134 | panic(err) | 134 | panic(err) | ||
| 135 | } | 135 | } | ||
| 136 | + | ||||
| 136 | core.PuregoSafeRegister(&xGetCharset, lib, "g_get_charset") | 137 | core.PuregoSafeRegister(&xGetCharset, lib, "g_get_charset") | ||
| 137 | core.PuregoSafeRegister(&xGetCodeset, lib, "g_get_codeset") | 138 | core.PuregoSafeRegister(&xGetCodeset, lib, "g_get_codeset") | ||
| 138 | core.PuregoSafeRegister(&xGetConsoleCharset, lib, "g_get_console_charset") | 139 | core.PuregoSafeRegister(&xGetConsoleCharset, lib, "g_get_console_charset") | ||
M v4/glib/gchecksum.go +10 -0
| @@ -6,6 +6,7 @@ import ( | |||||
| 6 | 6 | ||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 9 | ) | 10 | ) | ||
| 10 | 11 | ||||
| 11 | // An opaque structure representing a checksumming operation. | 12 | // An opaque structure representing a checksumming operation. | ||
| @@ -15,6 +16,12 @@ import ( | |||||
| 15 | type Checksum struct { | 16 | type Checksum struct { | ||
| 16 | } | 17 | } | ||
| 17 | 18 | ||||
| 19 | + | var xChecksumGLibType func() types.GType | |||
| 20 | + | ||||
| 21 | + | func ChecksumGLibType() types.GType { | |||
| 22 | + | return xChecksumGLibType() | |||
| 23 | + | } | |||
| 24 | + | ||||
| 18 | func (x *Checksum) GoPointer() uintptr { | 25 | func (x *Checksum) GoPointer() uintptr { | ||
| 19 | return uintptr(unsafe.Pointer(x)) | 26 | return uintptr(unsafe.Pointer(x)) | ||
| 20 | } | 27 | } | ||
| @@ -179,11 +186,14 @@ func init() { | |||||
| 179 | if err != nil { | 186 | if err != nil { | ||
| 180 | panic(err) | 187 | panic(err) | ||
| 181 | } | 188 | } | ||
| 189 | + | ||||
| 182 | core.PuregoSafeRegister(&xChecksumTypeGetLength, lib, "g_checksum_type_get_length") | 190 | core.PuregoSafeRegister(&xChecksumTypeGetLength, lib, "g_checksum_type_get_length") | ||
| 183 | core.PuregoSafeRegister(&xComputeChecksumForBytes, lib, "g_compute_checksum_for_bytes") | 191 | core.PuregoSafeRegister(&xComputeChecksumForBytes, lib, "g_compute_checksum_for_bytes") | ||
| 184 | core.PuregoSafeRegister(&xComputeChecksumForData, lib, "g_compute_checksum_for_data") | 192 | core.PuregoSafeRegister(&xComputeChecksumForData, lib, "g_compute_checksum_for_data") | ||
| 185 | core.PuregoSafeRegister(&xComputeChecksumForString, lib, "g_compute_checksum_for_string") | 193 | core.PuregoSafeRegister(&xComputeChecksumForString, lib, "g_compute_checksum_for_string") | ||
| 186 | 194 | ||||
| 195 | + | core.PuregoSafeRegister(&xChecksumGLibType, lib, "g_checksum_get_type") | |||
| 196 | + | ||||
| 187 | core.PuregoSafeRegister(&xNewChecksum, lib, "g_checksum_new") | 197 | core.PuregoSafeRegister(&xNewChecksum, lib, "g_checksum_new") | ||
| 188 | 198 | ||||
| 189 | core.PuregoSafeRegister(&xChecksumCopy, lib, "g_checksum_copy") | 199 | core.PuregoSafeRegister(&xChecksumCopy, lib, "g_checksum_copy") | ||
M v4/glib/gconvert.go +1 -0
| @@ -425,6 +425,7 @@ func init() { | |||||
| 425 | if err != nil { | 425 | if err != nil { | ||
| 426 | panic(err) | 426 | panic(err) | ||
| 427 | } | 427 | } | ||
| 428 | + | ||||
| 428 | core.PuregoSafeRegister(&xConvert, lib, "g_convert") | 429 | core.PuregoSafeRegister(&xConvert, lib, "g_convert") | ||
| 429 | core.PuregoSafeRegister(&xConvertWithFallback, lib, "g_convert_with_fallback") | 430 | core.PuregoSafeRegister(&xConvertWithFallback, lib, "g_convert_with_fallback") | ||
| 430 | core.PuregoSafeRegister(&xConvertWithIconv, lib, "g_convert_with_iconv") | 431 | core.PuregoSafeRegister(&xConvertWithIconv, lib, "g_convert_with_iconv") | ||
M v4/glib/gdataset.go +1 -0
| @@ -253,6 +253,7 @@ func init() { | |||||
| 253 | if err != nil { | 253 | if err != nil { | ||
| 254 | panic(err) | 254 | panic(err) | ||
| 255 | } | 255 | } | ||
| 256 | + | ||||
| 256 | core.PuregoSafeRegister(&xDatalistClear, lib, "g_datalist_clear") | 257 | core.PuregoSafeRegister(&xDatalistClear, lib, "g_datalist_clear") | ||
| 257 | core.PuregoSafeRegister(&xDatalistForeach, lib, "g_datalist_foreach") | 258 | core.PuregoSafeRegister(&xDatalistForeach, lib, "g_datalist_foreach") | ||
| 258 | core.PuregoSafeRegister(&xDatalistGetData, lib, "g_datalist_get_data") | 259 | core.PuregoSafeRegister(&xDatalistGetData, lib, "g_datalist_get_data") | ||
M v4/glib/gdate.go +10 -0
| @@ -6,6 +6,7 @@ import ( | |||||
| 6 | 6 | ||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 9 | ) | 10 | ) | ||
| 10 | 11 | ||||
| 11 | // Represents a day between January 1, Year 1 and a few thousand years in | 12 | // Represents a day between January 1, Year 1 and a few thousand years in | ||
| @@ -33,6 +34,12 @@ type Date struct { | |||||
| 33 | Year uint | 34 | Year uint | ||
| 34 | } | 35 | } | ||
| 35 | 36 | ||||
| 37 | + | var xDateGLibType func() types.GType | |||
| 38 | + | ||||
| 39 | + | func DateGLibType() types.GType { | |||
| 40 | + | return xDateGLibType() | |||
| 41 | + | } | |||
| 42 | + | ||||
| 36 | func (x *Date) GoPointer() uintptr { | 43 | func (x *Date) GoPointer() uintptr { | ||
| 37 | return uintptr(unsafe.Pointer(x)) | 44 | return uintptr(unsafe.Pointer(x)) | ||
| 38 | } | 45 | } | ||
| @@ -727,6 +734,7 @@ func init() { | |||||
| 727 | if err != nil { | 734 | if err != nil { | ||
| 728 | panic(err) | 735 | panic(err) | ||
| 729 | } | 736 | } | ||
| 737 | + | ||||
| 730 | core.PuregoSafeRegister(&xDateGetDaysInMonth, lib, "g_date_get_days_in_month") | 738 | core.PuregoSafeRegister(&xDateGetDaysInMonth, lib, "g_date_get_days_in_month") | ||
| 731 | core.PuregoSafeRegister(&xDateGetMondayWeeksInYear, lib, "g_date_get_monday_weeks_in_year") | 739 | core.PuregoSafeRegister(&xDateGetMondayWeeksInYear, lib, "g_date_get_monday_weeks_in_year") | ||
| 732 | core.PuregoSafeRegister(&xDateGetSundayWeeksInYear, lib, "g_date_get_sunday_weeks_in_year") | 740 | core.PuregoSafeRegister(&xDateGetSundayWeeksInYear, lib, "g_date_get_sunday_weeks_in_year") | ||
| @@ -739,6 +747,8 @@ func init() { | |||||
| 739 | core.PuregoSafeRegister(&xDateValidWeekday, lib, "g_date_valid_weekday") | 747 | core.PuregoSafeRegister(&xDateValidWeekday, lib, "g_date_valid_weekday") | ||
| 740 | core.PuregoSafeRegister(&xDateValidYear, lib, "g_date_valid_year") | 748 | core.PuregoSafeRegister(&xDateValidYear, lib, "g_date_valid_year") | ||
| 741 | 749 | ||||
| 750 | + | core.PuregoSafeRegister(&xDateGLibType, lib, "g_date_get_type") | |||
| 751 | + | ||||
| 742 | core.PuregoSafeRegister(&xNewDate, lib, "g_date_new") | 752 | core.PuregoSafeRegister(&xNewDate, lib, "g_date_new") | ||
| 743 | core.PuregoSafeRegister(&xNewDateDmy, lib, "g_date_new_dmy") | 753 | core.PuregoSafeRegister(&xNewDateDmy, lib, "g_date_new_dmy") | ||
| 744 | core.PuregoSafeRegister(&xNewDateJulian, lib, "g_date_new_julian") | 754 | core.PuregoSafeRegister(&xNewDateJulian, lib, "g_date_new_julian") | ||
M v4/glib/gdatetime.go +9 -0
| @@ -6,12 +6,19 @@ import ( | |||||
| 6 | 6 | ||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 9 | ) | 10 | ) | ||
| 10 | 11 | ||||
| 11 | // An opaque structure that represents a date and time, including a time zone. | 12 | // An opaque structure that represents a date and time, including a time zone. | ||
| 12 | type DateTime struct { | 13 | type DateTime struct { | ||
| 13 | } | 14 | } | ||
| 14 | 15 | ||||
| 16 | + | var xDateTimeGLibType func() types.GType | |||
| 17 | + | ||||
| 18 | + | func DateTimeGLibType() types.GType { | |||
| 19 | + | return xDateTimeGLibType() | |||
| 20 | + | } | |||
| 21 | + | ||||
| 15 | func (x *DateTime) GoPointer() uintptr { | 22 | func (x *DateTime) GoPointer() uintptr { | ||
| 16 | return uintptr(unsafe.Pointer(x)) | 23 | return uintptr(unsafe.Pointer(x)) | ||
| 17 | } | 24 | } | ||
| @@ -837,6 +844,8 @@ func init() { | |||||
| 837 | panic(err) | 844 | panic(err) | ||
| 838 | } | 845 | } | ||
| 839 | 846 | ||||
| 847 | + | core.PuregoSafeRegister(&xDateTimeGLibType, lib, "g_date_time_get_type") | |||
| 848 | + | ||||
| 840 | core.PuregoSafeRegister(&xNewDateTime, lib, "g_date_time_new") | 849 | core.PuregoSafeRegister(&xNewDateTime, lib, "g_date_time_new") | ||
| 841 | core.PuregoSafeRegister(&xNewDateTimeFromIso8601, lib, "g_date_time_new_from_iso8601") | 850 | core.PuregoSafeRegister(&xNewDateTimeFromIso8601, lib, "g_date_time_new_from_iso8601") | ||
| 842 | core.PuregoSafeRegister(&xNewDateTimeFromTimevalLocal, lib, "g_date_time_new_from_timeval_local") | 851 | core.PuregoSafeRegister(&xNewDateTimeFromTimevalLocal, lib, "g_date_time_new_from_timeval_local") | ||
M v4/glib/genviron.go +1 -0
| @@ -142,6 +142,7 @@ func init() { | |||||
| 142 | if err != nil { | 142 | if err != nil { | ||
| 143 | panic(err) | 143 | panic(err) | ||
| 144 | } | 144 | } | ||
| 145 | + | ||||
| 145 | core.PuregoSafeRegister(&xEnvironGetenv, lib, "g_environ_getenv") | 146 | core.PuregoSafeRegister(&xEnvironGetenv, lib, "g_environ_getenv") | ||
| 146 | core.PuregoSafeRegister(&xEnvironSetenv, lib, "g_environ_setenv") | 147 | core.PuregoSafeRegister(&xEnvironSetenv, lib, "g_environ_setenv") | ||
| 147 | core.PuregoSafeRegister(&xEnvironUnsetenv, lib, "g_environ_unsetenv") | 148 | core.PuregoSafeRegister(&xEnvironUnsetenv, lib, "g_environ_unsetenv") | ||
M v4/glib/gerror.go +10 -0
| @@ -6,6 +6,7 @@ import ( | |||||
| 6 | 6 | ||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 9 | ) | 10 | ) | ||
| 10 | 11 | ||||
| 11 | // Specifies the type of function which is called when an extended | 12 | // Specifies the type of function which is called when an extended | ||
| @@ -45,6 +46,12 @@ type Error struct { | |||||
| 45 | Message uintptr | 46 | Message uintptr | ||
| 46 | } | 47 | } | ||
| 47 | 48 | ||||
| 49 | + | var xErrorGLibType func() types.GType | |||
| 50 | + | ||||
| 51 | + | func ErrorGLibType() types.GType { | |||
| 52 | + | return xErrorGLibType() | |||
| 53 | + | } | |||
| 54 | + | ||||
| 48 | func (x *Error) GoPointer() uintptr { | 55 | func (x *Error) GoPointer() uintptr { | ||
| 49 | return uintptr(unsafe.Pointer(x)) | 56 | return uintptr(unsafe.Pointer(x)) | ||
| 50 | } | 57 | } | ||
| @@ -211,6 +218,7 @@ func init() { | |||||
| 211 | if err != nil { | 218 | if err != nil { | ||
| 212 | panic(err) | 219 | panic(err) | ||
| 213 | } | 220 | } | ||
| 221 | + | ||||
| 214 | core.PuregoSafeRegister(&xClearError, lib, "g_clear_error") | 222 | core.PuregoSafeRegister(&xClearError, lib, "g_clear_error") | ||
| 215 | core.PuregoSafeRegister(&xPrefixError, lib, "g_prefix_error") | 223 | core.PuregoSafeRegister(&xPrefixError, lib, "g_prefix_error") | ||
| 216 | core.PuregoSafeRegister(&xPrefixErrorLiteral, lib, "g_prefix_error_literal") | 224 | core.PuregoSafeRegister(&xPrefixErrorLiteral, lib, "g_prefix_error_literal") | ||
| @@ -219,6 +227,8 @@ func init() { | |||||
| 219 | core.PuregoSafeRegister(&xSetError, lib, "g_set_error") | 227 | core.PuregoSafeRegister(&xSetError, lib, "g_set_error") | ||
| 220 | core.PuregoSafeRegister(&xSetErrorLiteral, lib, "g_set_error_literal") | 228 | core.PuregoSafeRegister(&xSetErrorLiteral, lib, "g_set_error_literal") | ||
| 221 | 229 | ||||
| 230 | + | core.PuregoSafeRegister(&xErrorGLibType, lib, "g_error_get_type") | |||
| 231 | + | ||||
| 222 | core.PuregoSafeRegister(&xNewError, lib, "g_error_new") | 232 | core.PuregoSafeRegister(&xNewError, lib, "g_error_new") | ||
| 223 | core.PuregoSafeRegister(&xNewErrorLiteral, lib, "g_error_new_literal") | 233 | core.PuregoSafeRegister(&xNewErrorLiteral, lib, "g_error_new_literal") | ||
| 224 | core.PuregoSafeRegister(&xNewErrorValist, lib, "g_error_new_valist") | 234 | core.PuregoSafeRegister(&xNewErrorValist, lib, "g_error_new_valist") | ||
M v4/glib/gfileutils.go +1 -0
| @@ -717,6 +717,7 @@ func init() { | |||||
| 717 | if err != nil { | 717 | if err != nil { | ||
| 718 | panic(err) | 718 | panic(err) | ||
| 719 | } | 719 | } | ||
| 720 | + | ||||
| 720 | core.PuregoSafeRegister(&xBasename, lib, "g_basename") | 721 | core.PuregoSafeRegister(&xBasename, lib, "g_basename") | ||
| 721 | core.PuregoSafeRegister(&xBuildFilename, lib, "g_build_filename") | 722 | core.PuregoSafeRegister(&xBuildFilename, lib, "g_build_filename") | ||
| 722 | core.PuregoSafeRegister(&xBuildFilenameValist, lib, "g_build_filename_valist") | 723 | core.PuregoSafeRegister(&xBuildFilenameValist, lib, "g_build_filename_valist") | ||
M v4/glib/ggettext.go +1 -0
| @@ -125,6 +125,7 @@ func init() { | |||||
| 125 | if err != nil { | 125 | if err != nil { | ||
| 126 | panic(err) | 126 | panic(err) | ||
| 127 | } | 127 | } | ||
| 128 | + | ||||
| 128 | core.PuregoSafeRegister(&xDcgettext, lib, "g_dcgettext") | 129 | core.PuregoSafeRegister(&xDcgettext, lib, "g_dcgettext") | ||
| 129 | core.PuregoSafeRegister(&xDgettext, lib, "g_dgettext") | 130 | core.PuregoSafeRegister(&xDgettext, lib, "g_dgettext") | ||
| 130 | core.PuregoSafeRegister(&xDngettext, lib, "g_dngettext") | 131 | core.PuregoSafeRegister(&xDngettext, lib, "g_dngettext") | ||
M v4/glib/ghash.go +10 -0
| @@ -6,6 +6,7 @@ import ( | |||||
| 6 | 6 | ||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 9 | ) | 10 | ) | ||
| 10 | 11 | ||||
| 11 | // Specifies the type of the function passed to | 12 | // Specifies the type of the function passed to | ||
| @@ -21,6 +22,12 @@ type HRFunc func(uintptr, uintptr, uintptr) bool | |||||
| 21 | type HashTable struct { | 22 | type HashTable struct { | ||
| 22 | } | 23 | } | ||
| 23 | 24 | ||||
| 25 | + | var xHashTableGLibType func() types.GType | |||
| 26 | + | ||||
| 27 | + | func HashTableGLibType() types.GType { | |||
| 28 | + | return xHashTableGLibType() | |||
| 29 | + | } | |||
| 30 | + | ||||
| 24 | func (x *HashTable) GoPointer() uintptr { | 31 | func (x *HashTable) GoPointer() uintptr { | ||
| 25 | return uintptr(unsafe.Pointer(x)) | 32 | return uintptr(unsafe.Pointer(x)) | ||
| 26 | } | 33 | } | ||
| @@ -524,6 +531,7 @@ func init() { | |||||
| 524 | if err != nil { | 531 | if err != nil { | ||
| 525 | panic(err) | 532 | panic(err) | ||
| 526 | } | 533 | } | ||
| 534 | + | ||||
| 527 | core.PuregoSafeRegister(&xDirectEqual, lib, "g_direct_equal") | 535 | core.PuregoSafeRegister(&xDirectEqual, lib, "g_direct_equal") | ||
| 528 | core.PuregoSafeRegister(&xDirectHash, lib, "g_direct_hash") | 536 | core.PuregoSafeRegister(&xDirectHash, lib, "g_direct_hash") | ||
| 529 | core.PuregoSafeRegister(&xDoubleEqual, lib, "g_double_equal") | 537 | core.PuregoSafeRegister(&xDoubleEqual, lib, "g_double_equal") | ||
| @@ -550,6 +558,8 @@ func init() { | |||||
| 550 | core.PuregoSafeRegister(&xStrEqual, lib, "g_str_equal") | 558 | core.PuregoSafeRegister(&xStrEqual, lib, "g_str_equal") | ||
| 551 | core.PuregoSafeRegister(&xStrHash, lib, "g_str_hash") | 559 | core.PuregoSafeRegister(&xStrHash, lib, "g_str_hash") | ||
| 552 | 560 | ||||
| 561 | + | core.PuregoSafeRegister(&xHashTableGLibType, lib, "g_hash_table_get_type") | |||
| 562 | + | ||||
| 553 | core.PuregoSafeRegister(&xHashTableIterGetHashTable, lib, "g_hash_table_iter_get_hash_table") | 563 | core.PuregoSafeRegister(&xHashTableIterGetHashTable, lib, "g_hash_table_iter_get_hash_table") | ||
| 554 | core.PuregoSafeRegister(&xHashTableIterInit, lib, "g_hash_table_iter_init") | 564 | core.PuregoSafeRegister(&xHashTableIterInit, lib, "g_hash_table_iter_init") | ||
| 555 | core.PuregoSafeRegister(&xHashTableIterNext, lib, "g_hash_table_iter_next") | 565 | core.PuregoSafeRegister(&xHashTableIterNext, lib, "g_hash_table_iter_next") | ||
M v4/glib/ghmac.go +1 -0
| @@ -135,6 +135,7 @@ func init() { | |||||
| 135 | if err != nil { | 135 | if err != nil { | ||
| 136 | panic(err) | 136 | panic(err) | ||
| 137 | } | 137 | } | ||
| 138 | + | ||||
| 138 | core.PuregoSafeRegister(&xComputeHmacForBytes, lib, "g_compute_hmac_for_bytes") | 139 | core.PuregoSafeRegister(&xComputeHmacForBytes, lib, "g_compute_hmac_for_bytes") | ||
| 139 | core.PuregoSafeRegister(&xComputeHmacForData, lib, "g_compute_hmac_for_data") | 140 | core.PuregoSafeRegister(&xComputeHmacForData, lib, "g_compute_hmac_for_data") | ||
| 140 | core.PuregoSafeRegister(&xComputeHmacForString, lib, "g_compute_hmac_for_string") | 141 | core.PuregoSafeRegister(&xComputeHmacForString, lib, "g_compute_hmac_for_string") | ||
M v4/glib/ghook.go +1 -0
| @@ -229,6 +229,7 @@ func init() { | |||||
| 229 | if err != nil { | 229 | if err != nil { | ||
| 230 | panic(err) | 230 | panic(err) | ||
| 231 | } | 231 | } | ||
| 232 | + | ||||
| 232 | core.PuregoSafeRegister(&xHookDestroy, lib, "g_hook_destroy") | 233 | core.PuregoSafeRegister(&xHookDestroy, lib, "g_hook_destroy") | ||
| 233 | core.PuregoSafeRegister(&xHookDestroyLink, lib, "g_hook_destroy_link") | 234 | core.PuregoSafeRegister(&xHookDestroyLink, lib, "g_hook_destroy_link") | ||
| 234 | core.PuregoSafeRegister(&xHookFree, lib, "g_hook_free") | 235 | core.PuregoSafeRegister(&xHookFree, lib, "g_hook_free") | ||
M v4/glib/ghostutils.go +1 -0
| @@ -80,6 +80,7 @@ func init() { | |||||
| 80 | if err != nil { | 80 | if err != nil { | ||
| 81 | panic(err) | 81 | panic(err) | ||
| 82 | } | 82 | } | ||
| 83 | + | ||||
| 83 | core.PuregoSafeRegister(&xHostnameIsAsciiEncoded, lib, "g_hostname_is_ascii_encoded") | 84 | core.PuregoSafeRegister(&xHostnameIsAsciiEncoded, lib, "g_hostname_is_ascii_encoded") | ||
| 84 | core.PuregoSafeRegister(&xHostnameIsIpAddress, lib, "g_hostname_is_ip_address") | 85 | core.PuregoSafeRegister(&xHostnameIsIpAddress, lib, "g_hostname_is_ip_address") | ||
| 85 | core.PuregoSafeRegister(&xHostnameIsNonAscii, lib, "g_hostname_is_non_ascii") | 86 | core.PuregoSafeRegister(&xHostnameIsNonAscii, lib, "g_hostname_is_non_ascii") | ||
M v4/glib/giochannel.go +10 -0
| @@ -6,6 +6,7 @@ import ( | |||||
| 6 | 6 | ||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 9 | ) | 10 | ) | ||
| 10 | 11 | ||||
| 11 | // Specifies the type of function passed to g_io_add_watch() or | 12 | // Specifies the type of function passed to g_io_add_watch() or | ||
| @@ -58,6 +59,12 @@ type IOChannel struct { | |||||
| 58 | Reserved2 uintptr | 59 | Reserved2 uintptr | ||
| 59 | } | 60 | } | ||
| 60 | 61 | ||||
| 62 | + | var xIOChannelGLibType func() types.GType | |||
| 63 | + | ||||
| 64 | + | func IOChannelGLibType() types.GType { | |||
| 65 | + | return xIOChannelGLibType() | |||
| 66 | + | } | |||
| 67 | + | ||||
| 61 | func (x *IOChannel) GoPointer() uintptr { | 68 | func (x *IOChannel) GoPointer() uintptr { | ||
| 62 | return uintptr(unsafe.Pointer(x)) | 69 | return uintptr(unsafe.Pointer(x)) | ||
| 63 | } | 70 | } | ||
| @@ -726,11 +733,14 @@ func init() { | |||||
| 726 | if err != nil { | 733 | if err != nil { | ||
| 727 | panic(err) | 734 | panic(err) | ||
| 728 | } | 735 | } | ||
| 736 | + | ||||
| 729 | core.PuregoSafeRegister(&xIoAddWatch, lib, "g_io_add_watch") | 737 | core.PuregoSafeRegister(&xIoAddWatch, lib, "g_io_add_watch") | ||
| 730 | core.PuregoSafeRegister(&xIoAddWatchFull, lib, "g_io_add_watch_full") | 738 | core.PuregoSafeRegister(&xIoAddWatchFull, lib, "g_io_add_watch_full") | ||
| 731 | core.PuregoSafeRegister(&xIoChannelErrorFromErrno, lib, "g_io_channel_error_from_errno") | 739 | core.PuregoSafeRegister(&xIoChannelErrorFromErrno, lib, "g_io_channel_error_from_errno") | ||
| 732 | core.PuregoSafeRegister(&xIoCreateWatch, lib, "g_io_create_watch") | 740 | core.PuregoSafeRegister(&xIoCreateWatch, lib, "g_io_create_watch") | ||
| 733 | 741 | ||||
| 742 | + | core.PuregoSafeRegister(&xIOChannelGLibType, lib, "g_io_channel_get_type") | |||
| 743 | + | ||||
| 734 | core.PuregoSafeRegister(&xNewIOChannelFile, lib, "g_io_channel_new_file") | 744 | core.PuregoSafeRegister(&xNewIOChannelFile, lib, "g_io_channel_new_file") | ||
| 735 | core.PuregoSafeRegister(&xIOChannelUnixNew, lib, "g_io_channel_unix_new") | 745 | core.PuregoSafeRegister(&xIOChannelUnixNew, lib, "g_io_channel_unix_new") | ||
| 736 | 746 | ||||
M v4/glib/gkeyfile.go +9 -0
| @@ -6,6 +6,7 @@ import ( | |||||
| 6 | 6 | ||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 9 | ) | 10 | ) | ||
| 10 | 11 | ||||
| 11 | // The GKeyFile struct contains only private data | 12 | // The GKeyFile struct contains only private data | ||
| @@ -13,6 +14,12 @@ import ( | |||||
| 13 | type KeyFile struct { | 14 | type KeyFile struct { | ||
| 14 | } | 15 | } | ||
| 15 | 16 | ||||
| 17 | + | var xKeyFileGLibType func() types.GType | |||
| 18 | + | ||||
| 19 | + | func KeyFileGLibType() types.GType { | |||
| 20 | + | return xKeyFileGLibType() | |||
| 21 | + | } | |||
| 22 | + | ||||
| 16 | func (x *KeyFile) GoPointer() uintptr { | 23 | func (x *KeyFile) GoPointer() uintptr { | ||
| 17 | return uintptr(unsafe.Pointer(x)) | 24 | return uintptr(unsafe.Pointer(x)) | ||
| 18 | } | 25 | } | ||
| @@ -923,6 +930,8 @@ func init() { | |||||
| 923 | panic(err) | 930 | panic(err) | ||
| 924 | } | 931 | } | ||
| 925 | 932 | ||||
| 933 | + | core.PuregoSafeRegister(&xKeyFileGLibType, lib, "g_key_file_get_type") | |||
| 934 | + | ||||
| 926 | core.PuregoSafeRegister(&xNewKeyFile, lib, "g_key_file_new") | 935 | core.PuregoSafeRegister(&xNewKeyFile, lib, "g_key_file_new") | ||
| 927 | 936 | ||||
| 928 | core.PuregoSafeRegister(&xKeyFileFree, lib, "g_key_file_free") | 937 | core.PuregoSafeRegister(&xKeyFileFree, lib, "g_key_file_free") | ||
M v4/glib/glib-2.0.go +10 -0
| @@ -4,12 +4,19 @@ package glib | |||||
| 4 | import ( | 4 | import ( | ||
| 5 | "github.com/jwijenbergh/purego" | 5 | "github.com/jwijenbergh/purego" | ||
| 6 | "github.com/jwijenbergh/puregotk/internal/core" | 6 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 7 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 7 | ) | 8 | ) | ||
| 8 | 9 | ||||
| 9 | // A bitwise combination representing a condition to watch for on an | 10 | // A bitwise combination representing a condition to watch for on an | ||
| 10 | // event source. | 11 | // event source. | ||
| 11 | type IOCondition int | 12 | type IOCondition int | ||
| 12 | 13 | ||||
| 14 | + | var xIOConditionGLibType func() types.GType | |||
| 15 | + | ||||
| 16 | + | func IOConditionGLibType() types.GType { | |||
| 17 | + | return xIOConditionGLibType() | |||
| 18 | + | } | |||
| 19 | + | ||||
| 13 | const ( | 20 | const ( | ||
| 14 | 21 | ||||
| 15 | // There is data to read. | 22 | // There is data to read. | ||
| @@ -41,6 +48,9 @@ func init() { | |||||
| 41 | if err != nil { | 48 | if err != nil { | ||
| 42 | panic(err) | 49 | panic(err) | ||
| 43 | } | 50 | } | ||
| 51 | + | ||||
| 52 | + | core.PuregoSafeRegister(&xIOConditionGLibType, lib, "g_io_condition_get_type") | |||
| 53 | + | ||||
| 44 | core.PuregoSafeRegister(&xVariantParserGetErrorQuark, lib, "g_variant_parser_get_error_quark") | 54 | core.PuregoSafeRegister(&xVariantParserGetErrorQuark, lib, "g_variant_parser_get_error_quark") | ||
| 45 | 55 | ||||
| 46 | } | 56 | } | ||
M v4/glib/glib-types.go +1 -0
| @@ -30,6 +30,7 @@ func init() { | |||||
| 30 | if err != nil { | 30 | if err != nil { | ||
| 31 | panic(err) | 31 | panic(err) | ||
| 32 | } | 32 | } | ||
| 33 | + | ||||
| 33 | core.PuregoSafeRegister(&xStrvGetType, lib, "g_strv_get_type") | 34 | core.PuregoSafeRegister(&xStrvGetType, lib, "g_strv_get_type") | ||
| 34 | core.PuregoSafeRegister(&xVariantGetGtype, lib, "g_variant_get_gtype") | 35 | core.PuregoSafeRegister(&xVariantGetGtype, lib, "g_variant_get_gtype") | ||
| 35 | 36 | ||||
M v4/glib/glib-unix.go +1 -0
| @@ -176,6 +176,7 @@ func init() { | |||||
| 176 | if err != nil { | 176 | if err != nil { | ||
| 177 | panic(err) | 177 | panic(err) | ||
| 178 | } | 178 | } | ||
| 179 | + | ||||
| 179 | core.PuregoSafeRegister(&xUnixFdAdd, lib, "g_unix_fd_add") | 180 | core.PuregoSafeRegister(&xUnixFdAdd, lib, "g_unix_fd_add") | ||
| 180 | core.PuregoSafeRegister(&xUnixFdAddFull, lib, "g_unix_fd_add_full") | 181 | core.PuregoSafeRegister(&xUnixFdAddFull, lib, "g_unix_fd_add_full") | ||
| 181 | core.PuregoSafeRegister(&xUnixFdSourceNew, lib, "g_unix_fd_source_new") | 182 | core.PuregoSafeRegister(&xUnixFdSourceNew, lib, "g_unix_fd_source_new") | ||
M v4/glib/glist.go +1 -0
| @@ -37,6 +37,7 @@ func init() { | |||||
| 37 | if err != nil { | 37 | if err != nil { | ||
| 38 | panic(err) | 38 | panic(err) | ||
| 39 | } | 39 | } | ||
| 40 | + | ||||
| 40 | core.PuregoSafeRegister(&xClearList, lib, "g_clear_list") | 41 | core.PuregoSafeRegister(&xClearList, lib, "g_clear_list") | ||
| 41 | 42 | ||||
| 42 | } | 43 | } | ||
M v4/glib/gmain.go +26 -0
| @@ -6,6 +6,7 @@ import ( | |||||
| 6 | 6 | ||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 9 | ) | 10 | ) | ||
| 10 | 11 | ||||
| 11 | // Prototype of a #GChildWatchSource callback, called when a child | 12 | // Prototype of a #GChildWatchSource callback, called when a child | ||
| @@ -44,6 +45,12 @@ type SourceFunc func(uintptr) bool | |||||
| 44 | type MainContext struct { | 45 | type MainContext struct { | ||
| 45 | } | 46 | } | ||
| 46 | 47 | ||||
| 48 | + | var xMainContextGLibType func() types.GType | |||
| 49 | + | ||||
| 50 | + | func MainContextGLibType() types.GType { | |||
| 51 | + | return xMainContextGLibType() | |||
| 52 | + | } | |||
| 53 | + | ||||
| 47 | func (x *MainContext) GoPointer() uintptr { | 54 | func (x *MainContext) GoPointer() uintptr { | ||
| 48 | return uintptr(unsafe.Pointer(x)) | 55 | return uintptr(unsafe.Pointer(x)) | ||
| 49 | } | 56 | } | ||
| @@ -458,6 +465,12 @@ func (x *MainContext) Wakeup() { | |||||
| 458 | type MainLoop struct { | 465 | type MainLoop struct { | ||
| 459 | } | 466 | } | ||
| 460 | 467 | ||||
| 468 | + | var xMainLoopGLibType func() types.GType | |||
| 469 | + | ||||
| 470 | + | func MainLoopGLibType() types.GType { | |||
| 471 | + | return xMainLoopGLibType() | |||
| 472 | + | } | |||
| 473 | + | ||||
| 461 | func (x *MainLoop) GoPointer() uintptr { | 474 | func (x *MainLoop) GoPointer() uintptr { | ||
| 462 | return uintptr(unsafe.Pointer(x)) | 475 | return uintptr(unsafe.Pointer(x)) | ||
| 463 | } | 476 | } | ||
| @@ -563,6 +576,12 @@ type Source struct { | |||||
| 563 | Priv *SourcePrivate | 576 | Priv *SourcePrivate | ||
| 564 | } | 577 | } | ||
| 565 | 578 | ||||
| 579 | + | var xSourceGLibType func() types.GType | |||
| 580 | + | ||||
| 581 | + | func SourceGLibType() types.GType { | |||
| 582 | + | return xSourceGLibType() | |||
| 583 | + | } | |||
| 584 | + | ||||
| 566 | func (x *Source) GoPointer() uintptr { | 585 | func (x *Source) GoPointer() uintptr { | ||
| 567 | return uintptr(unsafe.Pointer(x)) | 586 | return uintptr(unsafe.Pointer(x)) | ||
| 568 | } | 587 | } | ||
| @@ -1918,6 +1937,7 @@ func init() { | |||||
| 1918 | if err != nil { | 1937 | if err != nil { | ||
| 1919 | panic(err) | 1938 | panic(err) | ||
| 1920 | } | 1939 | } | ||
| 1940 | + | ||||
| 1921 | core.PuregoSafeRegister(&xChildWatchAdd, lib, "g_child_watch_add") | 1941 | core.PuregoSafeRegister(&xChildWatchAdd, lib, "g_child_watch_add") | ||
| 1922 | core.PuregoSafeRegister(&xChildWatchAddFull, lib, "g_child_watch_add_full") | 1942 | core.PuregoSafeRegister(&xChildWatchAddFull, lib, "g_child_watch_add_full") | ||
| 1923 | core.PuregoSafeRegister(&xChildWatchSourceNew, lib, "g_child_watch_source_new") | 1943 | core.PuregoSafeRegister(&xChildWatchSourceNew, lib, "g_child_watch_source_new") | ||
| @@ -1945,6 +1965,8 @@ func init() { | |||||
| 1945 | core.PuregoSafeRegister(&xTimeoutSourceNew, lib, "g_timeout_source_new") | 1965 | core.PuregoSafeRegister(&xTimeoutSourceNew, lib, "g_timeout_source_new") | ||
| 1946 | core.PuregoSafeRegister(&xTimeoutSourceNewSeconds, lib, "g_timeout_source_new_seconds") | 1966 | core.PuregoSafeRegister(&xTimeoutSourceNewSeconds, lib, "g_timeout_source_new_seconds") | ||
| 1947 | 1967 | ||||
| 1968 | + | core.PuregoSafeRegister(&xMainContextGLibType, lib, "g_main_context_get_type") | |||
| 1969 | + | ||||
| 1948 | core.PuregoSafeRegister(&xNewMainContext, lib, "g_main_context_new") | 1970 | core.PuregoSafeRegister(&xNewMainContext, lib, "g_main_context_new") | ||
| 1949 | core.PuregoSafeRegister(&xNewMainContextWithFlags, lib, "g_main_context_new_with_flags") | 1971 | core.PuregoSafeRegister(&xNewMainContextWithFlags, lib, "g_main_context_new_with_flags") | ||
| 1950 | 1972 | ||||
| @@ -1973,6 +1995,8 @@ func init() { | |||||
| 1973 | core.PuregoSafeRegister(&xMainContextWait, lib, "g_main_context_wait") | 1995 | core.PuregoSafeRegister(&xMainContextWait, lib, "g_main_context_wait") | ||
| 1974 | core.PuregoSafeRegister(&xMainContextWakeup, lib, "g_main_context_wakeup") | 1996 | core.PuregoSafeRegister(&xMainContextWakeup, lib, "g_main_context_wakeup") | ||
| 1975 | 1997 | ||||
| 1998 | + | core.PuregoSafeRegister(&xMainLoopGLibType, lib, "g_main_loop_get_type") | |||
| 1999 | + | ||||
| 1976 | core.PuregoSafeRegister(&xNewMainLoop, lib, "g_main_loop_new") | 2000 | core.PuregoSafeRegister(&xNewMainLoop, lib, "g_main_loop_new") | ||
| 1977 | 2001 | ||||
| 1978 | core.PuregoSafeRegister(&xMainLoopGetContext, lib, "g_main_loop_get_context") | 2002 | core.PuregoSafeRegister(&xMainLoopGetContext, lib, "g_main_loop_get_context") | ||
| @@ -1982,6 +2006,8 @@ func init() { | |||||
| 1982 | core.PuregoSafeRegister(&xMainLoopRun, lib, "g_main_loop_run") | 2006 | core.PuregoSafeRegister(&xMainLoopRun, lib, "g_main_loop_run") | ||
| 1983 | core.PuregoSafeRegister(&xMainLoopUnref, lib, "g_main_loop_unref") | 2007 | core.PuregoSafeRegister(&xMainLoopUnref, lib, "g_main_loop_unref") | ||
| 1984 | 2008 | ||||
| 2009 | + | core.PuregoSafeRegister(&xSourceGLibType, lib, "g_source_get_type") | |||
| 2010 | + | ||||
| 1985 | core.PuregoSafeRegister(&xNewSource, lib, "g_source_new") | 2011 | core.PuregoSafeRegister(&xNewSource, lib, "g_source_new") | ||
| 1986 | 2012 | ||||
| 1987 | core.PuregoSafeRegister(&xSourceAddChildSource, lib, "g_source_add_child_source") | 2013 | core.PuregoSafeRegister(&xSourceAddChildSource, lib, "g_source_add_child_source") | ||
M v4/glib/gmappedfile.go +9 -0
| @@ -6,6 +6,7 @@ import ( | |||||
| 6 | 6 | ||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 9 | ) | 10 | ) | ||
| 10 | 11 | ||||
| 11 | // The #GMappedFile represents a file mapping created with | 12 | // The #GMappedFile represents a file mapping created with | ||
| @@ -14,6 +15,12 @@ import ( | |||||
| 14 | type MappedFile struct { | 15 | type MappedFile struct { | ||
| 15 | } | 16 | } | ||
| 16 | 17 | ||||
| 18 | + | var xMappedFileGLibType func() types.GType | |||
| 19 | + | ||||
| 20 | + | func MappedFileGLibType() types.GType { | |||
| 21 | + | return xMappedFileGLibType() | |||
| 22 | + | } | |||
| 23 | + | ||||
| 17 | func (x *MappedFile) GoPointer() uintptr { | 24 | func (x *MappedFile) GoPointer() uintptr { | ||
| 18 | return uintptr(unsafe.Pointer(x)) | 25 | return uintptr(unsafe.Pointer(x)) | ||
| 19 | } | 26 | } | ||
| @@ -145,6 +152,8 @@ func init() { | |||||
| 145 | panic(err) | 152 | panic(err) | ||
| 146 | } | 153 | } | ||
| 147 | 154 | ||||
| 155 | + | core.PuregoSafeRegister(&xMappedFileGLibType, lib, "g_mapped_file_get_type") | |||
| 156 | + | ||||
| 148 | core.PuregoSafeRegister(&xNewMappedFile, lib, "g_mapped_file_new") | 157 | core.PuregoSafeRegister(&xNewMappedFile, lib, "g_mapped_file_new") | ||
| 149 | core.PuregoSafeRegister(&xNewMappedFileFromFd, lib, "g_mapped_file_new_from_fd") | 158 | core.PuregoSafeRegister(&xNewMappedFileFromFd, lib, "g_mapped_file_new_from_fd") | ||
| 150 | 159 | ||||
M v4/glib/gmarkup.go +10 -0
| @@ -6,6 +6,7 @@ import ( | |||||
| 6 | 6 | ||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 9 | ) | 10 | ) | ||
| 10 | 11 | ||||
| 11 | // A parse context is used to parse a stream of bytes that | 12 | // A parse context is used to parse a stream of bytes that | ||
| @@ -16,6 +17,12 @@ import ( | |||||
| 16 | type MarkupParseContext struct { | 17 | type MarkupParseContext struct { | ||
| 17 | } | 18 | } | ||
| 18 | 19 | ||||
| 20 | + | var xMarkupParseContextGLibType func() types.GType | |||
| 21 | + | ||||
| 22 | + | func MarkupParseContextGLibType() types.GType { | |||
| 23 | + | return xMarkupParseContextGLibType() | |||
| 24 | + | } | |||
| 25 | + | ||||
| 19 | func (x *MarkupParseContext) GoPointer() uintptr { | 26 | func (x *MarkupParseContext) GoPointer() uintptr { | ||
| 20 | return uintptr(unsafe.Pointer(x)) | 27 | return uintptr(unsafe.Pointer(x)) | ||
| 21 | } | 28 | } | ||
| @@ -528,11 +535,14 @@ func init() { | |||||
| 528 | if err != nil { | 535 | if err != nil { | ||
| 529 | panic(err) | 536 | panic(err) | ||
| 530 | } | 537 | } | ||
| 538 | + | ||||
| 531 | core.PuregoSafeRegister(&xMarkupCollectAttributes, lib, "g_markup_collect_attributes") | 539 | core.PuregoSafeRegister(&xMarkupCollectAttributes, lib, "g_markup_collect_attributes") | ||
| 532 | core.PuregoSafeRegister(&xMarkupEscapeText, lib, "g_markup_escape_text") | 540 | core.PuregoSafeRegister(&xMarkupEscapeText, lib, "g_markup_escape_text") | ||
| 533 | core.PuregoSafeRegister(&xMarkupPrintfEscaped, lib, "g_markup_printf_escaped") | 541 | core.PuregoSafeRegister(&xMarkupPrintfEscaped, lib, "g_markup_printf_escaped") | ||
| 534 | core.PuregoSafeRegister(&xMarkupVprintfEscaped, lib, "g_markup_vprintf_escaped") | 542 | core.PuregoSafeRegister(&xMarkupVprintfEscaped, lib, "g_markup_vprintf_escaped") | ||
| 535 | 543 | ||||
| 544 | + | core.PuregoSafeRegister(&xMarkupParseContextGLibType, lib, "g_markup_parse_context_get_type") | |||
| 545 | + | ||||
| 536 | core.PuregoSafeRegister(&xNewMarkupParseContext, lib, "g_markup_parse_context_new") | 546 | core.PuregoSafeRegister(&xNewMarkupParseContext, lib, "g_markup_parse_context_new") | ||
| 537 | 547 | ||||
| 538 | core.PuregoSafeRegister(&xMarkupParseContextEndParse, lib, "g_markup_parse_context_end_parse") | 548 | core.PuregoSafeRegister(&xMarkupParseContextEndParse, lib, "g_markup_parse_context_end_parse") | ||
M v4/glib/gmem.go +1 -0
| @@ -255,6 +255,7 @@ func init() { | |||||
| 255 | if err != nil { | 255 | if err != nil { | ||
| 256 | panic(err) | 256 | panic(err) | ||
| 257 | } | 257 | } | ||
| 258 | + | ||||
| 258 | core.PuregoSafeRegister(&xAlignedAlloc, lib, "g_aligned_alloc") | 259 | core.PuregoSafeRegister(&xAlignedAlloc, lib, "g_aligned_alloc") | ||
| 259 | core.PuregoSafeRegister(&xAlignedAlloc0, lib, "g_aligned_alloc0") | 260 | core.PuregoSafeRegister(&xAlignedAlloc0, lib, "g_aligned_alloc0") | ||
| 260 | core.PuregoSafeRegister(&xAlignedFree, lib, "g_aligned_free") | 261 | core.PuregoSafeRegister(&xAlignedFree, lib, "g_aligned_free") | ||
M v4/glib/gmessages.go +1 -0
| @@ -820,6 +820,7 @@ func init() { | |||||
| 820 | if err != nil { | 820 | if err != nil { | ||
| 821 | panic(err) | 821 | panic(err) | ||
| 822 | } | 822 | } | ||
| 823 | + | ||||
| 823 | core.PuregoSafeRegister(&xAssertWarning, lib, "g_assert_warning") | 824 | core.PuregoSafeRegister(&xAssertWarning, lib, "g_assert_warning") | ||
| 824 | core.PuregoSafeRegister(&xLog, lib, "g_log") | 825 | core.PuregoSafeRegister(&xLog, lib, "g_log") | ||
| 825 | core.PuregoSafeRegister(&xLogDefaultHandler, lib, "g_log_default_handler") | 826 | core.PuregoSafeRegister(&xLogDefaultHandler, lib, "g_log_default_handler") | ||
M v4/glib/goption.go +9 -0
| @@ -6,6 +6,7 @@ import ( | |||||
| 6 | 6 | ||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 9 | ) | 10 | ) | ||
| 10 | 11 | ||||
| 11 | // The type of function to be passed as callback for %G_OPTION_ARG_CALLBACK | 12 | // The type of function to be passed as callback for %G_OPTION_ARG_CALLBACK | ||
| @@ -358,6 +359,12 @@ func (x *OptionEntry) GoPointer() uintptr { | |||||
| 358 | type OptionGroup struct { | 359 | type OptionGroup struct { | ||
| 359 | } | 360 | } | ||
| 360 | 361 | ||||
| 362 | + | var xOptionGroupGLibType func() types.GType | |||
| 363 | + | ||||
| 364 | + | func OptionGroupGLibType() types.GType { | |||
| 365 | + | return xOptionGroupGLibType() | |||
| 366 | + | } | |||
| 367 | + | ||||
| 361 | func (x *OptionGroup) GoPointer() uintptr { | 368 | func (x *OptionGroup) GoPointer() uintptr { | ||
| 362 | return uintptr(unsafe.Pointer(x)) | 369 | return uintptr(unsafe.Pointer(x)) | ||
| 363 | } | 370 | } | ||
| @@ -592,6 +599,8 @@ func init() { | |||||
| 592 | core.PuregoSafeRegister(&xOptionContextSetTranslateFunc, lib, "g_option_context_set_translate_func") | 599 | core.PuregoSafeRegister(&xOptionContextSetTranslateFunc, lib, "g_option_context_set_translate_func") | ||
| 593 | core.PuregoSafeRegister(&xOptionContextSetTranslationDomain, lib, "g_option_context_set_translation_domain") | 600 | core.PuregoSafeRegister(&xOptionContextSetTranslationDomain, lib, "g_option_context_set_translation_domain") | ||
| 594 | 601 | ||||
| 602 | + | core.PuregoSafeRegister(&xOptionGroupGLibType, lib, "g_option_group_get_type") | |||
| 603 | + | ||||
| 595 | core.PuregoSafeRegister(&xNewOptionGroup, lib, "g_option_group_new") | 604 | core.PuregoSafeRegister(&xNewOptionGroup, lib, "g_option_group_new") | ||
| 596 | 605 | ||||
| 597 | core.PuregoSafeRegister(&xOptionGroupAddEntries, lib, "g_option_group_add_entries") | 606 | core.PuregoSafeRegister(&xOptionGroupAddEntries, lib, "g_option_group_add_entries") | ||
M v4/glib/gpattern.go +10 -0
| @@ -6,6 +6,7 @@ import ( | |||||
| 6 | 6 | ||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 9 | ) | 10 | ) | ||
| 10 | 11 | ||||
| 11 | // A GPatternSpec struct is the 'compiled' form of a pattern. This | 12 | // A GPatternSpec struct is the 'compiled' form of a pattern. This | ||
| @@ -13,6 +14,12 @@ import ( | |||||
| 13 | type PatternSpec struct { | 14 | type PatternSpec struct { | ||
| 14 | } | 15 | } | ||
| 15 | 16 | ||||
| 17 | + | var xPatternSpecGLibType func() types.GType | |||
| 18 | + | ||||
| 19 | + | func PatternSpecGLibType() types.GType { | |||
| 20 | + | return xPatternSpecGLibType() | |||
| 21 | + | } | |||
| 22 | + | ||||
| 16 | func (x *PatternSpec) GoPointer() uintptr { | 23 | func (x *PatternSpec) GoPointer() uintptr { | ||
| 17 | return uintptr(unsafe.Pointer(x)) | 24 | return uintptr(unsafe.Pointer(x)) | ||
| 18 | } | 25 | } | ||
| @@ -143,10 +150,13 @@ func init() { | |||||
| 143 | if err != nil { | 150 | if err != nil { | ||
| 144 | panic(err) | 151 | panic(err) | ||
| 145 | } | 152 | } | ||
| 153 | + | ||||
| 146 | core.PuregoSafeRegister(&xPatternMatch, lib, "g_pattern_match") | 154 | core.PuregoSafeRegister(&xPatternMatch, lib, "g_pattern_match") | ||
| 147 | core.PuregoSafeRegister(&xPatternMatchSimple, lib, "g_pattern_match_simple") | 155 | core.PuregoSafeRegister(&xPatternMatchSimple, lib, "g_pattern_match_simple") | ||
| 148 | core.PuregoSafeRegister(&xPatternMatchString, lib, "g_pattern_match_string") | 156 | core.PuregoSafeRegister(&xPatternMatchString, lib, "g_pattern_match_string") | ||
| 149 | 157 | ||||
| 158 | + | core.PuregoSafeRegister(&xPatternSpecGLibType, lib, "g_pattern_spec_get_type") | |||
| 159 | + | ||||
| 150 | core.PuregoSafeRegister(&xNewPatternSpec, lib, "g_pattern_spec_new") | 160 | core.PuregoSafeRegister(&xNewPatternSpec, lib, "g_pattern_spec_new") | ||
| 151 | 161 | ||||
| 152 | core.PuregoSafeRegister(&xPatternSpecCopy, lib, "g_pattern_spec_copy") | 162 | core.PuregoSafeRegister(&xPatternSpecCopy, lib, "g_pattern_spec_copy") | ||
M v4/glib/gpoll.go +10 -0
| @@ -6,6 +6,7 @@ import ( | |||||
| 6 | 6 | ||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 9 | ) | 10 | ) | ||
| 10 | 11 | ||||
| 11 | // Specifies the type of function passed to g_main_context_set_poll_func(). | 12 | // Specifies the type of function passed to g_main_context_set_poll_func(). | ||
| @@ -22,6 +23,12 @@ type PollFD struct { | |||||
| 22 | Revents uint16 | 23 | Revents uint16 | ||
| 23 | } | 24 | } | ||
| 24 | 25 | ||||
| 26 | + | var xPollFDGLibType func() types.GType | |||
| 27 | + | ||||
| 28 | + | func PollFDGLibType() types.GType { | |||
| 29 | + | return xPollFDGLibType() | |||
| 30 | + | } | |||
| 31 | + | ||||
| 25 | func (x *PollFD) GoPointer() uintptr { | 32 | func (x *PollFD) GoPointer() uintptr { | ||
| 26 | return uintptr(unsafe.Pointer(x)) | 33 | return uintptr(unsafe.Pointer(x)) | ||
| 27 | } | 34 | } | ||
| @@ -56,6 +63,9 @@ func init() { | |||||
| 56 | if err != nil { | 63 | if err != nil { | ||
| 57 | panic(err) | 64 | panic(err) | ||
| 58 | } | 65 | } | ||
| 66 | + | ||||
| 59 | core.PuregoSafeRegister(&xPoll, lib, "g_poll") | 67 | core.PuregoSafeRegister(&xPoll, lib, "g_poll") | ||
| 60 | 68 | ||||
| 69 | + | core.PuregoSafeRegister(&xPollFDGLibType, lib, "g_pollfd_get_type") | |||
| 70 | + | ||||
| 61 | } | 71 | } | ||
M v4/glib/gprimes.go +1 -0
| @@ -25,6 +25,7 @@ func init() { | |||||
| 25 | if err != nil { | 25 | if err != nil { | ||
| 26 | panic(err) | 26 | panic(err) | ||
| 27 | } | 27 | } | ||
| 28 | + | ||||
| 28 | core.PuregoSafeRegister(&xSpacedPrimesClosest, lib, "g_spaced_primes_closest") | 29 | core.PuregoSafeRegister(&xSpacedPrimesClosest, lib, "g_spaced_primes_closest") | ||
| 29 | 30 | ||||
| 30 | } | 31 | } | ||
M v4/glib/gprintf.go +1 -0
| @@ -111,6 +111,7 @@ func init() { | |||||
| 111 | if err != nil { | 111 | if err != nil { | ||
| 112 | panic(err) | 112 | panic(err) | ||
| 113 | } | 113 | } | ||
| 114 | + | ||||
| 114 | core.PuregoSafeRegister(&xFprintf, lib, "g_fprintf") | 115 | core.PuregoSafeRegister(&xFprintf, lib, "g_fprintf") | ||
| 115 | core.PuregoSafeRegister(&xPrintf, lib, "g_printf") | 116 | core.PuregoSafeRegister(&xPrintf, lib, "g_printf") | ||
| 116 | core.PuregoSafeRegister(&xSprintf, lib, "g_sprintf") | 117 | core.PuregoSafeRegister(&xSprintf, lib, "g_sprintf") | ||
M v4/glib/gqsort.go +1 -0
| @@ -23,6 +23,7 @@ func init() { | |||||
| 23 | if err != nil { | 23 | if err != nil { | ||
| 24 | panic(err) | 24 | panic(err) | ||
| 25 | } | 25 | } | ||
| 26 | + | ||||
| 26 | core.PuregoSafeRegister(&xQsortWithData, lib, "g_qsort_with_data") | 27 | core.PuregoSafeRegister(&xQsortWithData, lib, "g_qsort_with_data") | ||
| 27 | 28 | ||||
| 28 | } | 29 | } | ||
M v4/glib/gquark.go +1 -0
| @@ -110,6 +110,7 @@ func init() { | |||||
| 110 | if err != nil { | 110 | if err != nil { | ||
| 111 | panic(err) | 111 | panic(err) | ||
| 112 | } | 112 | } | ||
| 113 | + | ||||
| 113 | core.PuregoSafeRegister(&xInternStaticString, lib, "g_intern_static_string") | 114 | core.PuregoSafeRegister(&xInternStaticString, lib, "g_intern_static_string") | ||
| 114 | core.PuregoSafeRegister(&xInternString, lib, "g_intern_string") | 115 | core.PuregoSafeRegister(&xInternString, lib, "g_intern_string") | ||
| 115 | core.PuregoSafeRegister(&xQuarkFromStaticString, lib, "g_quark_from_static_string") | 116 | core.PuregoSafeRegister(&xQuarkFromStaticString, lib, "g_quark_from_static_string") | ||
M v4/glib/grand.go +1 -0
| @@ -153,6 +153,7 @@ func init() { | |||||
| 153 | if err != nil { | 153 | if err != nil { | ||
| 154 | panic(err) | 154 | panic(err) | ||
| 155 | } | 155 | } | ||
| 156 | + | ||||
| 156 | core.PuregoSafeRegister(&xRandomDouble, lib, "g_random_double") | 157 | core.PuregoSafeRegister(&xRandomDouble, lib, "g_random_double") | ||
| 157 | core.PuregoSafeRegister(&xRandomDoubleRange, lib, "g_random_double_range") | 158 | core.PuregoSafeRegister(&xRandomDoubleRange, lib, "g_random_double_range") | ||
| 158 | core.PuregoSafeRegister(&xRandomInt, lib, "g_random_int") | 159 | core.PuregoSafeRegister(&xRandomInt, lib, "g_random_int") | ||
M v4/glib/grcbox.go +1 -0
| @@ -187,6 +187,7 @@ func init() { | |||||
| 187 | if err != nil { | 187 | if err != nil { | ||
| 188 | panic(err) | 188 | panic(err) | ||
| 189 | } | 189 | } | ||
| 190 | + | ||||
| 190 | core.PuregoSafeRegister(&xAtomicRcBoxAcquire, lib, "g_atomic_rc_box_acquire") | 191 | core.PuregoSafeRegister(&xAtomicRcBoxAcquire, lib, "g_atomic_rc_box_acquire") | ||
| 191 | core.PuregoSafeRegister(&xAtomicRcBoxAlloc, lib, "g_atomic_rc_box_alloc") | 192 | core.PuregoSafeRegister(&xAtomicRcBoxAlloc, lib, "g_atomic_rc_box_alloc") | ||
| 192 | core.PuregoSafeRegister(&xAtomicRcBoxAlloc0, lib, "g_atomic_rc_box_alloc0") | 193 | core.PuregoSafeRegister(&xAtomicRcBoxAlloc0, lib, "g_atomic_rc_box_alloc0") | ||
M v4/glib/grefcount.go +1 -0
| @@ -91,6 +91,7 @@ func init() { | |||||
| 91 | if err != nil { | 91 | if err != nil { | ||
| 92 | panic(err) | 92 | panic(err) | ||
| 93 | } | 93 | } | ||
| 94 | + | ||||
| 94 | core.PuregoSafeRegister(&xAtomicRefCountCompare, lib, "g_atomic_ref_count_compare") | 95 | core.PuregoSafeRegister(&xAtomicRefCountCompare, lib, "g_atomic_ref_count_compare") | ||
| 95 | core.PuregoSafeRegister(&xAtomicRefCountDec, lib, "g_atomic_ref_count_dec") | 96 | core.PuregoSafeRegister(&xAtomicRefCountDec, lib, "g_atomic_ref_count_dec") | ||
| 96 | core.PuregoSafeRegister(&xAtomicRefCountInc, lib, "g_atomic_ref_count_inc") | 97 | core.PuregoSafeRegister(&xAtomicRefCountInc, lib, "g_atomic_ref_count_inc") | ||
M v4/glib/grefstring.go +1 -0
| @@ -85,6 +85,7 @@ func init() { | |||||
| 85 | if err != nil { | 85 | if err != nil { | ||
| 86 | panic(err) | 86 | panic(err) | ||
| 87 | } | 87 | } | ||
| 88 | + | ||||
| 88 | core.PuregoSafeRegister(&xRefStringAcquire, lib, "g_ref_string_acquire") | 89 | core.PuregoSafeRegister(&xRefStringAcquire, lib, "g_ref_string_acquire") | ||
| 89 | core.PuregoSafeRegister(&xRefStringLength, lib, "g_ref_string_length") | 90 | core.PuregoSafeRegister(&xRefStringLength, lib, "g_ref_string_length") | ||
| 90 | core.PuregoSafeRegister(&xRefStringNew, lib, "g_ref_string_new") | 91 | core.PuregoSafeRegister(&xRefStringNew, lib, "g_ref_string_new") | ||
M v4/glib/gregex.go +18 -0
| @@ -6,6 +6,7 @@ import ( | |||||
| 6 | 6 | ||||
| 7 | "github.com/jwijenbergh/purego" | 7 | "github.com/jwijenbergh/purego" | ||
| 8 | "github.com/jwijenbergh/puregotk/internal/core" | 8 | "github.com/jwijenbergh/puregotk/internal/core" | ||
| 9 | + | "github.com/jwijenbergh/puregotk/v4/gobject/types" | |||
| 9 | ) | 10 | ) | ||
| 10 | 11 | ||||
| 11 | // Specifies the type of the function passed to g_regex_replace_eval(). | 12 | // Specifies the type of the function passed to g_regex_replace_eval(). | ||
| @@ -19,6 +20,12 @@ type RegexEvalCallback func(*MatchInfo, *String, uintptr) bool | |||||
| 19 | type MatchInfo struct { | 20 | type MatchInfo struct { | ||
| 20 | } | 21 | } | ||
| 21 | 22 | ||||
| 23 | + | var xMatchInfoGLibType func() types.GType | |||
| 24 | + | ||||
| 25 | + | func MatchInfoGLibType() types.GType { | |||
| 26 | + | return xMatchInfoGLibType() | |||
| 27 | + | } | |||
| 28 | + | ||||
| 22 | func (x *MatchInfo) GoPointer() uintptr { | 29 | func (x *MatchInfo) GoPointer() uintptr { | ||
| 23 | return uintptr(unsafe.Pointer(x)) | 30 | return uintptr(unsafe.Pointer(x)) | ||
| 24 | } | 31 | } | ||
| @@ -355,6 +362,12 @@ func (x *MatchInfo) Unref() { | |||||
| 355 | type Regex struct { | 362 | type Regex struct { | ||
| 356 | } | 363 | } | ||
| 357 | 364 | ||||
| 365 | + | var xRegexGLibType func() types.GType | |||
| 366 | + | ||||
| 367 | + | func RegexGLibType() types.GType { | |||
| 368 | + | return xRegexGLibType() | |||
| 369 | + | } | |||
| 370 | + | ||||
| 358 | func (x *Regex) GoPointer() uintptr { | 371 | func (x *Regex) GoPointer() uintptr { | ||
| 359 | return uintptr(unsafe.Pointer(x)) | 372 | return uintptr(unsafe.Pointer(x)) | ||
| 360 | } | 373 | } | ||
| @@ -1289,12 +1302,15 @@ func init() { | |||||
| 1289 | if err != nil { | 1302 | if err != nil { | ||
| 1290 | panic(err) | 1303 | panic(err) | ||
| 1291 | } | 1304 | } | ||
| 1305 | + | ||||
| 1292 | core.PuregoSafeRegister(&xRegexCheckReplacement, lib, "g_regex_check_replacement") | 1306 | core.PuregoSafeRegister(&xRegexCheckReplacement, lib, "g_regex_check_replacement") | ||
| 1293 | core.PuregoSafeRegister(&xRegexEscapeNul, lib, "g_regex_escape_nul") | 1307 | core.PuregoSafeRegister(&xRegexEscapeNul, lib, "g_regex_escape_nul") | ||
| 1294 | core.PuregoSafeRegister(&xRegexEscapeString, lib, "g_regex_escape_string") | 1308 | core.PuregoSafeRegister(&xRegexEscapeString, lib, "g_regex_escape_string") | ||
| 1295 | core.PuregoSafeRegister(&xRegexMatchSimple, lib, "g_regex_match_simple") | 1309 | core.PuregoSafeRegister(&xRegexMatchSimple, lib, "g_regex_match_simple") | ||
| 1296 | core.PuregoSafeRegister(&xRegexSplitSimple, lib, "g_regex_split_simple") | 1310 | core.PuregoSafeRegister(&xRegexSplitSimple, lib, "g_regex_split_simple") | ||
| 1297 | 1311 | ||||
| 1312 | + | core.PuregoSafeRegister(&xMatchInfoGLibType, lib, "g_match_info_get_type") | |||
| 1313 | + | ||||
| 1298 | core.PuregoSafeRegister(&xMatchInfoExpandReferences, lib, "g_match_info_expand_references") | 1314 | core.PuregoSafeRegister(&xMatchInfoExpandReferences, lib, "g_match_info_expand_references") | ||
| 1299 | core.PuregoSafeRegister(&xMatchInfoFetch, lib, "g_match_info_fetch") | 1315 | core.PuregoSafeRegister(&xMatchInfoFetch, lib, "g_match_info_fetch") | ||
| 1300 | core.PuregoSafeRegister(&xMatchInfoFetchAll, lib, "g_match_info_fetch_all") | 1316 | core.PuregoSafeRegister(&xMatchInfoFetchAll, lib, "g_match_info_fetch_all") | ||
| @@ -1311,6 +1327,8 @@ func init() { | |||||
| 1311 | core.PuregoSafeRegister(&xMatchInfoRef, lib, "g_match_info_ref") | 1327 | core.PuregoSafeRegister(&xMatchInfoRef, lib, "g_match_info_ref") | ||
| 1312 | core.PuregoSafeRegister(&xMatchInfoUnref, lib, "g_match_info_unref") | 1328 | core.PuregoSafeRegister(&xMatchInfoUnref, lib, "g_match_info_unref") | ||
| 1313 | 1329 | ||||
| 1330 | + | core.PuregoSafeRegister(&xRegexGLibType, lib, "g_regex_get_type") | |||
| 1331 | + | ||||
| 1314 | core.PuregoSafeRegister(&xNewRegex, lib, "g_regex_new") | 1332 | core.PuregoSafeRegister(&xNewRegex, lib, "g_regex_new") | ||
| 1315 | 1333 | ||||
| 1316 | core.PuregoSafeRegister(&xRegexGetCaptureCount, lib, "g_regex_get_capture_count") | 1334 | core.PuregoSafeRegister(&xRegexGetCaptureCount, lib, "g_regex_get_capture_count") | ||
M v4/glib/gsequence.go +1 -0
| @@ -463,6 +463,7 @@ func init() { | |||||
| 463 | if err != nil { | 463 | if err != nil { | ||
| 464 | panic(err) | 464 | panic(err) | ||
| 465 | } | 465 | } | ||
| 466 | + | ||||
| 466 | core.PuregoSafeRegister(&xSequenceGet, lib, "g_sequence_get") | 467 | core.PuregoSafeRegister(&xSequenceGet, lib, "g_sequence_get") | ||
| 467 | core.PuregoSafeRegister(&xSequenceInsertBefore, lib, "g_sequence_insert_before") | 468 | core.PuregoSafeRegister(&xSequenceInsertBefore, lib, "g_sequence_insert_before") | ||
| 468 | core.PuregoSafeRegister(&xSequenceMove, lib, "g_sequence_move") | 469 | core.PuregoSafeRegister(&xSequenceMove, lib, "g_sequence_move") | ||
M v4/glib/gshell.go +1 -0
| @@ -113,6 +113,7 @@ func init() { | |||||
| 113 | if err != nil { | 113 | if err != nil { | ||
| 114 | panic(err) | 114 | panic(err) | ||
| 115 | } | 115 | } | ||
| 116 | + | ||||
| 116 | core.PuregoSafeRegister(&xShellParseArgv, lib, "g_shell_parse_argv") | 117 | core.PuregoSafeRegister(&xShellParseArgv, lib, "g_shell_parse_argv") | ||
| 117 | core.PuregoSafeRegister(&xShellQuote, lib, "g_shell_quote") | 118 | core.PuregoSafeRegister(&xShellQuote, lib, "g_shell_quote") | ||
| 118 | core.PuregoSafeRegister(&xShellUnquote, lib, "g_shell_unquote") | 119 | core.PuregoSafeRegister(&xShellUnquote, lib, "g_shell_unquote") | ||
M v4/glib/gslice.go +1 -0
| @@ -130,6 +130,7 @@ func init() { | |||||
| 130 | if err != nil { | 130 | if err != nil { | ||
| 131 | panic(err) | 131 | panic(err) | ||
| 132 | } | 132 | } | ||
| 133 | + | ||||
| 133 | core.PuregoSafeRegister(&xSliceAlloc, lib, "g_slice_alloc") | 134 | core.PuregoSafeRegister(&xSliceAlloc, lib, "g_slice_alloc") | ||
| 134 | core.PuregoSafeRegister(&xSliceAlloc0, lib, "g_slice_alloc0") | 135 | core.PuregoSafeRegister(&xSliceAlloc0, lib, "g_slice_alloc0") | ||
| 135 | core.PuregoSafeRegister(&xSliceCopy, lib, "g_slice_copy") | 136 | core.PuregoSafeRegister(&xSliceCopy, lib, "g_slice_copy") | ||
M v4/glib/gslist.go +1 -0
| @@ -36,6 +36,7 @@ func init() { | |||||
| 36 | if err != nil { | 36 | if err != nil { | ||
| 37 | panic(err) | 37 | panic(err) | ||
| 38 | } | 38 | } | ||
| 39 | + | ||||
| 39 | core.PuregoSafeRegister(&xClearSlist, lib, "g_clear_slist") | 40 | core.PuregoSafeRegister(&xClearSlist, lib, "g_clear_slist") | ||
| 40 | 41 | ||||
| 41 | } | 42 | } | ||
M v4/glib/gspawn.go +1 -0
| @@ -581,6 +581,7 @@ func init() { | |||||
| 581 | if err != nil { | 581 | if err != nil { | ||
| 582 | panic(err) | 582 | panic(err) | ||
| 583 | } | 583 | } | ||
| 584 | + | ||||
| 584 | core.PuregoSafeRegister(&xSpawnAsync, lib, "g_spawn_async") | 585 | core.PuregoSafeRegister(&xSpawnAsync, lib, "g_spawn_async") | ||
| 585 | core.PuregoSafeRegister(&xSpawnAsyncWithFds, lib, "g_spawn_async_with_fds") | 586 | core.PuregoSafeRegister(&xSpawnAsyncWithFds, lib, "g_spawn_async_with_fds") | ||
| 586 | core.PuregoSafeRegister(&xSpawnAsyncWithPipes, lib, "g_spawn_async_with_pipes") | 587 | core.PuregoSafeRegister(&xSpawnAsyncWithPipes, lib, "g_spawn_async_with_pipes") | ||
M v4/glib/gstdio.go +1 -0
| @@ -105,6 +105,7 @@ func init() { | |||||
| 105 | if err != nil { | 105 | if err != nil { | ||
| 106 | panic(err) | 106 | panic(err) | ||
| 107 | } | 107 | } | ||
| 108 | + | ||||
| 108 | core.PuregoSafeRegister(&xAccess, lib, "g_access") | 109 | core.PuregoSafeRegister(&xAccess, lib, "g_access") | ||
| 109 | core.PuregoSafeRegister(&xChdir, lib, "g_chdir") | 110 | core.PuregoSafeRegister(&xChdir, lib, "g_chdir") | ||
| 110 | core.PuregoSafeRegister(&xClose, lib, "g_close") | 111 | core.PuregoSafeRegister(&xClose, lib, "g_close") | ||