From f0ba6ab2a80a649b7fc7d607146c61a22db019ff Mon Sep 17 00:00:00 2001
From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Date: Mon, 12 Aug 2019 00:31:01 +0300
Subject: libcamera: object: Make message() method protected
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

The message() method shouldn't be called externally (except by a few
friend classes), make it protected.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
---
 include/libcamera/object.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'include')

diff --git a/include/libcamera/object.h b/include/libcamera/object.h
index 5c251a82..3d08d69a 100644
--- a/include/libcamera/object.h
+++ b/include/libcamera/object.h
@@ -26,11 +26,13 @@ public:
 	virtual ~Object();
 
 	void postMessage(std::unique_ptr<Message> msg);
-	virtual void message(Message *msg);
 
 	Thread *thread() const { return thread_; }
 	void moveToThread(Thread *thread);
 
+protected:
+	virtual void message(Message *msg);
+
 private:
 	template<typename... Args>
 	friend class Signal;
-- 
cgit v1.2.1