Change function name _ver() to _version() 04/204704/1 accepted/tizen/unified/20190426.110510 submit/tizen/20190426.022431
authorDaehyeon Jung <darrenh.jung@samsung.com>
Fri, 26 Apr 2019 01:53:49 +0000 (10:53 +0900)
committerDaehyeon Jung <darrenh.jung@samsung.com>
Fri, 26 Apr 2019 01:54:24 +0000 (10:54 +0900)
Change-Id: I5e382fa784e3d1414a80f264d667fdb7c7ec32e7
Signed-off-by: Daehyeon Jung <darrenh.jung@samsung.com>
include/capability_manager.h
src/client.cc
src/unit_tests/unit_test.cc
tools/capmgr_test.cc

index 4abfe87..7eb9545 100644 (file)
@@ -219,7 +219,7 @@ int capmgr_device_get_device_name(capmgr_device_h device, char** device_name);
  * @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.
@@ -251,7 +251,7 @@ int capmgr_device_get_profile(capmgr_device_h device, char** profile);
  * @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.
index 4c95d1c..6dbd7f3 100644 (file)
@@ -152,7 +152,7 @@ API int capmgr_device_get_device_name(capmgr_device_h device,
   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;
@@ -175,7 +175,7 @@ API int capmgr_device_get_profile(capmgr_device_h device, char** profile) {
   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;
index e9f439f..f6d53d6 100644 (file)
@@ -180,13 +180,13 @@ DEVICE_GET_TEST_BLOCK(DeviceGetDeviceNamePositiveTest,
     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;
index f1779fc..120fb14 100644 (file)
@@ -74,7 +74,7 @@ int DeviceForeachCb(const capmgr_device_h device, void* user_data) {
   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;
 
@@ -82,7 +82,7 @@ int DeviceForeachCb(const capmgr_device_h device, void* user_data) {
   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;