/**
- * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2015-2018 Samsung Electronics Co., Ltd All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
return returnValue;
}
+int TABinaryManager::setPort(string uuid, string port) {
+ int ret;
+ pthread_rwlock_wrlock(&binaryMapLock);
+
+ map<string, StructBinaryInfo>::iterator it = binaryMap.find(uuid);
+ if (it != binaryMap.end()) {
+ it->second.port = port;
+ ret = 0;
+ } else {
+ ret = 1;
+ }
+
+ pthread_rwlock_unlock(&binaryMapLock);
+ return ret;
+}
+
/**
* Converts UUID from TEEC_UUID to a string
* @return string of TEEC_UUID
/**
- * Copyright (c) 2015-2017 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2015-2018 Samsung Electronics Co., Ltd All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
string getPort(string uuid);
int isKeepAlive(string uuid, bool &KeepAlive);
+ /*
+ * TA property setters
+ */
+ int setPort(string uuid, string port);
+
virtual ~TABinaryManager();
};