From patchwork Thu Jan 3 17:38:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 144 Return-Path: Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 0B04B60B13 for ; Thu, 3 Jan 2019 18:39:02 +0100 (CET) X-Originating-IP: 2.224.242.101 Received: from uno.lan (2-224-242-101.ip172.fastwebnet.it [2.224.242.101]) (Authenticated sender: jacopo@jmondi.org) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id 95837FF80C; Thu, 3 Jan 2019 17:39:01 +0000 (UTC) From: Jacopo Mondi To: libcamera-devel@lists.libcamera.org Date: Thu, 3 Jan 2019 18:38:54 +0100 Message-Id: <20190103173859.22624-1-jacopo@jmondi.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 0/5] libcamera: media device: Add link handling X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jan 2019 17:39:02 -0000 Hello, this series adds an interface to manipulate links to the MediaDevice and MediaObject classes. In order to access the media device fd, now all media objects store a reference to the media device that created them. The media device expose a "link()" function where to retrieve links from, and enable/disable them through the MediaLink::enable(bool) function. As I consider valuable providing documentation for the newly added private MediaDevice function "setLink()", patch [4/5] enables generation of documentation for private members (and makes Doxygen not complain if such a documentation is not present for private fields). Patch 5/5 adds a simple test that operates on links of the media devices registered in the system. Thanks j Jacopo Mondi (5): libcamera: Add pointer to MediaDevice to MediaObject libcamera: media_device: Add function to get a MediaLink libcamera: Add MediaLink link setup function libcamera: Document private members test: MediaDevice: Add link exercize test Documentation/Doxyfile.in | 4 +- src/libcamera/include/media_device.h | 14 ++ src/libcamera/include/media_object.h | 11 +- src/libcamera/media_device.cpp | 179 +++++++++++++++++++++++- src/libcamera/media_object.cpp | 70 +++++++-- test/media_device/media_device_test.cpp | 101 +++++++++++++ 6 files changed, 360 insertions(+), 19 deletions(-) --- 2.20.1