gstreamer/subprojects/gst-plugins-base/gst-libs/gst/allocators/gstdrmdumb.h
Marvin Schmidt 1b74f039ab allocators: drmdumb: Remove extra semicolon after G_DECLARE_FINAL_TYPE
The `G_DECLARE_FINAL_TYPE` macro does not need to be terminated with a
semicolon and the extra semicolon breaks building e.g. libcamera with
clang because `-Wextra-semi` is used which produces the following
error in conjunction with `-Werror`:
```
gstreamer-1.0/gst/allocators/gstdrmdumb.h:61:43: error: extra ';' outside
of a function is incompatible with C++98 [-Werror,-Wc++98-compat-extra-semi]
   61 |     GST, DRM_DUMB_ALLOCATOR, GstAllocator);
      |                                           ^
1 error generated.
```

Fix this by removing the extra semicolon

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6239>
2024-02-28 23:56:53 +01:00

88 lines
2.4 KiB
C

/* GStreamer
*
* Copyright (C) 2016 Igalia
* Copyright (C) 2023 Collabora
*
* Authors:
* Víctor Manuel Jáquez Leal <vjaquez@igalia.com>
* Javier Martin <javiermartin@by.com.es>
* Colin Kinloch <colin.kinloch@collabora.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
* Boston, MA 02110-1301, USA.
*
*/
#pragma once
#include <gst/gst.h>
#include <gst/allocators/allocators-prelude.h>
G_BEGIN_DECLS
/**
* GstDRMDumbAllocator:
*
* Private intance object for #GstDRMDumbAllocator.
*
* Since: 1.24
*/
/**
* GstDRMDumbAllocatorClass.parent_class:
*
* Parent Class.
*
* Since: 1.24
*/
/**
* GST_TYPE_DRM_DUMB_ALLOCATOR:
*
* Macro that returns the #GstDRMDumbAllocator type.
*
* Since: 1.24
*/
#define GST_TYPE_DRM_DUMB_ALLOCATOR gst_drm_dumb_allocator_get_type ()
GST_ALLOCATORS_API
G_DECLARE_FINAL_TYPE (GstDRMDumbAllocator, gst_drm_dumb_allocator,
GST, DRM_DUMB_ALLOCATOR, GstAllocator)
GST_ALLOCATORS_API
gboolean gst_is_drm_dumb_memory (GstMemory * mem);
GST_ALLOCATORS_API
guint32 gst_drm_dumb_memory_get_handle (GstMemory * mem);
GST_ALLOCATORS_API
GstMemory* gst_drm_dumb_memory_export_dmabuf (GstMemory * mem);
GST_ALLOCATORS_API
GstAllocator * gst_drm_dumb_allocator_new_with_fd (gint drm_fd);
GST_ALLOCATORS_API
GstAllocator * gst_drm_dumb_allocator_new_with_device_path (const gchar *drm_device_path);
GST_ALLOCATORS_API
GstMemory * gst_drm_dumb_allocator_alloc (GstAllocator * allocator,
guint32 drm_fourcc,
guint32 width,
guint32 height,
guint32 *out_pitch);
GST_ALLOCATORS_API
gboolean gst_drm_dumb_allocator_has_prime_export (GstAllocator * allocator);
G_END_DECLS