libcamera/base: Move File to base library
The File abstraction is a base helper and not part of the libcamera API. Move it to to allow usage by users of the base library. Reviewed-by: Hirokazu Honda <hiroh@chromium.org> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
parent
27aff949fb
commit
b304bc013e
12 changed files with 15 additions and 18 deletions
|
@ -4,12 +4,13 @@
|
|||
*
|
||||
* file.h - File I/O operations
|
||||
*/
|
||||
#ifndef __LIBCAMERA_INTERNAL_FILE_H__
|
||||
#define __LIBCAMERA_INTERNAL_FILE_H__
|
||||
#ifndef __LIBCAMERA_BASE_FILE_H__
|
||||
#define __LIBCAMERA_BASE_FILE_H__
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
#include <map>
|
||||
#include <string>
|
||||
#include <sys/types.h>
|
||||
|
||||
#include <libcamera/base/class.h>
|
||||
|
||||
|
@ -75,4 +76,4 @@ private:
|
|||
|
||||
} /* namespace libcamera */
|
||||
|
||||
#endif /* __LIBCAMERA_INTERNAL_FILE_H__ */
|
||||
#endif /* __LIBCAMERA_BASE_FILE_H__ */
|
|
@ -7,6 +7,7 @@ libcamera_base_headers = files([
|
|||
'class.h',
|
||||
'event_dispatcher.h',
|
||||
'event_dispatcher_poll.h',
|
||||
'file.h',
|
||||
'log.h',
|
||||
'message.h',
|
||||
'object.h',
|
||||
|
|
|
@ -23,7 +23,6 @@ libcamera_internal_headers = files([
|
|||
'device_enumerator_sysfs.h',
|
||||
'device_enumerator_udev.h',
|
||||
'event_notifier.h',
|
||||
'file.h',
|
||||
'formats.h',
|
||||
'ipa_manager.h',
|
||||
'ipa_module.h',
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
*
|
||||
* ipa_vimc.cpp - Vimc Image Processing Algorithm module
|
||||
*/
|
||||
|
||||
#include <libcamera/ipa/vimc_ipa_interface.h>
|
||||
|
||||
#include <fcntl.h>
|
||||
|
@ -14,13 +13,12 @@
|
|||
|
||||
#include <iostream>
|
||||
|
||||
#include <libcamera/base/file.h>
|
||||
#include <libcamera/base/log.h>
|
||||
|
||||
#include <libcamera/ipa/ipa_interface.h>
|
||||
#include <libcamera/ipa/ipa_module_info.h>
|
||||
|
||||
#include "libcamera/internal/file.h"
|
||||
|
||||
namespace libcamera {
|
||||
|
||||
LOG_DEFINE_CATEGORY(IPAVimc)
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* file.cpp - File I/O operations
|
||||
*/
|
||||
|
||||
#include "libcamera/internal/file.h"
|
||||
#include <libcamera/base/file.h>
|
||||
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
|
@ -17,7 +17,7 @@
|
|||
#include <libcamera/base/log.h>
|
||||
|
||||
/**
|
||||
* \file file.h
|
||||
* \file base/file.h
|
||||
* \brief File I/O operations
|
||||
*/
|
||||
|
|
@ -5,6 +5,7 @@ libcamera_base_sources = files([
|
|||
'bound_method.cpp',
|
||||
'event_dispatcher.cpp',
|
||||
'event_dispatcher_poll.cpp',
|
||||
'file.cpp',
|
||||
'log.cpp',
|
||||
'message.cpp',
|
||||
'object.cpp',
|
||||
|
|
|
@ -12,10 +12,10 @@
|
|||
#include <string.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
#include <libcamera/base/file.h>
|
||||
#include <libcamera/base/log.h>
|
||||
#include <libcamera/base/utils.h>
|
||||
|
||||
#include "libcamera/internal/file.h"
|
||||
#include "libcamera/internal/ipa_module.h"
|
||||
#include "libcamera/internal/ipa_proxy.h"
|
||||
#include "libcamera/internal/pipeline_handler.h"
|
||||
|
|
|
@ -23,10 +23,10 @@
|
|||
|
||||
#include <libcamera/span.h>
|
||||
|
||||
#include <libcamera/base/file.h>
|
||||
#include <libcamera/base/log.h>
|
||||
#include <libcamera/base/utils.h>
|
||||
|
||||
#include "libcamera/internal/file.h"
|
||||
#include "libcamera/internal/pipeline_handler.h"
|
||||
|
||||
/**
|
||||
|
|
|
@ -16,7 +16,6 @@ libcamera_sources = files([
|
|||
'device_enumerator.cpp',
|
||||
'device_enumerator_sysfs.cpp',
|
||||
'event_notifier.cpp',
|
||||
'file.cpp',
|
||||
'file_descriptor.cpp',
|
||||
'formats.cpp',
|
||||
'framebuffer_allocator.cpp',
|
||||
|
|
|
@ -12,10 +12,9 @@
|
|||
#include <sys/stat.h>
|
||||
#include <sys/sysmacros.h>
|
||||
|
||||
#include <libcamera/base/file.h>
|
||||
#include <libcamera/base/log.h>
|
||||
|
||||
#include "libcamera/internal/file.h"
|
||||
|
||||
/**
|
||||
* \file sysfs.h
|
||||
* \brief Miscellaneous utility functions to access sysfs
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "libcamera/internal/file.h"
|
||||
#include <libcamera/base/file.h>
|
||||
|
||||
#include "test.h"
|
||||
|
||||
|
|
|
@ -15,11 +15,10 @@
|
|||
#include <libcamera/camera_manager.h>
|
||||
|
||||
#include <libcamera/base/event_dispatcher.h>
|
||||
#include <libcamera/base/file.h>
|
||||
#include <libcamera/base/thread.h>
|
||||
#include <libcamera/base/timer.h>
|
||||
|
||||
#include "libcamera/internal/file.h"
|
||||
|
||||
#include "test.h"
|
||||
|
||||
using namespace libcamera;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue