From 75be2ba9fb9ab443480903f31b873f4101d1fdc2 Mon Sep 17 00:00:00 2001 From: Ashod Nakashian Date: Wed, 13 Feb 2019 18:18:35 -0500 Subject: 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 --- desktop/inc/lib/init.hxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'desktop/inc') 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 PayloadObject; }; -- cgit