[3/3] DNI: TESTONLY: libcamera: camera: Add an ABI break in SensorConfig
diff mbox series

Message ID 20260903-kbingham-abi-trailers-v1-3-72ae051c912a@ideasonboard.com
State New
Headers show
Series
  • ABI: Document and support ABI and API Trailers
Related show

Commit Message

Kieran Bingham Sept. 3, 2026, 2:51 p.m. UTC
Adding a variable here changes the size of the structure and the offsets
of the variables.

It should be caught by the ABI tooling.

ABI: struct CameraConfiguration: Size of field sensorConfig has been
     changed from 56 bytes to 60 bytes
ABI: struct SensorConfiguration:
     Field BigBreakingABIChange has been added at the middle position of
     this structural type.
API: struct SensorConfiguration:
     Field BigBreakingABIChange has been added to this type.
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
---
 include/libcamera/camera.h | 2 ++
 1 file changed, 2 insertions(+)

Patch
diff mbox series

diff --git a/include/libcamera/camera.h b/include/libcamera/camera.h
index 443116b58845..66381c823749 100644
--- a/include/libcamera/camera.h
+++ b/include/libcamera/camera.h
@@ -38,6 +38,8 @@  class SensorConfiguration
 public:
 	unsigned int bitDepth = 0;
 
+	unsigned int BigBreakingABIChange = 1;
+
 	Rectangle analogCrop;
 
 	struct {