mirror of
https://github.com/go-gst/go-gst.git
synced 2025-10-21 15:09:22 +08:00
deprecate old gst functions and types
This commit is contained in:
@@ -4,6 +4,8 @@ package base
|
||||
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)
|
||||
@@ -12,6 +14,8 @@ func gboolean(b bool) C.gboolean {
|
||||
}
|
||||
|
||||
// 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
|
||||
}
|
||||
|
Reference in New Issue
Block a user