vulkan: Fix context get/set annotations

Most notably the out annotations for gst_context_get_* were missing,
causing us to generate the wrong bindings for Rust.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5736>
This commit is contained in:
Marijn Suijten 2023-11-28 10:54:27 +01:00 committed by GStreamer Marge Bot
parent c11eaf56f5
commit e5b627857a
5 changed files with 16 additions and 16 deletions

View file

@ -6649,7 +6649,7 @@ Currently intended for subclasses to update internal state.</doc>
<doc xml:space="preserve" filename="../subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkdevice.c">a #GstContext</doc>
<type name="Gst.Context" c:type="GstContext*"/>
</parameter>
<parameter name="device" transfer-ownership="none">
<parameter name="device" direction="out" caller-allocates="0" transfer-ownership="full" nullable="1" optional="1" allow-none="1">
<doc xml:space="preserve" filename="../subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkdevice.c">resulting #GstVulkanDevice</doc>
<type name="VulkanDevice" c:type="GstVulkanDevice**"/>
</parameter>
@ -6666,7 +6666,7 @@ Currently intended for subclasses to update internal state.</doc>
<doc xml:space="preserve" filename="../subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkdisplay.c">a #GstContext</doc>
<type name="Gst.Context" c:type="GstContext*"/>
</parameter>
<parameter name="display" transfer-ownership="none">
<parameter name="display" direction="out" caller-allocates="0" transfer-ownership="full" nullable="1" optional="1" allow-none="1">
<doc xml:space="preserve" filename="../subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkdisplay.c">resulting #GstVulkanDisplay</doc>
<type name="VulkanDisplay" c:type="GstVulkanDisplay**"/>
</parameter>
@ -6683,7 +6683,7 @@ Currently intended for subclasses to update internal state.</doc>
<doc xml:space="preserve" filename="../subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkinstance.c">a #GstContext</doc>
<type name="Gst.Context" c:type="GstContext*"/>
</parameter>
<parameter name="instance" transfer-ownership="none">
<parameter name="instance" direction="out" caller-allocates="0" transfer-ownership="full" nullable="1" optional="1" allow-none="1">
<doc xml:space="preserve" filename="../subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkinstance.c">resulting #GstVulkanInstance</doc>
<type name="VulkanInstance" c:type="GstVulkanInstance**"/>
</parameter>
@ -6700,7 +6700,7 @@ Currently intended for subclasses to update internal state.</doc>
<doc xml:space="preserve" filename="../subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkqueue.c">a #GstContext</doc>
<type name="Gst.Context" c:type="GstContext*"/>
</parameter>
<parameter name="queue" transfer-ownership="none">
<parameter name="queue" direction="out" caller-allocates="0" transfer-ownership="full" nullable="1" optional="1" allow-none="1">
<doc xml:space="preserve" filename="../subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkqueue.c">resulting #GstVulkanQueue</doc>
<type name="VulkanQueue" c:type="GstVulkanQueue**"/>
</parameter>
@ -6717,7 +6717,7 @@ Currently intended for subclasses to update internal state.</doc>
<doc xml:space="preserve" filename="../subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkdevice.c">a #GstContext</doc>
<type name="Gst.Context" c:type="GstContext*"/>
</parameter>
<parameter name="device" transfer-ownership="none">
<parameter name="device" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve" filename="../subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkdevice.c">a #GstVulkanDevice</doc>
<type name="VulkanDevice" c:type="GstVulkanDevice*"/>
</parameter>
@ -6734,7 +6734,7 @@ Currently intended for subclasses to update internal state.</doc>
<doc xml:space="preserve" filename="../subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkdisplay.c">a #GstContext</doc>
<type name="Gst.Context" c:type="GstContext*"/>
</parameter>
<parameter name="display" transfer-ownership="none">
<parameter name="display" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve" filename="../subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkdisplay.c">a #GstVulkanDisplay</doc>
<type name="VulkanDisplay" c:type="GstVulkanDisplay*"/>
</parameter>
@ -6751,7 +6751,7 @@ Currently intended for subclasses to update internal state.</doc>
<doc xml:space="preserve" filename="../subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkinstance.c">a #GstContext</doc>
<type name="Gst.Context" c:type="GstContext*"/>
</parameter>
<parameter name="instance" transfer-ownership="none">
<parameter name="instance" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve" filename="../subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkinstance.c">a #GstVulkanInstance</doc>
<type name="VulkanInstance" c:type="GstVulkanInstance*"/>
</parameter>
@ -6768,7 +6768,7 @@ Currently intended for subclasses to update internal state.</doc>
<doc xml:space="preserve" filename="../subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkqueue.c">a #GstContext</doc>
<type name="Gst.Context" c:type="GstContext*"/>
</parameter>
<parameter name="queue" transfer-ownership="none">
<parameter name="queue" transfer-ownership="none" nullable="1" allow-none="1">
<doc xml:space="preserve" filename="../subprojects/gst-plugins-bad/gst-libs/gst/vulkan/gstvkqueue.c">a #GstVulkanQueue</doc>
<type name="VulkanQueue" c:type="GstVulkanQueue*"/>
</parameter>

