Change-Id: I2ec0532b6029df955f89953d8903e80691458eec
Signed-off-by: seolheui kim <s414.kim@samsung.com>
try {
Status<int> status { -1 };
- status = client.methodCall<int>("DevicePolicyManager::enroll", name, uid);
+ status = client.methodCallForce<int>("DevicePolicyManager::enroll", name, uid);
return status.get();
} catch (...) {
return -1;
try {
Status<int> status { -1 };
- status = client.methodCall<int>("DevicePolicyManager::disenroll", name, uid);
+ status = client.methodCallForce<int>("DevicePolicyManager::disenroll", name, uid);
return status.get();
} catch (...) {
return -1;
return ret;
}
+ template<typename Type, typename... Args>
+ Type methodCallForce(const std::string& method, Args&&... args)
+ {
+ rmi::Connection conn(clientAddress);
+ Type ret = rmi::RemoteMethod<>::invoke<Type, Args...>(conn, method, std::forward<Args>(args)...);
+ return ret;
+ }
private:
static void maintenanceModeDispatcher(keynode_t *node, void *data);