From 3f442d97756228b14de3764ebdfab6e69bdda56d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Laignel?= Date: Fri, 16 Apr 2021 15:58:06 +0200 Subject: [PATCH] prep for regen: relaxed get fn identification --- gstreamer/Gir.toml | 37 +++++++------------------------------ 1 file changed, 7 insertions(+), 30 deletions(-) diff --git a/gstreamer/Gir.toml b/gstreamer/Gir.toml index cba58294d..e09991ecc 100644 --- a/gstreamer/Gir.toml +++ b/gstreamer/Gir.toml @@ -23,9 +23,11 @@ generate = [ "Gst.CoreError", "Gst.DebugColorFlags", "Gst.DebugGraphDetails", + "Gst.DebugLevel", "Gst.EventTypeFlags", "Gst.LibraryError", "Gst.PadDirection", + "Gst.PadMode", "Gst.PadPresence", "Gst.PadProbeReturn", "Gst.ParseError", @@ -242,10 +244,6 @@ status = "generate" [[object.derive]] name = "Debug, PartialEq, Eq, PartialOrd, Ord, Hash" [[object.function]] - name = "get_name" - # consumes `self` so not considered as a getter by gir - rename = "name" - [[object.function]] name = "register" # Needs manual work ignore = true @@ -357,14 +355,6 @@ status = "generate" [[object.member]] name = "instant_rate_sync_time" version = "1.18" - [[object.function]] - name = "get_flags" - # consumes `self` so not considered as a getter by gir - rename = "flags" - [[object.function]] - name = "get_name" - # consumes `self` so not considered as a getter by gir - rename = "name" [[object]] name = "Gst.Structure" @@ -538,6 +528,11 @@ manual_traits = ["ElementExtManual"] # manual implementation also works for earlier versions manual = true + [[object.function]] + name = "get_request_pad" + # rename to more explicite name and avoid conflict with `request_pad` + rename = "request_pad_simple" + [[object.function]] name = "post_message" # takes ownership of message @@ -726,14 +721,6 @@ name = "Gst.TypeFindFactory" status = "generate" final_type = true -[[object]] -name = "Gst.DebugLevel" -status = "generate" - [[object.function]] - name = "get_name" - # consumes `self` so not considered as a getter by gir - rename = "name" - [[object]] name = "Gst.DeviceProviderFactory" status = "generate" @@ -1075,14 +1062,6 @@ manual_traits = ["PadExtManual"] # Has a proper getter ignore = true -[[object]] -name = "Gst.PadMode" -status = "generate" - [[object.function]] - name = "get_name" - # consumes `self` so not considered as a getter by gir - rename = "name" - [[object]] name = "Gst.PadTemplate" status = "generate" @@ -1672,8 +1651,6 @@ name = "Gst.StateChange" status = "generate" [[object.function]] name = "get_name" - # consumes `self` so not considered as a getter by gir - rename = "name" # Manual function for < v1_14: manual = true # Always generate the trait, without version constraint: