// Package gobject was automatically generated by github.com/bnema/puregotk DO NOT EDIT package gobject import ( "github.com/ebitengine/purego" "github.com/bnema/puregotk/pkg/core" "github.com/bnema/puregotk/v4/glib" ) var xSourceSetClosure func(*glib.Source, *Closure) // Set the callback for a source as a #GClosure. // // If the source is not one of the standard GLib types, the @closure_callback // and @closure_marshal fields of the #GSourceFuncs structure must have been // filled in with pointers to appropriate functions. func SourceSetClosure(SourceVar *glib.Source, ClosureVar *Closure) { xSourceSetClosure(SourceVar, ClosureVar) } var xSourceSetDummyCallback func(*glib.Source) // Sets a dummy callback for @source. The callback will do nothing, and // if the source expects a #gboolean return value, it will return %TRUE. // (If the source expects any other type of return value, it will return // a 0/%NULL value; whatever g_value_init() initializes a #GValue to for // that type.) // // If the source is not one of the standard GLib types, the // @closure_callback and @closure_marshal fields of the #GSourceFuncs // structure must have been filled in with pointers to appropriate // functions. func SourceSetDummyCallback(SourceVar *glib.Source) { xSourceSetDummyCallback(SourceVar) } func init() { core.SetPackageName("GOBJECT", "gobject-2.0") core.SetSharedLibraries("GOBJECT", []string{"libgobject-2.0.so.0"}) var libs []uintptr for _, libPath := range core.GetPaths("GOBJECT") { lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) if err != nil { panic(err) } libs = append(libs, lib) } core.PuregoSafeRegister(&xSourceSetClosure, libs, "g_source_set_closure") core.PuregoSafeRegister(&xSourceSetDummyCallback, libs, "g_source_set_dummy_callback") }