From patchwork Thu Jun 6 20:56:51 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 1374 Return-Path: Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 817C860BB7 for ; Thu, 6 Jun 2019 22:56:58 +0200 (CEST) Received: from localhost.localdomain (cpc89242-aztw30-2-0-cust488.18-1.cable.virginm.net [86.31.129.233]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 1BEBCD82; Thu, 6 Jun 2019 22:56:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1559854618; bh=EOPTi+o2XngfHcaFeZdHNGmoqgxaV6QGfoDCX9Y0Lkc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FySkFZKi7Z4SL9NiryNeBSWqOscp7iUYZviOf/2PNDC9UazSIGnr8eu+Sn0v+I8BZ 3jVOJq+n14p79UD762/ck+MXg7NcqhSMRx6afD18F12+2eQpW0vXS1VrWZQLha6Yki ULjKZtsyq3iVxcxgeHpL5n6Iei0OX1mla/0xrU6Y= From: Kieran Bingham To: LibCamera Devel Date: Thu, 6 Jun 2019 21:56:51 +0100 Message-Id: <20190606205654.9311-3-kieran.bingham@ideasonboard.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190606205654.9311-1-kieran.bingham@ideasonboard.com> References: <20190606205654.9311-1-kieran.bingham@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [RFC PATCH 2/5] libcamera: request: add a control set 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, 06 Jun 2019 20:56:58 -0000 Provide a set to contain all controls applicable to the request. The set contains all controls whether they are write, read, or write-read controls. Signed-off-by: Kieran Bingham --- include/libcamera/request.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/libcamera/request.h b/include/libcamera/request.h index 58de6f00a554..5fae0d5fc838 100644 --- a/include/libcamera/request.h +++ b/include/libcamera/request.h @@ -10,6 +10,7 @@ #include #include +#include #include namespace libcamera { @@ -36,6 +37,8 @@ public: int setBuffers(const std::map &streamMap); Buffer *findBuffer(Stream *stream) const; + std::set &controls() { return controls_; }; + Status status() const { return status_; } bool hasPendingBuffers() const { return !pending_.empty(); } @@ -52,6 +55,7 @@ private: Camera *camera_; std::map bufferMap_; std::unordered_set pending_; + std::set controls_; Status status_; };