[vala/tintou/gst-element-factory: 13/13] gstreamer-1.0: Unskip the ElementFactory.make/create_full() symbols




commit b5db45783217489f4f4b1fc2344939873cc0152f
Author: Corentin Noël <corentin noel collabora com>
Date:   Wed Dec 8 12:30:32 2021 +0100

    gstreamer-1.0: Unskip the ElementFactory.make/create_full() symbols
    
    Also add floating reference to all the new creation functions.

 vapi/gstreamer-1.0.vapi        | 18 ++++++++++++++----
 vapi/metadata/Gst-1.0.metadata |  4 ++--
 2 files changed, 16 insertions(+), 6 deletions(-)
---
diff --git a/vapi/gstreamer-1.0.vapi b/vapi/gstreamer-1.0.vapi
index ce44cbbb7..9784b338d 100644
--- a/vapi/gstreamer-1.0.vapi
+++ b/vapi/gstreamer-1.0.vapi
@@ -1418,10 +1418,15 @@ namespace Gst {
                public bool can_src_any_caps (Gst.Caps caps);
                [CCode (returns_floating_reference = true)]
                public Gst.Element? create (string? name);
+               [CCode (returns_floating_reference = true)]
+               [Version (since = "1.20")]
+               public Gst.Element? create_full (string? first, ...);
+               [CCode (returns_floating_reference = true)]
                [Version (since = "1.20")]
-               public unowned Gst.Element? create_valist (string? first, va_list? properties);
+               public Gst.Element? create_valist (string? first, va_list? properties);
+               [CCode (returns_floating_reference = true)]
                [Version (since = "1.20")]
-               public unowned Gst.Element? create_with_properties (uint n, string? names, GLib.Value? 
values);
+               public Gst.Element? create_with_properties ([CCode (array_length_cname = "n", 
array_length_pos = 0.5, array_length_type = "guint")] string[]? names, [CCode (array_length_cname = "n", 
array_length_pos = 0.5, array_length_type = "guint")] GLib.Value[]? values);
                public static Gst.ElementFactory? find (string name);
                public GLib.Type get_element_type ();
                public unowned string? get_metadata (string key);
@@ -1440,10 +1445,15 @@ namespace Gst {
                public bool list_is_type (Gst.ElementFactoryListType type);
                [CCode (returns_floating_reference = true)]
                public static Gst.Element? make (string factoryname, string? name);
+               [CCode (returns_floating_reference = true)]
+               [Version (since = "1.20")]
+               public static Gst.Element? make_full (string factoryname, string? first, ...);
+               [CCode (returns_floating_reference = true)]
                [Version (since = "1.20")]
-               public static unowned Gst.Element? make_valist (string factoryname, string? first, va_list? 
properties);
+               public static Gst.Element? make_valist (string factoryname, string? first, va_list? 
properties);
+               [CCode (returns_floating_reference = true)]
                [Version (since = "1.20")]
-               public static unowned Gst.Element? make_with_properties (string factoryname, uint n, string? 
names, GLib.Value? values);
+               public static Gst.Element? make_with_properties (string factoryname, [CCode 
(array_length_cname = "n", array_length_pos = 1.5, array_length_type = "guint")] string[]? names, [CCode 
(array_length_cname = "n", array_length_pos = 1.5, array_length_type = "guint")] GLib.Value[]? values);
        }
        [CCode (cheader_filename = "gst/gst.h", ref_function = "gst_event_ref", type_id = "gst_event_get_type 
()", unref_function = "gst_event_unref")]
        [Compact]
diff --git a/vapi/metadata/Gst-1.0.metadata b/vapi/metadata/Gst-1.0.metadata
index db4d53fdb..7c12fa4c7 100644
--- a/vapi/metadata/Gst-1.0.metadata
+++ b/vapi/metadata/Gst-1.0.metadata
@@ -59,8 +59,8 @@ BufferPool
 Element
   .add_pad.pad owned=false
 ElementFactory
-  .create floating
-  .make floating
+  .create* skip=false floating
+  .make* skip=false floating
 GhostPad
   .new floating
 Pad


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]