+ add default constructor to PlatformResult
+ add tools::PostMessage overload for json message
[Verification] code compiles.
Signed-off-by: Michal Michalski <m.michalski2@partner.samsung.com>
Change-Id: Iafed8da9ebc6519f84f3341324f7ef4908ac9e61
LoggerE("Trying to post message to non-existing instance: [%p], ignoring", that);
}
+void Instance::PostMessage(Instance* that, const picojson::value& json) {
+ Instance::PostMessage(that, json.serialize().c_str());
+}
+
void Instance::PostMessage(const char* msg) {
ScopeLogger();
if (!xw_instance_) {
virtual ~Instance();
static void PostMessage(Instance* that, const char* msg);
+ static void PostMessage(Instance* that, const picojson::value& json);
void PostMessage(const char* msg);
void SendSyncReply(const char* reply);
namespace common {
+PlatformResult::PlatformResult()
+ : PlatformResult(ErrorCode::NO_ERROR, "NO_ERROR") {
+}
+
PlatformResult::PlatformResult(const ErrorCode& error_code, const std::string& message)
: error_code_(error_code), message_(message) {
ScopeLogger();
class PlatformResult {
public:
+ explicit PlatformResult();
explicit PlatformResult(const ErrorCode& error_code, const std::string& message = "");
ErrorCode error_code() const {