You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
922 B
28 lines
922 B
/**
|
|
* This file is generated by jsonrpcstub, DO NOT CHANGE IT MANUALLY!
|
|
*/
|
|
|
|
#ifndef JSONRPC_CPP_STUB_PHONEHOME_H_
|
|
#define JSONRPC_CPP_STUB_PHONEHOME_H_
|
|
|
|
#include <jsonrpccpp/client.h>
|
|
|
|
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_
|
|
|