wayland: Export the _get_type() functions

Add the macro before the declaration so the types are properly exported,
this makes it possible to do dynamic casting and checks.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3858>
This commit is contained in:
Olivier Crête 2023-01-27 15:40:21 -05:00 committed by GStreamer Marge Bot
parent fc5159c2d8
commit 16158df5b2
5 changed files with 10 additions and 0 deletions

View file

@ -25,6 +25,8 @@
G_BEGIN_DECLS
#define GST_TYPE_WL_BUFFER gst_wl_buffer_get_type ()
GST_WL_API
G_DECLARE_FINAL_TYPE (GstWlBuffer, gst_wl_buffer, GST, WL_BUFFER, GObject);
struct _GstWlBuffer

View file

@ -28,6 +28,8 @@
G_BEGIN_DECLS
#define GST_TYPE_WL_DISPLAY (gst_wl_display_get_type ())
GST_WL_API
G_DECLARE_FINAL_TYPE (GstWlDisplay, gst_wl_display, GST, WL_DISPLAY, GObject);
struct _GstWlDisplay

View file

@ -30,6 +30,8 @@
G_BEGIN_DECLS
#define GST_TYPE_WL_SHM_ALLOCATOR (gst_wl_shm_allocator_get_type ())
GST_WL_API
G_DECLARE_FINAL_TYPE (GstWlShmAllocator, gst_wl_shm_allocator, GST, WL_SHM_ALLOCATOR, GstFdAllocator);
#define GST_ALLOCATOR_WL_SHM "wl_shm"

View file

@ -33,6 +33,8 @@ G_BEGIN_DECLS
* hopefully there will be a better Wayland interface in the future. */
#define GST_TYPE_WL_VIDEO_BUFFER_POOL (gst_wl_video_buffer_pool_get_type ())
GST_WL_API
G_DECLARE_FINAL_TYPE (GstWlVideoBufferPool, gst_wl_video_buffer_pool, GST, WL_VIDEO_BUFFER_POOL, GstVideoBufferPool);
struct _GstWlVideoBufferPool

View file

@ -26,6 +26,8 @@
G_BEGIN_DECLS
#define GST_TYPE_WL_WINDOW (gst_wl_window_get_type ())
GST_WL_API
G_DECLARE_FINAL_TYPE (GstWlWindow, gst_wl_window, GST, WL_WINDOW, GObject);
struct _GstWlWindow