From 0f73912133fd9da84a2a35f852a11b13bc88a25c Mon Sep 17 00:00:00 2001 From: Marijn Suijten Date: Fri, 28 May 2021 12:30:43 +0200 Subject: [PATCH] gstreamer/gir: Remove duplicate function configurations Found this ambiguity in https://github.com/gtk-rs/gir/pull/1164. --- gstreamer/Gir.toml | 46 ++++++++-------------------------------------- 1 file changed, 8 insertions(+), 38 deletions(-) diff --git a/gstreamer/Gir.toml b/gstreamer/Gir.toml index 81d64bddb..2b667f134 100644 --- a/gstreamer/Gir.toml +++ b/gstreamer/Gir.toml @@ -574,21 +574,6 @@ manual_traits = ["ElementExtManual"] [object.function.return] bool_return_is_error = "Failed to link pads" - [[object.function]] - name = "post_message" - [object.function.return] - bool_return_is_error = "Failed to post message" - - [[object.function]] - name = "seek" - [object.function.return] - bool_return_is_error = "Failed to seek" - - [[object.function]] - name = "seek_simple" - [object.function.return] - bool_return_is_error = "Failed to seek" - [[object.function]] name = "set_clock" [object.function.return] @@ -1514,6 +1499,8 @@ status = "generate" [[object.function]] name = "debug_get_stack_trace" + # can be called before gst_init() + assertion = "skip" [object.function.return] nullable_return_is_error = "Failed to get stack trace" @@ -1547,11 +1534,6 @@ status = "generate" # can be called before gst_init() assertion = "skip" - [[object.function]] - name = "debug_get_stack_trace" - # can be called before gst_init() - assertion = "skip" - [[object.function]] name = "debug_print_stack_trace" # can be called before gst_init() @@ -1679,16 +1661,22 @@ status = "generate" name = "new_y" # Needs manual checking of invariants manual = true + [object.function.return] + nullable = true [[object.function]] name = "new_ym" # Needs manual checking of invariants manual = true + [object.function.return] + nullable = true [[object.function]] name = "new_ymd" # Needs manual checking of invariants manual = true + [object.function.return] + nullable = true [[object.function]] name = "get_month" @@ -1725,24 +1713,6 @@ status = "generate" # Needs manual checking of invariants manual = true - [[object.function]] - name = "new_y" - [object.function.return] - nullable = true - nullable_return_is_error = "Can't create DateTime" - - [[object.function]] - name = "new_ym" - [object.function.return] - nullable = true - nullable_return_is_error = "Can't create DateTime" - - [[object.function]] - name = "new_ymd" - [object.function.return] - nullable = true - nullable_return_is_error = "Can't create DateTime" - [[object.function]] name = "new_from_g_date_time" # Function only ever returns NULL if the argument is NULL