From patchwork Mon Dec 16 12:10:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Niklas_S=C3=B6derlund?= X-Patchwork-Id: 2424 Return-Path: Received: from bin-mail-out-05.binero.net (bin-mail-out-05.binero.net [195.74.38.228]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 23B3B601E4 for ; Mon, 16 Dec 2019 13:10:51 +0100 (CET) X-Halon-ID: 0f189190-1ffd-11ea-8e92-005056917f90 Authorized-sender: niklas@soderlund.pp.se Received: from bismarck.berto.se (p54ac5865.dip0.t-ipconnect.de [84.172.88.101]) by bin-vsp-out-02.atm.binero.net (Halon) with ESMTPA id 0f189190-1ffd-11ea-8e92-005056917f90; Mon, 16 Dec 2019 13:10:44 +0100 (CET) From: =?utf-8?q?Niklas_S=C3=B6derlund?= To: libcamera-devel@lists.libcamera.org Date: Mon, 16 Dec 2019 13:10:26 +0100 Message-Id: <20191216121029.1048242-1-niklas.soderlund@ragnatech.se> X-Mailer: git-send-email 2.24.0 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 0/3] libcamera: Add FileDescriptor to help pass numerical fds around X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Dec 2019 12:10:51 -0000 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