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:
Kieran Bingham
2021-06-16 10:34:07 +01:00
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__ */
+1
View File
@@ -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',
-1
View File
@@ -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',