summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKieran Bingham <kieran.bingham@ideasonboard.com>2021-02-08 14:30:31 +0000
committerKieran Bingham <kieran.bingham@ideasonboard.com>2021-02-12 11:56:00 +0000
commit1473add188f7a11fb8f5e17d21659a3b30a7063f (patch)
tree03bee283e848608983b5dc32905bac85067847a3 /src
parentdb55e09b42f87d9a7fde32afc4e0eee90b4c7690 (diff)
libcamera: Move extensible to class
The Extensible concept is a generic Class helper. To prepare for further class helper additions, move the specific extensible implementation and header to a more generic class header and source. Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src')
-rw-r--r--src/libcamera/class.cpp (renamed from src/libcamera/extensible.cpp)11
-rw-r--r--src/libcamera/meson.build2
2 files changed, 8 insertions, 5 deletions
diff --git a/src/libcamera/extensible.cpp b/src/libcamera/class.cpp
index 1dcb0bf1..ce230be9 100644
--- a/src/libcamera/extensible.cpp
+++ b/src/libcamera/class.cpp
@@ -2,14 +2,17 @@
/*
* Copyright (C) 2020, Google Inc.
*
- * extensible.cpp - Utilities to create extensible public classes with stable ABIs
+ * class.cpp - Utilities and helpers for classes
*/
-#include <libcamera/extensible.h>
+#include <libcamera/class.h>
/**
- * \file extensible.h
- * \brief Utilities to create extensible public classes with stable ABIs
+ * \file class.h
+ * \brief Utilities to help constructing class interfaces
+ *
+ * The extensible class can be inherited to create public classes with stable
+ * ABIs.
*/
namespace libcamera {
diff --git a/src/libcamera/meson.build b/src/libcamera/meson.build
index ebce19d9..939f1189 100644
--- a/src/libcamera/meson.build
+++ b/src/libcamera/meson.build
@@ -9,6 +9,7 @@ libcamera_sources = files([
'camera_controls.cpp',
'camera_manager.cpp',
'camera_sensor.cpp',
+ 'class.cpp',
'controls.cpp',
'control_serializer.cpp',
'control_validator.cpp',
@@ -18,7 +19,6 @@ libcamera_sources = files([
'event_dispatcher.cpp',
'event_dispatcher_poll.cpp',
'event_notifier.cpp',
- 'extensible.cpp',
'file.cpp',
'file_descriptor.cpp',
'formats.cpp',