// Code generated by cmd/cgo; DO NOT EDIT. //line /home/josie/.cache/paru/clone/wiiudownloader/src/pkg/mod/github.com/gotk3/gotk3@v0.6.5-0.20240618185848-ff349ae13f56/glib/glib_since_2_42.go:1:1 // Same copyright and license as the rest of the files in this project // +build !glib_2_40 package glib // #include // #include // #include // #include "glib.go.h" import _ "unsafe" import "unsafe" /* * Notification */ // NotificationPriority is a representation of GLib's GNotificationPriority. type NotificationPriority int const ( NOTIFICATION_PRIORITY_NORMAL NotificationPriority = ( /*line :22:54*/_Ciconst_G_NOTIFICATION_PRIORITY_NORMAL /*line :22:85*/) NOTIFICATION_PRIORITY_LOW NotificationPriority = ( /*line :23:54*/_Ciconst_G_NOTIFICATION_PRIORITY_LOW /*line :23:82*/) NOTIFICATION_PRIORITY_HIGH NotificationPriority = ( /*line :24:54*/_Ciconst_G_NOTIFICATION_PRIORITY_HIGH /*line :24:83*/) NOTIFICATION_PRIORITY_URGENT NotificationPriority = ( /*line :25:54*/_Ciconst_G_NOTIFICATION_PRIORITY_URGENT /*line :25:85*/) ) // SetPriority is a wrapper around g_notification_set_priority(). func (v *Notification) SetPriority(prio NotificationPriority) { func() { _cgo0 := /*line :30:32*/v.native(); var _cgo1 _Ctype_GNotificationPriority = _Ctype_GNotificationPriority /*line :30:67*/(prio); _cgoCheckPointer(_cgo0, nil); /*line :30:74*/_Cfunc_g_notification_set_priority(_cgo0, _cgo1); }() } /* * Application */ // GetResourceBasePath is a wrapper around g_application_get_resource_base_path(). func (v *Application) GetResourceBasePath() string { c := func() *_Ctype_gchar{ _cgo0 := /*line :39:46*/v.native(); _cgoCheckPointer(_cgo0, nil); return /*line :39:57*/_Cfunc_g_application_get_resource_base_path(_cgo0); }() return ( /*line :41:9*/_Cfunc_GoString /*line :41:18*/)((* /*line :41:22*/_Ctype_char /*line :41:28*/)(c)) } // SetResourceBasePath is a wrapper around g_application_set_resource_base_path(). func (v *Application) SetResourceBasePath(bp string) { cstr1 := (* /*line :46:13*/_Ctype_gchar /*line :46:20*/)(( /*line :46:22*/_Cfunc_CString /*line :46:30*/)(bp)) defer func() func() { _cgo0 := /*line :47:15*/unsafe.Pointer(cstr1); return func() { _cgoCheckPointer(_cgo0, nil); /*line :47:37*/_Cfunc_free(_cgo0); }}()() func() { _cgo0 := /*line :49:41*/v.native(); var _cgo1 *_Ctype_gchar = /*line :49:53*/cstr1; _cgoCheckPointer(_cgo0, nil); /*line :49:59*/_Cfunc_g_application_set_resource_base_path(_cgo0, _cgo1); }() }