* @see capmgr_device_clone()
* @see capmgr_device_foreach_device()
*/
-int capmgr_device_get_platform_ver(capmgr_device_h device, char** platform_ver);
+int capmgr_device_get_platform_version(capmgr_device_h device, char** platform_ver);
/**
* @brief Gets the profile of the given remote device context.
* @see capmgr_device_clone()
* @see capmgr_device_foreach_device()
*/
-int capmgr_device_get_sw_ver(capmgr_device_h device, char** sw_ver);
+int capmgr_device_get_sw_version(capmgr_device_h device, char** sw_ver);
/**
* @brief Creates a remote app control handle.
return CAPMGR_ERROR_NONE;
}
-API int capmgr_device_get_platform_ver(capmgr_device_h device,
+API int capmgr_device_get_platform_version(capmgr_device_h device,
char** platform_ver) {
if (!device || !platform_ver)
return CAPMGR_ERROR_INVALID_PARAMETER;
return CAPMGR_ERROR_NONE;
}
-API int capmgr_device_get_sw_ver(capmgr_device_h device,
+API int capmgr_device_get_sw_version(capmgr_device_h device,
char** sw_ver) {
if (!device || !sw_ver)
return CAPMGR_ERROR_INVALID_PARAMETER;
DeviceGetDeviceNameNegativeTest, device_name)
DEVICE_GET_TEST_BLOCK(DeviceGetPlatformVerPositiveTest,
- DeviceGetPlatformVerNegativeTest, platform_ver)
+ DeviceGetPlatformVerNegativeTest, platform_version)
DEVICE_GET_TEST_BLOCK(DeviceGetProfilePositiveTest,
DeviceGetProfileNegativeTest, profile)
DEVICE_GET_TEST_BLOCK(DeviceGetSWVerPositiveTest,
- DeviceGetSWVerNegativeTest, sw_ver)
+ DeviceGetSWVerNegativeTest, sw_version)
TEST_F(UnitTest, AppControlCreatePositiveTest) {
capmgr_app_control_h app_control = nullptr;
if (ret != CAPMGR_ERROR_NONE)
std::cout << "Failed to get device name" << std::endl;
- ret = capmgr_device_get_platform_ver(device, &platform_ver);
+ ret = capmgr_device_get_platform_version(device, &platform_ver);
if (ret != CAPMGR_ERROR_NONE)
std::cout << "Failed to get platform version" << std::endl;
if (ret != CAPMGR_ERROR_NONE)
std::cout << "Failed to get profile" << std::endl;
- ret = capmgr_device_get_sw_ver(device, &sw_ver);
+ ret = capmgr_device_get_sw_version(device, &sw_ver);
if (ret != CAPMGR_ERROR_NONE)
std::cout << "Failed to get sw version" << std::endl;