libcamera: Add a base class to implement the d-pointer design pattern

The d-pointer design patterns helps creating public classes that can be
extended without breaking their ABI. To facilitate usage of the pattern
in libcamera, create a base Extensible class with associated macros.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
Laurent Pinchart
2020-09-21 03:08:26 +03:00
parent 6cd1baa28d
commit 79c34d58c7
4 changed files with 223 additions and 0 deletions
+1
View File
@@ -17,6 +17,7 @@ libcamera_sources = files([
'event_dispatcher.cpp',
'event_dispatcher_poll.cpp',
'event_notifier.cpp',
'extensible.cpp',
'file.cpp',
'file_descriptor.cpp',
'formats.cpp',