mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-13 15:29:45 +03:00
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:
parent
87ee158ec8
commit
bd801907bf
2 changed files with 2 additions and 5 deletions
|
@ -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',
|
||||
|
|
|
@ -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 */
|
Loading…
Add table
Add a link
Reference in a new issue