mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-13 07:19:45 +03:00
libcamera: Move file_descriptor.h to base/
The FileDescriptor class is a generic helper that matches the criteria for the base library. Move it there. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Hirokazu Honda <hiroh@chromium.org> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
parent
6b1e256934
commit
6c6acaa7ea
14 changed files with 13 additions and 16 deletions
|
@ -11,6 +11,7 @@ libcamera_base_headers = files([
|
||||||
'event_dispatcher_poll.h',
|
'event_dispatcher_poll.h',
|
||||||
'event_notifier.h',
|
'event_notifier.h',
|
||||||
'file.h',
|
'file.h',
|
||||||
|
'file_descriptor.h',
|
||||||
'flags.h',
|
'flags.h',
|
||||||
'log.h',
|
'log.h',
|
||||||
'message.h',
|
'message.h',
|
||||||
|
|
|
@ -13,10 +13,9 @@
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include <libcamera/base/class.h>
|
#include <libcamera/base/class.h>
|
||||||
|
#include <libcamera/base/file_descriptor.h>
|
||||||
#include <libcamera/base/span.h>
|
#include <libcamera/base/span.h>
|
||||||
|
|
||||||
#include <libcamera/file_descriptor.h>
|
|
||||||
|
|
||||||
namespace libcamera {
|
namespace libcamera {
|
||||||
|
|
||||||
class Request;
|
class Request;
|
||||||
|
|
|
@ -9,10 +9,9 @@
|
||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
#include <libcamera/base/file_descriptor.h>
|
||||||
#include <libcamera/base/signal.h>
|
#include <libcamera/base/signal.h>
|
||||||
|
|
||||||
#include <libcamera/file_descriptor.h>
|
|
||||||
|
|
||||||
#include "libcamera/internal/ipc_unixsocket.h"
|
#include "libcamera/internal/ipc_unixsocket.h"
|
||||||
|
|
||||||
namespace libcamera {
|
namespace libcamera {
|
||||||
|
|
|
@ -6,7 +6,6 @@ libcamera_public_headers = files([
|
||||||
'camera.h',
|
'camera.h',
|
||||||
'camera_manager.h',
|
'camera_manager.h',
|
||||||
'controls.h',
|
'controls.h',
|
||||||
'file_descriptor.h',
|
|
||||||
'framebuffer.h',
|
'framebuffer.h',
|
||||||
'framebuffer_allocator.h',
|
'framebuffer_allocator.h',
|
||||||
'geometry.h',
|
'geometry.h',
|
||||||
|
|
|
@ -15,12 +15,12 @@
|
||||||
|
|
||||||
#include <linux/bcm2835-isp.h>
|
#include <linux/bcm2835-isp.h>
|
||||||
|
|
||||||
|
#include <libcamera/base/file_descriptor.h>
|
||||||
#include <libcamera/base/log.h>
|
#include <libcamera/base/log.h>
|
||||||
#include <libcamera/base/span.h>
|
#include <libcamera/base/span.h>
|
||||||
|
|
||||||
#include <libcamera/control_ids.h>
|
#include <libcamera/control_ids.h>
|
||||||
#include <libcamera/controls.h>
|
#include <libcamera/controls.h>
|
||||||
#include <libcamera/file_descriptor.h>
|
|
||||||
#include <libcamera/framebuffer.h>
|
#include <libcamera/framebuffer.h>
|
||||||
#include <libcamera/ipa/ipa_interface.h>
|
#include <libcamera/ipa/ipa_interface.h>
|
||||||
#include <libcamera/ipa/ipa_module_info.h>
|
#include <libcamera/ipa/ipa_module_info.h>
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* file_descriptor.cpp - File descriptor wrapper
|
* file_descriptor.cpp - File descriptor wrapper
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <libcamera/file_descriptor.h>
|
#include <libcamera/base/file_descriptor.h>
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
#include <libcamera/base/log.h>
|
#include <libcamera/base/log.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \file file_descriptor.h
|
* \file base/file_descriptor.h
|
||||||
* \brief File descriptor wrapper
|
* \brief File descriptor wrapper
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -8,6 +8,7 @@ libcamera_base_sources = files([
|
||||||
'event_dispatcher_poll.cpp',
|
'event_dispatcher_poll.cpp',
|
||||||
'event_notifier.cpp',
|
'event_notifier.cpp',
|
||||||
'file.cpp',
|
'file.cpp',
|
||||||
|
'file_descriptor.cpp',
|
||||||
'flags.cpp',
|
'flags.cpp',
|
||||||
'log.cpp',
|
'log.cpp',
|
||||||
'message.cpp',
|
'message.cpp',
|
||||||
|
|
|
@ -15,7 +15,6 @@ libcamera_sources = files([
|
||||||
'delayed_controls.cpp',
|
'delayed_controls.cpp',
|
||||||
'device_enumerator.cpp',
|
'device_enumerator.cpp',
|
||||||
'device_enumerator_sysfs.cpp',
|
'device_enumerator_sysfs.cpp',
|
||||||
'file_descriptor.cpp',
|
|
||||||
'formats.cpp',
|
'formats.cpp',
|
||||||
'framebuffer.cpp',
|
'framebuffer.cpp',
|
||||||
'framebuffer_allocator.cpp',
|
'framebuffer_allocator.cpp',
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <libcamera/file_descriptor.h>
|
#include <libcamera/base/file_descriptor.h>
|
||||||
|
|
||||||
namespace libcamera {
|
namespace libcamera {
|
||||||
|
|
||||||
|
|
|
@ -13,9 +13,10 @@
|
||||||
#include <queue>
|
#include <queue>
|
||||||
#include <unordered_set>
|
#include <unordered_set>
|
||||||
|
|
||||||
|
#include <libcamera/base/file_descriptor.h>
|
||||||
|
|
||||||
#include <libcamera/camera.h>
|
#include <libcamera/camera.h>
|
||||||
#include <libcamera/control_ids.h>
|
#include <libcamera/control_ids.h>
|
||||||
#include <libcamera/file_descriptor.h>
|
|
||||||
#include <libcamera/formats.h>
|
#include <libcamera/formats.h>
|
||||||
#include <libcamera/ipa/raspberrypi.h>
|
#include <libcamera/ipa/raspberrypi.h>
|
||||||
#include <libcamera/ipa/raspberrypi_ipa_interface.h>
|
#include <libcamera/ipa/raspberrypi_ipa_interface.h>
|
||||||
|
|
|
@ -22,11 +22,10 @@
|
||||||
#include <linux/version.h>
|
#include <linux/version.h>
|
||||||
|
|
||||||
#include <libcamera/base/event_notifier.h>
|
#include <libcamera/base/event_notifier.h>
|
||||||
|
#include <libcamera/base/file_descriptor.h>
|
||||||
#include <libcamera/base/log.h>
|
#include <libcamera/base/log.h>
|
||||||
#include <libcamera/base/utils.h>
|
#include <libcamera/base/utils.h>
|
||||||
|
|
||||||
#include <libcamera/file_descriptor.h>
|
|
||||||
|
|
||||||
#include "libcamera/internal/formats.h"
|
#include "libcamera/internal/formats.h"
|
||||||
#include "libcamera/internal/framebuffer.h"
|
#include "libcamera/internal/framebuffer.h"
|
||||||
#include "libcamera/internal/media_device.h"
|
#include "libcamera/internal/media_device.h"
|
||||||
|
|
|
@ -10,11 +10,11 @@
|
||||||
#include <deque>
|
#include <deque>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
|
|
||||||
|
#include <libcamera/base/file_descriptor.h>
|
||||||
#include <libcamera/base/mutex.h>
|
#include <libcamera/base/mutex.h>
|
||||||
#include <libcamera/base/semaphore.h>
|
#include <libcamera/base/semaphore.h>
|
||||||
|
|
||||||
#include <libcamera/camera.h>
|
#include <libcamera/camera.h>
|
||||||
#include <libcamera/file_descriptor.h>
|
|
||||||
#include <libcamera/framebuffer.h>
|
#include <libcamera/framebuffer.h>
|
||||||
#include <libcamera/framebuffer_allocator.h>
|
#include <libcamera/framebuffer_allocator.h>
|
||||||
|
|
||||||
|
|
|
@ -11,8 +11,7 @@
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
#include <libcamera/file_descriptor.h>
|
#include <libcamera/base/file_descriptor.h>
|
||||||
|
|
||||||
#include <libcamera/base/utils.h>
|
#include <libcamera/base/utils.h>
|
||||||
|
|
||||||
#include "test.h"
|
#include "test.h"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue