//
-// Open Service Platform
// Copyright (c) 2012 Samsung Electronics Co., Ltd.
//
// Licensed under the Apache License, Version 2.0 (the License);
{
result r = E_SUCCESS;
- SysLog(NID_SEC, "Enter.");
-
std::unique_ptr<HashMap> pPrivilegeList(new (std::nothrow) HashMap());
SysTryReturnResult(NID_SEC, pPrivilegeList != null, E_OUT_OF_MEMORY, "Memory allocation is failed.");
__pPrivilegeList = std::move(pPrivilegeList);
__pMutex = std::move(pMutex);
- SysLog(NID_SEC, "Exit.");
return r;
}
std::unique_ptr<_PrivilegeInfo> pPrivilegeInfo(null);
std::unique_ptr<String> pKey(null);
- SysLog(NID_SEC, "Enter.");
-
SysTryReturnResult(NID_SEC, privilegeInfo.GetAppId().GetLength() == MAX_APP_ID_SIZE, E_INVALID_ARG, "The argument is invalid.");
pPrivilegeInfo.reset(privilegeInfo.CloneN());
mutexResult = __pMutex->Release();
SysTryCatch(NID_SEC, mutexResult == E_SUCCESS, r = E_SYSTEM, E_SYSTEM, "[E_SYSTEM] An unexpected system error occurred.");
- SysLog(NID_SEC, "Exit.");
return r;
CATCH2:
mutexResult = __pMutex->Release();
SysTryCatch(NID_SEC, mutexResult == E_SUCCESS, mutexResult = E_SYSTEM, E_SYSTEM, "An unexpected system error occurred.");
-
- SysLog(NID_SEC, "Exit.");
return r;
CATCH:
-
- SysLog(NID_SEC, "Exit.");
return r;
}
result r = E_SUCCESS;
result mutextResult = E_SUCCESS;
- SysLog(NID_SEC, "Enter.");
-
mutextResult = __pMutex->Acquire();
SysTryReturnResult(NID_SEC, mutextResult == E_SUCCESS, E_SYSTEM, "An unexpected system error occurred.");
mutextResult = __pMutex->Release();
SysTryReturnResult(NID_SEC, mutextResult == E_SUCCESS, E_SYSTEM, "An unexpected system error occurred.");
- SysLog(NID_SEC, "Exit.");
return r;
}
std::unique_ptr<_PrivilegeInfo> pPrivilegeInfo(null);
- SysLog(NID_SEC, "Enter.");
ClearLastResult();
mutexResult = __pMutex->Acquire();
SysLogException(NID_SEC, E_SYSTEM, "[E_SYSTEM] An unexpected system error occurred.");
}
- SysLog(NID_SEC, "Exit.");
return pPrivilegeInfo.release();
}