libcamera: internal: Move SharedMemObject class to a common directory

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

Tested-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> # sc8280xp Lenovo x13s
Tested-by: Pavel Machek <pavel@ucw.cz>
Reviewed-by: Pavel Machek <pavel@ucw.cz>
Reviewed-by: Milan Zamazal <mzamazal@redhat.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Andrey Konovalov <andrey.konovalov@linaro.org>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
Andrey Konovalov 2024-04-16 11:13:40 +02:00 committed by Kieran Bingham
parent 87ee158ec8
commit bd801907bf
2 changed files with 2 additions and 5 deletions

View file

@ -39,6 +39,7 @@ libcamera_internal_headers = files([
'process.h',
'pub_key.h',
'request.h',
'shared_mem_object.h',
'source_paths.h',
'sysfs.h',
'v4l2_device.h',

View file

@ -6,8 +6,8 @@
*/
#pragma once
#include <cstddef>
#include <fcntl.h>
#include <stddef.h>
#include <string>
#include <sys/mman.h>
#include <sys/stat.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 */