[libcamera-devel] [PATCH 0/3] libcamera: Add FileDescriptor to help pass numerical fds around

Niklas Söderlund niklas.soderlund at ragnatech.se
Mon Dec 16 13:10:26 CET 2019


Hi,

This was in part previously part of the rather large buffer rework 
series but is now broken out to a separate series. All review comments 
from the buffer v1 series have been addressed and a new test have been 
added on top.

I hope to merge this as soon as it's ready as I really like to cut down 
on the size of the buffer series. If you think this should not be merged 
until buffers are ready please let me know.

Niklas Söderlund (3):
  libcamera: utils: Add exchange()
  libcamera: Add FileDescriptor to help pass numerical fds around
  test: file_descriptor: Add test

 include/libcamera/file_descriptor.h |  33 ++++++
 include/libcamera/meson.build       |   1 +
 src/libcamera/file_descriptor.cpp   | 158 ++++++++++++++++++++++++++++
 src/libcamera/include/utils.h       |   9 ++
 src/libcamera/meson.build           |   1 +
 src/libcamera/utils.cpp             |   7 ++
 test/file_descriptor.cpp            | 152 ++++++++++++++++++++++++++
 test/meson.build                    |   1 +
 8 files changed, 362 insertions(+)
 create mode 100644 include/libcamera/file_descriptor.h
 create mode 100644 src/libcamera/file_descriptor.cpp
 create mode 100644 test/file_descriptor.cpp

-- 
2.24.0



More information about the libcamera-devel mailing list