From patchwork Tue Dec 12 11:50:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Konovalov X-Patchwork-Id: 19307 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 7C0F1BD87C for ; Tue, 12 Dec 2023 11:51:23 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 2C3CD62B49; Tue, 12 Dec 2023 12:51:23 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1702381883; bh=oRBIY8kOi0gKYV5IPe6DVH6UPAc8qzG43Lgmf4uwB34=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=stA0/DEGFaa8f6XMcomT0hlegGMZls1wo2kavHX3rdz7CtVIy3lCgRsRHOPL1MsDX dIo8b2LyKGErGFwhygJAfQmYNJmz0S4KWmhJ5zoOSqLzOn+dZPm4eGmK/GISiygxN7 SmFSKpWYC2qTsTo+WaFXmu5poKQbp6L2s1ChNeO33hP479VXT/L7picyEJ5whCNeai aRYD+a5OMv3nwpx3nFVOhrz2QfHbT4miFglyJFyZK28zLSLjEM/wPqC4nyFAs89hB3 Bf/k0gJpGo/+46ZPqIGCABdOuFb0xvlmmxGr4Zo2bq0jtravqJzy5AmySVTeSA8KPd 9Emyn33TBlSJA== Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 42E93629E1 for ; Tue, 12 Dec 2023 12:51:21 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="iRu61vP9"; dkim-atps=neutral Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-a00cbb83c80so636150566b.0 for ; Tue, 12 Dec 2023 03:51:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702381881; x=1702986681; darn=lists.libcamera.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=pFJAoSA9Nwu/bV7xUFK2GgTlAP4DOK35M5GoMj00EiU=; b=iRu61vP9BuGQLeQvrp10obvknYuPYoHW8BrZKmERHEJlXAoS46+x7X1oy7rG7oTiB2 A1d4x6/1EFwc4RJZHrI0hOc6JQOgD1f/ow7TVECITU9xYppUsx0MHi214XagIQnPbuTy 9UtxNmFS/rCjrLVhv7JrKWzMnEyaNfsxK7Nbai8j8vZTzYVcyP1NmOYoCkV37NGIkhGg QPop0EWA53W7xuaeAt7ITHRz+wlq46eytS02ruyejfd44CXrXP2gpoORUS40r4SaMqOh ZfFuMQ8IoARxMuwOfF8ETOW7xjOW4EdULEhcnV69/uktT+QCUZLps87XrRkhRCj/8IPu H49w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702381881; x=1702986681; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pFJAoSA9Nwu/bV7xUFK2GgTlAP4DOK35M5GoMj00EiU=; b=oSfCHWDzM8e8rY6AeAvHUZ5eTZlORgOVqwvnyw86j7wiWScfK+w+JYfRdWGaOQi6WF uzhfKo+nO9Rs67bgT1auwbUHRlE4FULW0mFpySbWyOyY40YVTaJysNOvsCtJ1bXJrm9c IeMvGddrdjMygzEDqJeqdWhka3wcZUbXBQ336wCEv0Pvo+oaHnRJaG6NsDxGzke0g5If KtN2N/bW2VnUtody2SVeaFFX9dF3mohh8gV5nKwaRtcEtymJDYezkEsxrp8Nej+guzP2 VYut1xXPJ4/FjLMGDTZgxfOjZvtr0smBJ94c9TBZ51CTRJ9pKgWyO6bZX6hvkP1H9lUB ARGQ== X-Gm-Message-State: AOJu0YypRrqflg/fPu9nexmWNtVSeh8LWAk0ROs2vxvbmBEY3GzQA3WP a9XI/ADyvEUhQIT52YLD5fA3z5HVPDLTjY4C63Y= X-Google-Smtp-Source: AGHT+IGUcWnaflIsAT1p4lLw8JO6YrriyT5HqbBf0QqyopyLHQ+Z7pLu0DV+AM24kZb05DUk/xosYw== X-Received: by 2002:a17:907:7f88:b0:9be:7b67:1674 with SMTP id qk8-20020a1709077f8800b009be7b671674mr3384289ejc.3.1702381880873; Tue, 12 Dec 2023 03:51:20 -0800 (PST) Received: from Lat-5310.. ([87.116.161.153]) by smtp.gmail.com with ESMTPSA id tx17-20020a1709078e9100b00a1b75e0e061sm6213188ejc.130.2023.12.12.03.51.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 03:51:20 -0800 (PST) To: libcamera-devel@lists.libcamera.org Date: Tue, 12 Dec 2023 14:50:41 +0300 Message-Id: <20231212115046.102726-3-andrey.konovalov@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231212115046.102726-1-andrey.konovalov@linaro.org> References: <20231212115046.102726-1-andrey.konovalov@linaro.org> MIME-Version: 1.0 Subject: [libcamera-devel] [RFC PATCH v2 2/7] libcamera: internal: Move SharedMemObject class to a common directory 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-Patchwork-Original-From: Andrey Konovalov via libcamera-devel From: Andrey Konovalov Reply-To: Andrey Konovalov Cc: mripard@redhat.com, g.martti@gmail.com, t.langendam@gmail.com, srinivas.kandagatla@linaro.org, pavel@ucw.cz, bryan.odonoghue@linaro.org, admin@dennisbonke.com Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Move SharedMemObject class out of RPi namespace and put it into include/libcamera/internal so that everyone could use it. Signed-off-by: Andrey Konovalov --- include/libcamera/internal/meson.build | 1 + .../common => include/libcamera/internal}/shared_mem_object.h | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) rename {src/libcamera/pipeline/rpi/common => include/libcamera/internal}/shared_mem_object.h (98%) diff --git a/include/libcamera/internal/meson.build b/include/libcamera/internal/meson.build index 0f725cfd..b780777c 100644 --- a/include/libcamera/internal/meson.build +++ b/include/libcamera/internal/meson.build @@ -38,6 +38,7 @@ libcamera_internal_headers = files([ 'process.h', 'pub_key.h', 'request.h', + 'shared_mem_object.h', 'software_isp.h', 'source_paths.h', 'sysfs.h', diff --git a/src/libcamera/pipeline/rpi/common/shared_mem_object.h b/include/libcamera/internal/shared_mem_object.h similarity index 98% rename from src/libcamera/pipeline/rpi/common/shared_mem_object.h rename to include/libcamera/internal/shared_mem_object.h index aa56c220..bfb639ee 100644 --- a/src/libcamera/pipeline/rpi/common/shared_mem_object.h +++ b/include/libcamera/internal/shared_mem_object.h @@ -19,8 +19,6 @@ namespace libcamera { -namespace RPi { - template class SharedMemObject { @@ -123,6 +121,4 @@ private: T *obj_; }; -} /* namespace RPi */ - } /* namespace libcamera */