[libcamera-devel,02/11] libcamera: internal: Move SharedMemObject class to a common directory
diff mbox series

Message ID 20231214121350.206015-3-hdegoede@redhat.com
State Superseded
Headers show
Series
  • libcamera: introduce Software ISP and Software IPA
Related show

Commit Message

Hans de Goede Dec. 14, 2023, 12:13 p.m. UTC
From: Andrey Konovalov <andrey.konovalov@linaro.org>

Move SharedMemObject class out of RPi namespace and put it into
include/libcamera/internal so that everyone could use it.

Signed-off-by: Andrey Konovalov <andrey.konovalov@linaro.org>
---
 include/libcamera/internal/meson.build                        | 1 +
 .../common => include/libcamera/internal}/shared_mem_object.h | 4 ----
 2 files changed, 1 insertion(+), 4 deletions(-)
 rename {src/libcamera/pipeline/rpi/common => include/libcamera/internal}/shared_mem_object.h (98%)

Patch
diff mbox series

diff --git a/include/libcamera/internal/meson.build b/include/libcamera/internal/meson.build
index 0f725cfd..b780777c 100644
--- a/include/libcamera/internal/meson.build
+++ b/include/libcamera/internal/meson.build
@@ -38,6 +38,7 @@  libcamera_internal_headers = files([
     'process.h',
     'pub_key.h',
     'request.h',
+    'shared_mem_object.h',
     'software_isp.h',
     'source_paths.h',
     'sysfs.h',
diff --git a/src/libcamera/pipeline/rpi/common/shared_mem_object.h b/include/libcamera/internal/shared_mem_object.h
similarity index 98%
rename from src/libcamera/pipeline/rpi/common/shared_mem_object.h
rename to include/libcamera/internal/shared_mem_object.h
index aa56c220..bfb639ee 100644
--- a/src/libcamera/pipeline/rpi/common/shared_mem_object.h
+++ b/include/libcamera/internal/shared_mem_object.h
@@ -19,8 +19,6 @@ 
 
 namespace libcamera {
 
-namespace RPi {
-
 template<class T>
 class SharedMemObject
 {
@@ -123,6 +121,4 @@  private:
 	T *obj_;
 };
 
-} /* namespace RPi */
-
 } /* namespace libcamera */