diff options
author | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2019-02-13 18:18:35 -0500 |
---|---|---|
committer | Ashod Nakashian <ashnakash@gmail.com> | 2019-02-22 15:38:09 +0100 |
commit | 75be2ba9fb9ab443480903f31b873f4101d1fdc2 (patch) | |
tree | 7512fe1fe8838143cfd3dee7d982d181288b1d13 /desktop/inc | |
parent | 8410ce037ab27a38b0449c7666f1676374803496 (diff) |
LOK: Validate cached queued callback payloads
And with DBG_UTIL validate and dump LOK queue state.
Change-Id: I211ddf89dbcecf17c4f1401e5d96919c4bc966ea
Reviewed-on: https://gerrit.libreoffice.org/67893
Tested-by: Jenkins
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Diffstat (limited to 'desktop/inc')
-rw-r--r-- | desktop/inc/lib/init.hxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/desktop/inc/lib/init.hxx b/desktop/inc/lib/init.hxx index f2f6f5399649..be96814820ce 100644 --- a/desktop/inc/lib/init.hxx +++ b/desktop/inc/lib/init.hxx @@ -111,8 +111,14 @@ namespace desktop { /// Return the parsed JSON instance. const boost::property_tree::ptree& getJson() const; + /// Validate that the payload and parsed object match. + bool validate() const; + int Type; std::string PayloadString; + + private: + /// The parsed payload cache. Update validate() when changing this. boost::variant<boost::blank, RectangleAndPart, boost::property_tree::ptree> PayloadObject; }; |