From d392d968f9eea3777beda4bbedec9ceb6f2c6d0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Laignel?= Date: Mon, 12 Apr 2021 12:00:52 +0200 Subject: [PATCH] gir prep. for regen - remove get prefix for getters --- gstreamer/Gir.toml | 32 ++++++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/gstreamer/Gir.toml b/gstreamer/Gir.toml index b764bd170..cba58294d 100644 --- a/gstreamer/Gir.toml +++ b/gstreamer/Gir.toml @@ -23,11 +23,9 @@ generate = [ "Gst.CoreError", "Gst.DebugColorFlags", "Gst.DebugGraphDetails", - "Gst.DebugLevel", "Gst.EventTypeFlags", "Gst.LibraryError", "Gst.PadDirection", - "Gst.PadMode", "Gst.PadPresence", "Gst.PadProbeReturn", "Gst.ParseError", @@ -244,6 +242,10 @@ 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 @@ -355,6 +357,14 @@ 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" @@ -716,6 +726,14 @@ 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" @@ -1057,6 +1075,14 @@ 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" @@ -1646,6 +1672,8 @@ 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: