diff --git a/gst-libs/gst/allocators/gstdmabuf.h b/gst-libs/gst/allocators/gstdmabuf.h index c6301daacd..9410f65e9f 100644 --- a/gst-libs/gst/allocators/gstdmabuf.h +++ b/gst-libs/gst/allocators/gstdmabuf.h @@ -95,14 +95,19 @@ struct _GstDmaBufAllocatorClass }; -GType gst_dmabuf_allocator_get_type (void); +GST_EXPORT +GType gst_dmabuf_allocator_get_type (void); +GST_EXPORT GstAllocator * gst_dmabuf_allocator_new (void); +GST_EXPORT GstMemory * gst_dmabuf_allocator_alloc (GstAllocator * allocator, gint fd, gsize size); +GST_EXPORT gint gst_dmabuf_memory_get_fd (GstMemory * mem); +GST_EXPORT gboolean gst_is_dmabuf_memory (GstMemory * mem); diff --git a/gst-libs/gst/allocators/gstfdmemory.h b/gst-libs/gst/allocators/gstfdmemory.h index 40c90d0bd0..25a7812b5d 100644 --- a/gst-libs/gst/allocators/gstfdmemory.h +++ b/gst-libs/gst/allocators/gstfdmemory.h @@ -76,13 +76,20 @@ struct _GstFdAllocatorClass GstAllocatorClass parent_class; }; -GType gst_fd_allocator_get_type (void); +GST_EXPORT +GType gst_fd_allocator_get_type (void); +GST_EXPORT GstAllocator * gst_fd_allocator_new (void); + +GST_EXPORT GstMemory * gst_fd_allocator_alloc (GstAllocator * allocator, gint fd, gsize size, GstFdMemoryFlags flags); +GST_EXPORT gboolean gst_is_fd_memory (GstMemory *mem); + +GST_EXPORT gint gst_fd_memory_get_fd (GstMemory *mem); #ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC