libcamera: ipa: 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:
parent
df131ad088
commit
cc0b245096
4 changed files with 8 additions and 16 deletions
|
@ -4,8 +4,8 @@
|
|||
*
|
||||
* ipa_controls.h - IPA Control handling
|
||||
*/
|
||||
#ifndef __LIBCAMERA_IPA_CONTROLS_H__
|
||||
#define __LIBCAMERA_IPA_CONTROLS_H__
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
|
@ -50,5 +50,3 @@ struct ipa_control_info_entry {
|
|||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* __LIBCAMERA_IPA_CONTROLS_H__ */
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
*
|
||||
* ipa_interface.h - Image Processing Algorithm interface
|
||||
*/
|
||||
#ifndef __LIBCAMERA_IPA_INTERFACE_H__
|
||||
#define __LIBCAMERA_IPA_INTERFACE_H__
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
@ -37,5 +37,3 @@ public:
|
|||
extern "C" {
|
||||
libcamera::IPAInterface *ipaCreate();
|
||||
}
|
||||
|
||||
#endif /* __LIBCAMERA_IPA_INTERFACE_H__ */
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
*
|
||||
* ipa_module_info.h - Image Processing Algorithm module information
|
||||
*/
|
||||
#ifndef __LIBCAMERA_IPA_MODULE_INFO_H__
|
||||
#define __LIBCAMERA_IPA_MODULE_INFO_H__
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
|
@ -25,5 +25,3 @@ extern const struct IPAModuleInfo ipaModuleInfo;
|
|||
}
|
||||
|
||||
} /* namespace libcamera */
|
||||
|
||||
#endif /* __LIBCAMERA_IPA_MODULE_INFO_H__ */
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
*
|
||||
* raspberrypi.h - Image Processing Algorithm interface for Raspberry Pi
|
||||
*/
|
||||
#ifndef __LIBCAMERA_IPA_INTERFACE_RASPBERRYPI_H__
|
||||
#define __LIBCAMERA_IPA_INTERFACE_RASPBERRYPI_H__
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
|
@ -53,5 +53,3 @@ static const ControlInfoMap Controls({
|
|||
} /* namespace libcamera */
|
||||
|
||||
#endif /* __DOXYGEN__ */
|
||||
|
||||
#endif /* __LIBCAMERA_IPA_INTERFACE_RASPBERRYPI_H__ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue