major move of all glib specific bindings and extendable objects from go runtime to go-glib package

This commit is contained in:
Avi Zimmerman
2021-01-17 18:42:14 +02:00
parent d5306ebb3e
commit 56afdb35c0
61 changed files with 286 additions and 2614 deletions

View File

@@ -4,10 +4,19 @@ package gst
#include "gst.go.h"
*/
import "C"
import "unsafe"
import (
"unsafe"
"github.com/tinyzimmer/go-glib/glib"
)
// ElementClass represents the subclass of an element provided by a plugin.
type ElementClass struct{ *ObjectClass }
type ElementClass struct{ *glib.ObjectClass }
// ToElementClass wraps the given ObjectClass in an ElementClass instance.
func ToElementClass(klass *glib.ObjectClass) *ElementClass {
return &ElementClass{klass}
}
// Instance returns the underlying GstElementClass instance.
func (e *ElementClass) Instance() *C.GstElementClass {