mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-20 06:08:14 +00:00
Pass all miniobjects and GstStructure by reference These types contain more information internally, which would get lost if we pass them by value, because only parts of these structs are visible to the bindings and thus information is missed when the structure would get passed back to native.
This commit is contained in:
parent
603cc6dee1
commit
a8c7682238
1 changed files with 7 additions and 1 deletions
|
@ -12,10 +12,16 @@
|
||||||
<!-- Handle is missing in GstBuffer -->
|
<!-- Handle is missing in GstBuffer -->
|
||||||
<attr path="/api/namespace/boxed[@cname='GstBuffer']/method[@cname='gst_buffer_set_size']" name="hidden">true</attr>
|
<attr path="/api/namespace/boxed[@cname='GstBuffer']/method[@cname='gst_buffer_set_size']" name="hidden">true</attr>
|
||||||
<!-- MiniObject issues -->
|
<!-- MiniObject issues -->
|
||||||
<attr path="/api/namespace/boxed[@cname='GstMessage']/field[@cname='cond']" name="type">GCond*</attr>
|
|
||||||
<attr path="/api/namespace/struct[@cname='GstMiniObject']/field[@cname='copy']" name="type">gpointer</attr>
|
<attr path="/api/namespace/struct[@cname='GstMiniObject']/field[@cname='copy']" name="type">gpointer</attr>
|
||||||
<attr path="/api/namespace/struct[@cname='GstMiniObject']/field[@cname='free']" name="type">gpointer</attr>
|
<attr path="/api/namespace/struct[@cname='GstMiniObject']/field[@cname='free']" name="type">gpointer</attr>
|
||||||
<attr path="/api/namespace/struct[@cname='GstMiniObject']/field[@cname='dispose']" name="type">gpointer</attr>
|
<attr path="/api/namespace/struct[@cname='GstMiniObject']/field[@cname='dispose']" name="type">gpointer</attr>
|
||||||
|
<attr path="/api/namespace/struct[@cname='GstMessage']/field[@cname='cond']" name="type">GCond*</attr>
|
||||||
|
<!-- add native attribute to all structs which need special handling -->
|
||||||
|
<change-node-type path="/api/namespace//boxed[field/@cname='mini_object']">struct</change-node-type>
|
||||||
|
<attr path="/api/namespace//struct[field/@cname='mini_object']" name="native">true</attr>
|
||||||
|
<change-node-type path="/api/namespace//boxed[@cname='GstStructure']">struct</change-node-type>
|
||||||
|
<attr path="/api/namespace/struct[@cname='GstStructure']" name="native">true</attr>
|
||||||
|
<remove-node path="/api/namespace/boxed[@cname='GstStructure']/field[@cname='name']" />
|
||||||
<!-- Maybe some problems with the name -->
|
<!-- Maybe some problems with the name -->
|
||||||
<remove-node path="/api/namespace/interface[@cname='GstURIHandler']/class_struct/method[@vm='get_type']" name="vm" />
|
<remove-node path="/api/namespace/interface[@cname='GstURIHandler']/class_struct/method[@vm='get_type']" name="vm" />
|
||||||
<remove-node path="/api/namespace/interface[@cname='GstURIHandler']/virtual_method[@cname='get_type']" name="hidden" />
|
<remove-node path="/api/namespace/interface[@cname='GstURIHandler']/virtual_method[@cname='get_type']" name="hidden" />
|
||||||
|
|
Loading…
Reference in a new issue