libcamera: pipeline: 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>
This commit is contained in:
@@ -4,8 +4,8 @@
|
||||
*
|
||||
* cio2.h - Intel IPU3 CIO2
|
||||
*/
|
||||
#ifndef __LIBCAMERA_PIPELINE_IPU3_CIO2_H__
|
||||
#define __LIBCAMERA_PIPELINE_IPU3_CIO2_H__
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
#include <queue>
|
||||
@@ -75,5 +75,3 @@ private:
|
||||
};
|
||||
|
||||
} /* namespace libcamera */
|
||||
|
||||
#endif /* __LIBCAMERA_PIPELINE_IPU3_CIO2_H__ */
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
*
|
||||
* frames.h - Intel IPU3 Frames helper
|
||||
*/
|
||||
#ifndef __LIBCAMERA_PIPELINE_IPU3_FRAMES_H__
|
||||
#define __LIBCAMERA_PIPELINE_IPU3_FRAMES_H__
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <map>
|
||||
#include <memory>
|
||||
@@ -65,5 +65,3 @@ private:
|
||||
};
|
||||
|
||||
} /* namespace libcamera */
|
||||
|
||||
#endif /* __LIBCAMERA_PIPELINE_IPU3_FRAMES_H__ */
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
*
|
||||
* imgu.h - Intel IPU3 ImgU
|
||||
*/
|
||||
#ifndef __LIBCAMERA_PIPELINE_IPU3_IMGU_H__
|
||||
#define __LIBCAMERA_PIPELINE_IPU3_IMGU_H__
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
@@ -122,5 +122,3 @@ private:
|
||||
};
|
||||
|
||||
} /* namespace libcamera */
|
||||
|
||||
#endif /* __LIBCAMERA_PIPELINE_IPU3_IMGU_H__ */
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
*
|
||||
* dma_heaps.h - Helper class for dma-heap allocations.
|
||||
*/
|
||||
#ifndef __LIBCAMERA_PIPELINE_RASPBERRYPI_DMA_HEAPS_H__
|
||||
#define __LIBCAMERA_PIPELINE_RASPBERRYPI_DMA_HEAPS_H__
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <libcamera/file_descriptor.h>
|
||||
|
||||
@@ -28,5 +28,3 @@ private:
|
||||
} /* namespace RPi */
|
||||
|
||||
} /* namespace libcamera */
|
||||
|
||||
#endif /* __LIBCAMERA_PIPELINE_RASPBERRYPI_DMA_HEAPS_H__ */
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
*
|
||||
* rpi_stream.h - Raspberry Pi device stream abstraction class.
|
||||
*/
|
||||
#ifndef __LIBCAMERA_PIPELINE_RPI_STREAM_H__
|
||||
#define __LIBCAMERA_PIPELINE_RPI_STREAM_H__
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <queue>
|
||||
#include <string>
|
||||
@@ -177,5 +177,3 @@ public:
|
||||
} /* namespace RPi */
|
||||
|
||||
} /* namespace libcamera */
|
||||
|
||||
#endif /* __LIBCAMERA_PIPELINE_RPI_STREAM_H__ */
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
*
|
||||
* rkisp1path.h - Rockchip ISP1 path helper
|
||||
*/
|
||||
#ifndef __LIBCAMERA_PIPELINE_RKISP1_PATH_H__
|
||||
#define __LIBCAMERA_PIPELINE_RKISP1_PATH_H__
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
@@ -84,5 +84,3 @@ public:
|
||||
};
|
||||
|
||||
} /* namespace libcamera */
|
||||
|
||||
#endif /* __LIBCAMERA_PIPELINE_RKISP1_PATH_H__ */
|
||||
|
||||
@@ -5,8 +5,7 @@
|
||||
* converter.h - Format converter for simple pipeline handler
|
||||
*/
|
||||
|
||||
#ifndef __LIBCAMERA_PIPELINE_SIMPLE_CONVERTER_H__
|
||||
#define __LIBCAMERA_PIPELINE_SIMPLE_CONVERTER_H__
|
||||
#pragma once
|
||||
|
||||
#include <functional>
|
||||
#include <map>
|
||||
@@ -97,5 +96,3 @@ private:
|
||||
};
|
||||
|
||||
} /* namespace libcamera */
|
||||
|
||||
#endif /* __LIBCAMERA_PIPELINE_SIMPLE_CONVERTER_H__ */
|
||||
|
||||
Reference in New Issue
Block a user