mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
vulkan: Declare missing auto-pointer cleanup functions.
Also removed a couple guards since, given the glib dependency, they are set. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2396>
This commit is contained in:
parent
9c3363a25d
commit
c22ae0700b
12 changed files with 24 additions and 6 deletions
|
@ -66,6 +66,8 @@ struct _GstVulkanCommandPoolClass
|
|||
gpointer _reserved [GST_PADDING];
|
||||
};
|
||||
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC (GstVulkanCommandPool, gst_object_unref)
|
||||
|
||||
GST_VULKAN_API
|
||||
GstVulkanQueue * gst_vulkan_command_pool_get_queue (GstVulkanCommandPool * pool);
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ GType gst_vulkan_descriptor_cache_get_type (void);
|
|||
|
||||
/**
|
||||
* GstVulkanDescriptorCache:
|
||||
* @parent: the parent #GstObject
|
||||
* @parent: the parent #GstVulkanHandlePool
|
||||
* @pool: the #GstVulkanDescriptorPool to cache descriptor sets for
|
||||
*
|
||||
* Since: 1.18
|
||||
|
@ -64,6 +64,8 @@ struct _GstVulkanDescriptorCacheClass
|
|||
gpointer _reserved [GST_PADDING];
|
||||
};
|
||||
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC (GstVulkanDescriptorCache, gst_object_unref)
|
||||
|
||||
GST_VULKAN_API
|
||||
GstVulkanDescriptorCache * gst_vulkan_descriptor_cache_new (GstVulkanDescriptorPool * pool,
|
||||
guint n_layouts,
|
||||
|
|
|
@ -84,6 +84,8 @@ struct _GstVulkanDeviceClass
|
|||
gpointer _reserved [GST_PADDING];
|
||||
};
|
||||
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC (GstVulkanDevice, gst_object_unref)
|
||||
|
||||
GST_VULKAN_API
|
||||
GstVulkanDevice * gst_vulkan_device_new (GstVulkanPhysicalDevice * physical_device);
|
||||
GST_VULKAN_API
|
||||
|
|
|
@ -125,6 +125,8 @@ struct _GstVulkanDisplayClass
|
|||
gpointer _reserved [GST_PADDING];
|
||||
};
|
||||
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC (GstVulkanDisplay, gst_object_unref)
|
||||
|
||||
GST_VULKAN_API
|
||||
GstVulkanDisplay * gst_vulkan_display_new (GstVulkanInstance *instance);
|
||||
GST_VULKAN_API
|
||||
|
|
|
@ -99,6 +99,8 @@ struct _GstVulkanFullScreenQuadClass
|
|||
gpointer _reserved [GST_PADDING];
|
||||
};
|
||||
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC (GstVulkanFullScreenQuad, gst_object_unref)
|
||||
|
||||
GST_VULKAN_API
|
||||
GstVulkanFullScreenQuad * gst_vulkan_full_screen_quad_new (GstVulkanQueue * queue);
|
||||
|
||||
|
|
|
@ -89,6 +89,8 @@ struct _GstVulkanHandlePoolClass
|
|||
gpointer _padding[GST_PADDING];
|
||||
};
|
||||
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC (GstVulkanHandlePool, gst_object_unref)
|
||||
|
||||
GST_VULKAN_API
|
||||
gpointer gst_vulkan_handle_pool_alloc (GstVulkanHandlePool * pool, GError ** error);
|
||||
GST_VULKAN_API
|
||||
|
|
|
@ -76,6 +76,8 @@ struct _GstVulkanInstanceClass
|
|||
gpointer _reserved [GST_PADDING];
|
||||
};
|
||||
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC (GstVulkanInstance, gst_object_unref)
|
||||
|
||||
GST_VULKAN_API
|
||||
GstVulkanInstance * gst_vulkan_instance_new (void);
|
||||
GST_VULKAN_API
|
||||
|
|
|
@ -83,6 +83,8 @@ struct _GstVulkanPhysicalDeviceClass
|
|||
gpointer _reserved [GST_PADDING];
|
||||
};
|
||||
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC (GstVulkanPhysicalDevice, gst_object_unref)
|
||||
|
||||
GST_VULKAN_API
|
||||
GstVulkanPhysicalDevice * gst_vulkan_physical_device_new (GstVulkanInstance * instance,
|
||||
guint device_index);
|
||||
|
|
|
@ -78,7 +78,9 @@ struct _GstVulkanQueueClass
|
|||
gpointer _reserved [GST_PADDING];
|
||||
};
|
||||
|
||||
GST_VULKAN_API
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC (GstVulkanQueue, gst_object_unref)
|
||||
|
||||
GST_VULKAN_API
|
||||
GstVulkanDevice * gst_vulkan_queue_get_device (GstVulkanQueue * queue);
|
||||
|
||||
GST_VULKAN_API
|
||||
|
|
|
@ -84,6 +84,8 @@ struct _GstVulkanSwapperClass
|
|||
gpointer _reserved [GST_PADDING];
|
||||
};
|
||||
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC (GstVulkanSwapper, gst_object_unref)
|
||||
|
||||
GST_VULKAN_API
|
||||
GstVulkanSwapper * gst_vulkan_swapper_new (GstVulkanDevice * device,
|
||||
GstVulkanWindow * window);
|
||||
|
|
|
@ -96,9 +96,7 @@ gst_vulkan_trash_unref (GstVulkanTrash * trash)
|
|||
gst_mini_object_unref (GST_MINI_OBJECT_CAST (trash));
|
||||
}
|
||||
|
||||
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVulkanTrash, gst_vulkan_trash_unref)
|
||||
#endif
|
||||
|
||||
GST_VULKAN_API
|
||||
GstVulkanTrash * gst_vulkan_trash_new (GstVulkanFence * fence,
|
||||
|
@ -163,9 +161,7 @@ GType gst_vulkan_trash_list_get_type (void);
|
|||
#define GST_IS_VULKAN_TRASH_LIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_VULKAN_TRASH_LIST))
|
||||
#define GST_IS_VULKAN_TRASH_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_VULKAN_TRASH_LIST))
|
||||
|
||||
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVulkanTrashList, gst_object_unref)
|
||||
#endif
|
||||
|
||||
/**
|
||||
* GstVulkanTrashList:
|
||||
|
|
|
@ -140,6 +140,8 @@ struct _GstVulkanWindowClass {
|
|||
gpointer _reserved[GST_PADDING];
|
||||
};
|
||||
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVulkanWindow, gst_object_unref)
|
||||
|
||||
GST_VULKAN_API
|
||||
GstVulkanWindow * gst_vulkan_window_new (GstVulkanDisplay *display);
|
||||
|
||||
|
|
Loading…
Reference in a new issue