diff options
author | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2021-11-23 17:23:07 +0000 |
---|---|---|
committer | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2021-11-24 12:18:37 +0000 |
commit | c296c91a71bcaeddd042f2d0535d56efc6c371a3 (patch) | |
tree | fdcb6419aba85dd3f804d5589151953044ad069e /src/gstreamer/gstlibcameraallocator.h | |
parent | 2c72ca70e2918b6bd919bcb2fa5b0fdb5f6d5165 (diff) |
gstreamer: Convert to pragma once
Remove the verbose #ifndef/#define/#endif pattern for maintaining
header idempotency, and replace it with a simple #pragma once.
This simplifies the headers, and prevents redundant changes when
header files get moved.
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com>
Diffstat (limited to 'src/gstreamer/gstlibcameraallocator.h')
-rw-r--r-- | src/gstreamer/gstlibcameraallocator.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/gstreamer/gstlibcameraallocator.h b/src/gstreamer/gstlibcameraallocator.h index 0dbd00d0..0a08c3bb 100644 --- a/src/gstreamer/gstlibcameraallocator.h +++ b/src/gstreamer/gstlibcameraallocator.h @@ -6,8 +6,7 @@ * gstlibcameraallocator.h - GStreamer Custom Allocator */ -#ifndef __GST_LIBCAMERA_ALLOCATOR_H__ -#define __GST_LIBCAMERA_ALLOCATOR_H__ +#pragma once #include <gst/gst.h> #include <gst/allocators/allocators.h> @@ -30,5 +29,3 @@ gsize gst_libcamera_allocator_get_pool_size(GstLibcameraAllocator *allocator, libcamera::Stream *stream); libcamera::FrameBuffer *gst_libcamera_memory_get_frame_buffer(GstMemory *mem); - -#endif /* __GST_LIBCAMERA_ALLOCATOR_H__ */ |