{"id":1873,"url":"https://patchwork.libcamera.org/api/patches/1873/?format=json","web_url":"https://patchwork.libcamera.org/patch/1873/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20190828011710.32128-9-niklas.soderlund@ragnatech.se>","date":"2019-08-28T01:17:05","name":"[libcamera-devel,08/13] libcamera: request: Allow read only access to controls","commit_ref":null,"pull_url":null,"state":"superseded","archived":false,"hash":"ac43642224e7db6f3037284b3108c325e169c6dc","submitter":{"id":5,"url":"https://patchwork.libcamera.org/api/people/5/?format=json","name":"Niklas Söderlund","email":"niklas.soderlund@ragnatech.se"},"delegate":null,"mbox":"https://patchwork.libcamera.org/patch/1873/mbox/","series":[{"id":470,"url":"https://patchwork.libcamera.org/api/series/470/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=470","date":"2019-08-28T01:16:57","name":"libcamera: ipa: Add basic IPA support","version":1,"mbox":"https://patchwork.libcamera.org/series/470/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/1873/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/1873/checks/","tags":{},"headers":{"Return-Path":"<niklas.soderlund@ragnatech.se>","Received":["from bin-mail-out-05.binero.net (bin-mail-out-05.binero.net\n\t[195.74.38.228])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id BF94C6192E\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 28 Aug 2019 03:17:46 +0200 (CEST)","from bismarck.berto.se (unknown [95.195.154.80])\n\tby bin-vsp-out-01.atm.binero.net (Halon) with ESMTPA\n\tid 9b744c35-c931-11e9-bdc3-005056917a89;\n\tWed, 28 Aug 2019 03:17:31 +0200 (CEST)"],"X-Halon-ID":"9b744c35-c931-11e9-bdc3-005056917a89","Authorized-sender":"niklas@soderlund.pp.se","From":"=?utf-8?q?Niklas_S=C3=B6derlund?= <niklas.soderlund@ragnatech.se>","To":"libcamera-devel@lists.libcamera.org","Date":"Wed, 28 Aug 2019 03:17:05 +0200","Message-Id":"<20190828011710.32128-9-niklas.soderlund@ragnatech.se>","X-Mailer":"git-send-email 2.22.1","In-Reply-To":"<20190828011710.32128-1-niklas.soderlund@ragnatech.se>","References":"<20190828011710.32128-1-niklas.soderlund@ragnatech.se>","MIME-Version":"1.0","Content-Type":"text/plain; charset=UTF-8","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH 08/13] libcamera: request: Allow read only\n\taccess to controls","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.23","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","X-List-Received-Date":"Wed, 28 Aug 2019 01:17:47 -0000"},"content":"Allow the controls in a Request to be examined from a const\nenvironment.\n\nSigned-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>\n---\n include/libcamera/request.h | 1 +\n src/libcamera/request.cpp   | 5 +++++\n 2 files changed, 6 insertions(+)","diff":"diff --git a/include/libcamera/request.h b/include/libcamera/request.h\nindex 570924c5ef5e2425..f5de5257bba3f2bb 100644\n--- a/include/libcamera/request.h\n+++ b/include/libcamera/request.h\n@@ -40,6 +40,7 @@ public:\n \t~Request();\n \n \tControlList &controls() { return controls_; }\n+\tconst ControlList &controls() const { return controls_; }\n \tconst std::map<Stream *, Buffer *> &buffers() const { return bufferMap_; }\n \tint addBuffer(std::unique_ptr<Buffer> buffer);\n \tBuffer *findBuffer(Stream *stream) const;\ndiff --git a/src/libcamera/request.cpp b/src/libcamera/request.cpp\nindex 4d7bf177534267ac..79e456db1b7dd282 100644\n--- a/src/libcamera/request.cpp\n+++ b/src/libcamera/request.cpp\n@@ -84,6 +84,11 @@ Request::~Request()\n  * \\return A reference to the ControlList in this request\n  */\n \n+/**\n+ * \\fn Request::controls() const\n+ * \\sa Request::controls()\n+ */\n+\n /**\n  * \\fn Request::buffers()\n  * \\brief Retrieve the request's streams to buffers map\n","prefixes":["libcamera-devel","08/13"]}