View file

@ -686,7 +686,7 @@ gst_vulkan_device_get_physical_device (GstVulkanDevice * device)
/**
* gst_context_set_vulkan_device:
* @context: a #GstContext
* @device: a #GstVulkanDevice
* @device: (transfer none) (nullable): a #GstVulkanDevice
*
* Sets @device on @context
*
@ -713,7 +713,7 @@ gst_context_set_vulkan_device (GstContext * context, GstVulkanDevice * device)
/**
* gst_context_get_vulkan_device:
* @context: a #GstContext
* @device: resulting #GstVulkanDevice
* @device: (out) (optional) (nullable) (transfer full): resulting #GstVulkanDevice
*
* Returns: Whether @device was in @context
*

View file

@ -461,7 +461,7 @@ gst_vulkan_display_remove_window (GstVulkanDisplay * display,
/**
* gst_context_set_vulkan_display:
* @context: a #GstContext
* @display: a #GstVulkanDisplay
* @display: (transfer none) (nullable): a #GstVulkanDisplay
*
* Sets @display on @context
*
@ -489,7 +489,7 @@ gst_context_set_vulkan_display (GstContext * context,
/**
* gst_context_get_vulkan_display:
* @context: a #GstContext
* @display: resulting #GstVulkanDisplay
* @display: (out) (optional) (nullable) (transfer full): resulting #GstVulkanDisplay
*
* Returns: Whether @display was in @context
*

View file

@ -1137,7 +1137,7 @@ gst_vulkan_instance_create_device (GstVulkanInstance * instance,
/**
* gst_context_set_vulkan_instance:
* @context: a #GstContext
* @instance: a #GstVulkanInstance
* @instance: (transfer none) (nullable): a #GstVulkanInstance
*
* Sets @instance on @context
*
@ -1165,7 +1165,7 @@ gst_context_set_vulkan_instance (GstContext * context,
/**
* gst_context_get_vulkan_instance:
* @context: a #GstContext
* @instance: resulting #GstVulkanInstance
* @instance: (out) (optional) (nullable) (transfer full): resulting #GstVulkanInstance
*
* Returns: Whether @instance was in @context
*

View file

@ -157,7 +157,7 @@ error:
/**
* gst_context_set_vulkan_queue:
* @context: a #GstContext
* @queue: a #GstVulkanQueue
* @queue: (transfer none) (nullable): a #GstVulkanQueue
*
* Sets @queue on @context
*
@ -184,7 +184,7 @@ gst_context_set_vulkan_queue (GstContext * context, GstVulkanQueue * queue)
/**
* gst_context_get_vulkan_queue:
* @context: a #GstContext
* @queue: resulting #GstVulkanQueue
* @queue: (out) (optional) (nullable) (transfer full): resulting #GstVulkanQueue
*
* Returns: Whether @queue was in @context
*