diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2019-08-12 00:31:01 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2019-08-17 18:32:23 +0300 |
commit | f0ba6ab2a80a649b7fc7d607146c61a22db019ff (patch) | |
tree | c1acf8ddbd1e8c0ae1f18999a76e98e85c70e658 /include | |
parent | a146cdbf20cbdcfeb7b248b53b8e12b22384d0c8 (diff) |
libcamera: object: Make message() method protected
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/libcamera/object.h | 4 |
1 files changed, 3 insertions, 1 deletions
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; |