/** * This file is generated by jsonrpcstub, DO NOT CHANGE IT MANUALLY! */ #ifndef JSONRPC_CPP_STUB_PHONEHOME_H_ #define JSONRPC_CPP_STUB_PHONEHOME_H_ #include class PhoneHome : public jsonrpc::Client { public: PhoneHome(jsonrpc::IClientConnector &conn, jsonrpc::clientVersion_t type = jsonrpc::JSONRPC_CLIENT_V2) : jsonrpc::Client(conn, type) {} int report_benchmark(const std::string& param1, int param2) throw (jsonrpc::JsonRpcException) { Json::Value p; p.append(param1); p.append(param2); Json::Value result = this->CallMethod("report_benchmark",p); if (result.isInt()) return result.asInt(); else throw jsonrpc::JsonRpcException(jsonrpc::Errors::ERROR_CLIENT_INVALID_RESPONSE, result.toStyledString()); } }; #endif //JSONRPC_CPP_STUB_PHONEHOME_H_