mirror of
https://github.com/go-gst/go-gst.git
synced 2025-10-08 17:30:56 +08:00
deprecate old gst functions and types
This commit is contained in:
@@ -51,6 +51,8 @@ var ExtendsElement glib.Extendable = &extendElement{parent: glib.ExtendsObject}
|
||||
|
||||
// ElementImpl is an interface containing go equivalents of the virtual methods that can be
|
||||
// overridden by a plugin extending an Element.
|
||||
//
|
||||
// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead.
|
||||
type ElementImpl interface {
|
||||
// ChangeState is called by SetState to perform an incremental state change.
|
||||
ChangeState(*Element, StateChange) StateChangeReturn
|
||||
@@ -89,10 +91,18 @@ type ElementImpl interface {
|
||||
|
||||
type extendElement struct{ parent glib.Extendable }
|
||||
|
||||
//
|
||||
// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead.
|
||||
func (e *extendElement) Type() glib.Type { return glib.Type(C.gst_element_get_type()) }
|
||||
//
|
||||
// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead.
|
||||
func (e *extendElement) ClassSize() int64 { return int64(C.sizeof_GstElementClass) }
|
||||
//
|
||||
// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead.
|
||||
func (e *extendElement) InstanceSize() int64 { return int64(C.sizeof_GstElement) }
|
||||
|
||||
//
|
||||
// Deprecated: This is handwritten and will be removed in a future version. Please use the autogenerated bindings instead.
|
||||
func (e *extendElement) InitClass(klass unsafe.Pointer, elem glib.GoObjectSubclass) {
|
||||
e.parent.InitClass(klass, elem)
|
||||
|
||||
|
Reference in New Issue
Block a user