pull in glib interface changes

This commit is contained in:
Avi Zimmerman
2021-02-06 08:12:46 +02:00
parent 099460e179
commit 9799e5610e
7 changed files with 42 additions and 49 deletions

View File

@@ -6,12 +6,12 @@ package rtp
import "C"
// gboolean converts a go bool to a C.gboolean.
func gboolean(b bool) C.gboolean {
if b {
return C.gboolean(1)
}
return C.gboolean(0)
}
// 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.
func gobool(b C.gboolean) bool {