mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-25 17:45:06 +03:00
libcamera/base: Move utils to the base library
Move the utils functionality to the libcamera/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
86eaa6c5e1
commit
cbdc93e9d1
53 changed files with 94 additions and 58 deletions
|
@ -3,6 +3,7 @@
|
|||
libcamera_base_include_dir = libcamera_include_dir / 'base'
|
||||
|
||||
libcamera_base_headers = files([
|
||||
'utils.h',
|
||||
])
|
||||
|
||||
install_headers(libcamera_base_headers,
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
*
|
||||
* utils.h - Miscellaneous utility functions
|
||||
*/
|
||||
#ifndef __LIBCAMERA_INTERNAL_UTILS_H__
|
||||
#define __LIBCAMERA_INTERNAL_UTILS_H__
|
||||
#ifndef __LIBCAMERA_BASE_UTILS_H__
|
||||
#define __LIBCAMERA_BASE_UTILS_H__
|
||||
|
||||
#include <algorithm>
|
||||
#include <chrono>
|
||||
|
@ -23,7 +23,7 @@
|
|||
|
||||
/* uClibc and uClibc-ng don't provide O_TMPFILE */
|
||||
#ifndef O_TMPFILE
|
||||
#define O_TMPFILE (020000000 | O_DIRECTORY)
|
||||
#define O_TMPFILE (020000000 | O_DIRECTORY)
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
@ -352,4 +352,4 @@ std::basic_ostream<CharT, Traits> &operator<<(std::basic_ostream<CharT, Traits>
|
|||
|
||||
} /* namespace libcamera */
|
||||
|
||||
#endif /* __LIBCAMERA_INTERNAL_UTILS_H__ */
|
||||
#endif /* __LIBCAMERA_BASE_UTILS_H__ */
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
#include <libcamera/class.h>
|
||||
|
||||
#include "libcamera/internal/utils.h"
|
||||
#include <libcamera/base/utils.h>
|
||||
|
||||
namespace libcamera {
|
||||
|
||||
|
|
|
@ -43,7 +43,6 @@ libcamera_internal_headers = files([
|
|||
'sysfs.h',
|
||||
'thread.h',
|
||||
'timer.h',
|
||||
'utils.h',
|
||||
'v4l2_device.h',
|
||||
'v4l2_pixelformat.h',
|
||||
'v4l2_subdevice.h',
|
||||
|
|
|
@ -14,8 +14,9 @@
|
|||
|
||||
#include <libcamera/signal.h>
|
||||
|
||||
#include <libcamera/base/utils.h>
|
||||
|
||||
#include "libcamera/internal/message.h"
|
||||
#include "libcamera/internal/utils.h"
|
||||
|
||||
namespace libcamera {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue