Files
go-gst/gst/base/util.go
2025-09-16 22:36:07 +02:00

22 lines
573 B
Go

package base
//#include "gst.go.h"
import "C"
// gboolean converts a go bool to a C.gboolean.
//
// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead.
func gboolean(b bool) C.gboolean {
if b {
return C.gboolean(1)
}
return C.gboolean(0)
}
// gobool provides an easy type conversion between C.gboolean and a go bool.
//
// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead.
func gobool(b C.gboolean) bool {
return int(b) > 0
}