Revise API name 86/193086/5
authorJihoon Kim <jihoon48.kim@samsung.com>
Wed, 14 Nov 2018 10:16:52 +0000 (19:16 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Thu, 15 Nov 2018 22:57:40 +0000 (07:57 +0900)
Change-Id: Ia446c5c76d826ec78255b0e828d2c7cefdce5cdf
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
client/autofill.c
common/autofill_auth_info.c
common/autofill_fill_response.c
common/autofill_fill_response_group.c
common/autofill_save_view_info.c
common/autofill_view_info.c
include/autofill_common.h
include/autofill_common_deprecated.h [new file with mode: 0644]
service_lib/autofill_service.c

index 25a4b7d..75e06e7 100644 (file)
@@ -126,16 +126,16 @@ static void __auth_info_recv_cb(void *user_data, rpc_port_autofill_auth_info_h a
     autofill_auth_info_h ah;
     autofill_auth_info_create(&ah);
 
-    bool exist_autofill_data;
-    bool need_authentication;
+    bool autofill_data_present = false;
+    bool authentication_needed = false;
     char *view_id = NULL;
     char *service_name = NULL;
     char *service_logo_image_path = NULL;
     char *service_message = NULL;
 
     rpc_port_autofill_auth_info_get_view_id(auth_info_h, &view_id);
-    rpc_port_autofill_auth_info_get_exist_autofill_data(auth_info_h, &exist_autofill_data);
-    rpc_port_autofill_auth_info_get_need_authentication(auth_info_h, &need_authentication);
+    rpc_port_autofill_auth_info_get_exist_autofill_data(auth_info_h, &autofill_data_present);
+    rpc_port_autofill_auth_info_get_need_authentication(auth_info_h, &authentication_needed);
     rpc_port_autofill_auth_info_get_service_name(auth_info_h, &service_name);
     rpc_port_autofill_auth_info_get_service_logo_image_path(auth_info_h, &service_logo_image_path);
     rpc_port_autofill_auth_info_get_service_message(auth_info_h, &service_message);
@@ -143,8 +143,8 @@ static void __auth_info_recv_cb(void *user_data, rpc_port_autofill_auth_info_h a
     LOGD("service name : %s", service_name);
 
     autofill_auth_info_set_view_id(ah, view_id);
-    autofill_auth_info_set_exist_autofill_data(ah, exist_autofill_data);
-    autofill_auth_info_set_need_authentication(ah, need_authentication);
+    autofill_auth_info_set_autofill_data_present(ah, autofill_data_present);
+    autofill_auth_info_set_authentication_needed(ah, authentication_needed);
     autofill_auth_info_set_service_name(ah, service_name);
     autofill_auth_info_set_service_logo_image_path(ah, service_logo_image_path);
     autofill_auth_info_set_service_message(ah, service_message);
index 3a39e45..8604281 100644 (file)
 struct autofill_auth_info_s {
     char *app_id;
     char *view_id;
-    bool exist_autofill_data; // autofill data 보유 여부
-    bool need_authentication; // 인증 필요 여부
+    bool autofill_data_present; // autofill data presence
+    bool authentication_needed; // authentication needed
 
-    char *service_name; // 서비스 이름 (ex> Samsung Pass)
-    char *service_logo_image_path; // 서비스 로고 이미지 경로 (ex> /home/owner/…/appid/shared/samsung_pass_logo.png)
-    char *service_message; // 표기 메시지 (ex> samsung pass로 로그인)
+    char *service_name; // Service name
+    char *service_logo_image_path; // Service logo image path (ex> /home/owner/…/appid/shared/xxx_logo.png)
+    char *service_message; // Service message (ex> Login with autofill service)
 };
 
 EXPORT_API int autofill_auth_info_create(autofill_auth_info_h *ai)
@@ -85,44 +85,64 @@ EXPORT_API int autofill_auth_info_destroy(autofill_auth_info_h ai)
 
 EXPORT_API int autofill_auth_info_set_exist_autofill_data(autofill_auth_info_h ai, bool exist_autofill_data)
 {
+    return autofill_auth_info_set_autofill_data_present(ai, exist_autofill_data);
+}
+
+EXPORT_API int autofill_auth_info_set_autofill_data_present(autofill_auth_info_h ai, bool autofill_data_present)
+{
     if (!ai)
         return AUTOFILL_ERROR_INVALID_PARAMETER;
 
-    ai->exist_autofill_data = exist_autofill_data;
+    ai->autofill_data_present = autofill_data_present;
 
     return AUTOFILL_ERROR_NONE;
 }
 
 EXPORT_API int autofill_auth_info_get_exist_autofill_data(autofill_auth_info_h ai, bool *exist_autofill_data)
 {
-    if (!ai || !exist_autofill_data)
+    return autofill_auth_info_get_autofill_data_present(ai, exist_autofill_data);
+}
+
+EXPORT_API int autofill_auth_info_get_autofill_data_present(autofill_auth_info_h ai, bool *autofill_data_present)
+{
+    if (!ai || !autofill_data_present)
         return AUTOFILL_ERROR_INVALID_PARAMETER;
 
-    *exist_autofill_data = ai->exist_autofill_data;
+    *autofill_data_present = ai->autofill_data_present;
 
     return AUTOFILL_ERROR_NONE;
 }
 
-EXPORT_API int autofill_auth_info_set_need_authentication(autofill_auth_info_h ai, bool need_authentication)
+EXPORT_API int autofill_auth_info_set_authentication_needed(autofill_auth_info_h ai, bool authentication_needed)
 {
     if (!ai)
         return AUTOFILL_ERROR_INVALID_PARAMETER;
 
-    ai->need_authentication = need_authentication;
+    ai->authentication_needed = authentication_needed;
 
     return AUTOFILL_ERROR_NONE;
 }
 
-EXPORT_API int autofill_auth_info_get_need_authentication(autofill_auth_info_h ai, bool *need_authentication)
+EXPORT_API int autofill_auth_info_get_authentication_needed(autofill_auth_info_h ai, bool *authentication_needed)
 {
-    if (!ai || !need_authentication)
+    if (!ai || !authentication_needed)
         return AUTOFILL_ERROR_INVALID_PARAMETER;
 
-    *need_authentication = ai->need_authentication;
+    *authentication_needed = ai->authentication_needed;
 
     return AUTOFILL_ERROR_NONE;
 }
 
+EXPORT_API int autofill_auth_info_set_need_authentication(autofill_auth_info_h ai, bool authentication_needed)
+{
+    return autofill_auth_info_set_authentication_needed(ai, authentication_needed);
+}
+
+EXPORT_API int autofill_auth_info_get_need_authentication(autofill_auth_info_h ai, bool *authentication_needed)
+{
+    return autofill_auth_info_get_authentication_needed(ai, authentication_needed);
+}
+
 EXPORT_API int autofill_auth_info_set_service_name(autofill_auth_info_h ai, const char *service_name)
 {
     if (!ai || !service_name)
index 314fad6..9e11b0a 100644 (file)
@@ -132,7 +132,7 @@ EXPORT_API int autofill_fill_response_add_group(autofill_fill_response_h h, auto
     return AUTOFILL_ERROR_NONE;
 }
 
-EXPORT_API int autofill_fill_response_foreach_groups(autofill_fill_response_h h,
+EXPORT_API int autofill_fill_response_foreach_group(autofill_fill_response_h h,
         autofill_fill_response_group_cb callback, void *user_data)
 {
     if (!h || !callback) {
@@ -151,6 +151,12 @@ EXPORT_API int autofill_fill_response_foreach_groups(autofill_fill_response_h h,
     return AUTOFILL_ERROR_NONE;
 }
 
+EXPORT_API int autofill_fill_response_foreach_groups(autofill_fill_response_h h,
+        autofill_fill_response_group_cb callback, void *user_data)
+{
+    return autofill_fill_response_foreach_group(h, callback, user_data);
+}
+
 EXPORT_API int autofill_fill_response_get_group_count(autofill_fill_response_h h, int *count)
 {
     if (!h || !count)
index 68cef53..922a501 100644 (file)
@@ -113,7 +113,7 @@ EXPORT_API int autofill_fill_response_group_add_item(autofill_fill_response_grou
     return AUTOFILL_ERROR_NONE;
 }
 
-EXPORT_API int autofill_fill_response_group_foreach_items(autofill_fill_response_group_h h,
+EXPORT_API int autofill_fill_response_group_foreach_item(autofill_fill_response_group_h h,
         autofill_fill_response_item_cb callback, void *user_data)
 {
     if (!h || !callback) {
@@ -131,3 +131,9 @@ EXPORT_API int autofill_fill_response_group_foreach_items(autofill_fill_response
 
     return AUTOFILL_ERROR_NONE;
 }
+
+EXPORT_API int autofill_fill_response_group_foreach_items(autofill_fill_response_group_h h,
+        autofill_fill_response_item_cb callback, void *user_data)
+{
+    return autofill_fill_response_group_foreach_item(h, callback, user_data);
+}
index b9f8532..a0cfc62 100644 (file)
@@ -120,7 +120,7 @@ EXPORT_API int autofill_save_view_info_get_view_id(autofill_save_view_info_h vi,
     return AUTOFILL_ERROR_NONE;
 }
 
-EXPORT_API int autofill_save_view_info_add_item(const autofill_save_view_info_h vi, autofill_save_item_h it)
+EXPORT_API int autofill_save_view_info_add_item(autofill_save_view_info_h vi, autofill_save_item_h it)
 {
     if (!vi || !it)
         return AUTOFILL_ERROR_INVALID_PARAMETER;
@@ -138,7 +138,7 @@ EXPORT_API int autofill_save_view_info_add_item(const autofill_save_view_info_h
     return AUTOFILL_ERROR_NONE;
 }
 
-EXPORT_API int autofill_save_view_info_foreach_items(autofill_save_view_info_h vi,
+EXPORT_API int autofill_save_view_info_foreach_item(autofill_save_view_info_h vi,
         autofill_save_item_cb callback, void *user_data)
 {
     if (!vi || !callback) {
@@ -156,3 +156,9 @@ EXPORT_API int autofill_save_view_info_foreach_items(autofill_save_view_info_h v
 
     return AUTOFILL_ERROR_NONE;
 }
+
+EXPORT_API int autofill_save_view_info_foreach_items(autofill_save_view_info_h vi,
+        autofill_save_item_cb callback, void *user_data)
+{
+    return autofill_save_view_info_foreach_item(vi, callback, user_data);
+}
\ No newline at end of file
index a24cdc6..8c50525 100644 (file)
@@ -118,7 +118,7 @@ EXPORT_API int autofill_view_info_get_view_id(autofill_view_info_h vi, char **vi
     return AUTOFILL_ERROR_NONE;
 }
 
-EXPORT_API int autofill_view_info_add_item(const autofill_view_info_h vi, autofill_item_h it)
+EXPORT_API int autofill_view_info_add_item(autofill_view_info_h vi, autofill_item_h it)
 {
     if (!vi || !it)
         return AUTOFILL_ERROR_INVALID_PARAMETER;
@@ -136,7 +136,7 @@ EXPORT_API int autofill_view_info_add_item(const autofill_view_info_h vi, autofi
     return AUTOFILL_ERROR_NONE;
 }
 
-EXPORT_API int autofill_view_info_foreach_items(autofill_view_info_h vi,
+EXPORT_API int autofill_view_info_foreach_item(autofill_view_info_h vi,
         autofill_item_cb callback, void *user_data)
 {
     if (!vi || !callback) {
@@ -154,3 +154,9 @@ EXPORT_API int autofill_view_info_foreach_items(autofill_view_info_h vi,
 
     return AUTOFILL_ERROR_NONE;
 }
+
+EXPORT_API int autofill_view_info_foreach_items(autofill_view_info_h vi,
+        autofill_item_cb callback, void *user_data)
+{
+    return autofill_view_info_foreach_item(vi, callback, user_data);
+}
\ No newline at end of file
index 16edf68..eed61d6 100644 (file)
@@ -130,8 +130,8 @@ typedef struct autofill_save_view_info_s *autofill_save_view_info_h;
  * @param[in] user_data The user data to be passed to the callback function
  * @return @c true to continue with the next iteration of the loop,
  *         otherwise @c false to break out of the loop
- * @pre autofill_view_info_foreach_items() will invoke this callback.
- * @see autofill_view_info_foreach_items()
+ * @pre autofill_view_info_foreach_item() will invoke this callback.
+ * @see autofill_view_info_foreach_item()
  */
 typedef bool (*autofill_item_cb)(autofill_item_h item, void *user_data);
 
@@ -143,8 +143,8 @@ typedef bool (*autofill_item_cb)(autofill_item_h item, void *user_data);
  * @param[in] user_data The user data to be passed to the callback function
  * @return @c true to continue with the next iteration of the loop,
  *         otherwise @c false to break out of the loop
- * @pre autofill_view_info_foreach_items() will invoke this callback.
- * @see autofill_view_info_foreach_items()
+ * @pre autofill_view_info_foreach_item() will invoke this callback.
+ * @see autofill_view_info_foreach_item()
  */
 typedef bool (*autofill_save_item_cb)(autofill_save_item_h item, void *user_data);
 
@@ -156,8 +156,8 @@ typedef bool (*autofill_save_item_cb)(autofill_save_item_h item, void *user_data
  * @param[in] user_data The user data to be passed to the callback function
  * @return @c true to continue with the next iteration of the loop,
  *         otherwise @c false to break out of the loop
- * @pre autofill_fill_response_foreach_groups() will invoke this callback.
- * @see autofill_fill_response_foreach_groups()
+ * @pre autofill_fill_response_foreach_group() will invoke this callback.
+ * @see autofill_fill_response_foreach_group()
  */
 typedef bool (*autofill_fill_response_group_cb)(autofill_fill_response_group_h item, void *user_data);
 
@@ -169,8 +169,8 @@ typedef bool (*autofill_fill_response_group_cb)(autofill_fill_response_group_h i
  * @param[in] user_data The user data to be passed to the callback function
  * @return @c true to continue with the next iteration of the loop,
  *         otherwise @c false to break out of the loop
- * @pre autofill_fill_response_group_foreach_items() will invoke this callback.
- * @see autofill_view_info_foreach_items()
+ * @pre autofill_fill_response_group_foreach_item() will invoke this callback.
+ * @see autofill_view_info_foreach_item()
  */
 typedef bool (*autofill_fill_response_item_cb)(autofill_fill_response_item_h item, void *user_data);
 
@@ -391,48 +391,48 @@ int autofill_auth_info_set_view_id(autofill_auth_info_h ai, const char *view_id)
 int autofill_auth_info_get_view_id(autofill_auth_info_h ai, char **view_id);
 
 /**
- * @brief Sets the exist autofill data in autofill authentication information.
+ * @brief Sets the 'autofill data present' attribute in autofill authentication information.
  * @since_tizen 5.5
  * @param[in] ai The autofill authentication information handle
- * @param[in] exist_autofill_data The autofill data existence
+ * @param[in] autofill_data_present The autofill data presence
  * @return 0 on success, otherwise a negative error value
  * @retval #AUTOFILL_ERROR_NONE No error
  * @retval #AUTOFILL_ERROR_INVALID_PARAMETER Invalid parameter
  */
-int autofill_auth_info_set_exist_autofill_data(autofill_auth_info_h ai, bool exist_autofill_data);
+int autofill_auth_info_set_autofill_data_present(autofill_auth_info_h ai, bool autofill_data_present);
 
 /**
- * @brief Gets the exist autofill data in autofill authentication information.
+ * @brief Gets the 'autofill data present' attribute in autofill authentication information.
  * @since_tizen 5.5
  * @param[in] ai The autofill authentication information handle
- * @param[out] exist_autofill_data The autofill data existence
+ * @param[out] autofill_data_present The autofill data presence
  * @return 0 on success, otherwise a negative error value
  * @retval #AUTOFILL_ERROR_NONE No error
  * @retval #AUTOFILL_ERROR_INVALID_PARAMETER Invalid parameter
  */
-int autofill_auth_info_get_exist_autofill_data(autofill_auth_info_h ai, bool *exist_autofill_data);
+int autofill_auth_info_get_autofill_data_present(autofill_auth_info_h ai, bool *autofill_data_present);
 
 /**
- * @brief Sets the need authentication in autofill authentication information.
+ * @brief Sets the 'authentication needed' attribute in autofill authentication information.
  * @since_tizen 5.5
  * @param[in] ai The autofill authentication information handle
- * @param[in] need_authentication The authentication need
+ * @param[in] authentication_needed The authentication need
  * @return 0 on success, otherwise a negative error value
  * @retval #AUTOFILL_ERROR_NONE No error
  * @retval #AUTOFILL_ERROR_INVALID_PARAMETER Invalid parameter
  */
-int autofill_auth_info_set_need_authentication(autofill_auth_info_h ai, bool need_authentication);
+int autofill_auth_info_set_authentication_needed(autofill_auth_info_h ai, bool authentication_needed);
 
 /**
- * @brief Gets the need authentication in autofill authentication information.
+ * @brief Gets the 'authentication needed' attribute in autofill authentication information.
  * @since_tizen 5.5
  * @param[in] ai The autofill authentication information handle
- * @param[out] need_authentication The authentication need
+ * @param[out] authentication_needed The authentication need
  * @return 0 on success, otherwise a negative error value
  * @retval #AUTOFILL_ERROR_NONE No error
  * @retval #AUTOFILL_ERROR_INVALID_PARAMETER Invalid parameter
  */
-int autofill_auth_info_get_need_authentication(autofill_auth_info_h ai, bool *need_authentication);
+int autofill_auth_info_get_authentication_needed(autofill_auth_info_h ai, bool *authentication_needed);
 
 /**
  * @brief Sets the service name in autofill authentication information.
@@ -504,7 +504,7 @@ int autofill_auth_info_set_service_logo_image_path(autofill_auth_info_h ai, cons
 int autofill_auth_info_get_service_logo_image_path(autofill_auth_info_h ai, char **service_logo_image_path);
 
 /**
- * @brief Creates an autofill view information.
+ * @brief Creates autofill view information.
  * @since_tizen 5.5
  * @remarks If the function succeeds, @a vi handle must be released with autofill_view_info_destroy().
  * @param[out] vi The autofill view info handle
@@ -516,7 +516,7 @@ int autofill_auth_info_get_service_logo_image_path(autofill_auth_info_h ai, char
 int autofill_view_info_create(autofill_view_info_h *vi);
 
 /**
- * @brief Destroys an autofill view information.
+ * @brief Destroys autofill view information.
  * @since_tizen 5.5
  * @param[in] vi The autofill view info handle
  * @return 0 on success, otherwise a negative error value
@@ -526,7 +526,7 @@ int autofill_view_info_create(autofill_view_info_h *vi);
 int autofill_view_info_destroy(autofill_view_info_h vi);
 
 /**
- * @brief Sets the app id in an autofill view information.
+ * @brief Sets the app id in autofill view information.
  * @since_tizen 5.5
  * @param[in] vi The autofill view info handle
  * @param[in] app_id The app ID
@@ -537,7 +537,7 @@ int autofill_view_info_destroy(autofill_view_info_h vi);
 int autofill_view_info_set_app_id(autofill_view_info_h vi, const char *app_id);
 
 /**
- * @brief Gets the app id in an autofill view information.
+ * @brief Gets the app id in autofill view information.
  * @since_tizen 5.5
  * @remarks @a app_id must be released using free().
  * @param[in] vi The autofill view info handle
@@ -546,10 +546,10 @@ int autofill_view_info_set_app_id(autofill_view_info_h vi, const char *app_id);
  * @retval #AUTOFILL_ERROR_NONE No error
  * @retval #AUTOFILL_ERROR_INVALID_PARAMETER Invalid parameter
  */
-int autofill_view_info_get_app_id(const autofill_view_info_h vi, char **app_id);
+int autofill_view_info_get_app_id(autofill_view_info_h vi, char **app_id);
 
 /**
- * @brief Sets the view id in an autofill view information.
+ * @brief Sets the view id in autofill view information.
  * @since_tizen 5.5
  * @param[in] vi The autofill view info handle
  * @param[in] view_id The view ID
@@ -560,7 +560,7 @@ int autofill_view_info_get_app_id(const autofill_view_info_h vi, char **app_id);
 int autofill_view_info_set_view_id(autofill_view_info_h vi, const char *view_id);
 
 /**
- * @brief Gets the view id in an autofill view information.
+ * @brief Gets the view id in autofill view information.
  * @since_tizen 5.5
  * @remarks @a view_id must be released using free().
  * @param[in] vi The autofill view info handle
@@ -572,7 +572,7 @@ int autofill_view_info_set_view_id(autofill_view_info_h vi, const char *view_id)
 int autofill_view_info_get_view_id(autofill_view_info_h vi, char **view_id);
 
 /**
- * @brief Adds autofill item in an autofill view information.
+ * @brief Adds autofill item in autofill view information.
  * @since_tizen 5.5
  * @param[in] vi The autofill view info handle
  * @param[in] it The autofill item handle
@@ -580,10 +580,10 @@ int autofill_view_info_get_view_id(autofill_view_info_h vi, char **view_id);
  * @retval #AUTOFILL_ERROR_NONE No error
  * @retval #AUTOFILL_ERROR_INVALID_PARAMETER Invalid parameter
  */
-int autofill_view_info_add_item(const autofill_view_info_h vi, autofill_item_h it);
+int autofill_view_info_add_item(autofill_view_info_h vi, autofill_item_h it);
 
 /**
- * @brief Retrieves all items in view information.
+ * @brief Retrieves all items in autofill view information.
  * @since_tizen 5.5
  * @param[in] vi The autofill view info handle
  * @param[in] callback The callback function to register
@@ -595,7 +595,7 @@ int autofill_view_info_add_item(const autofill_view_info_h vi, autofill_item_h i
 int autofill_view_info_foreach_item(autofill_view_info_h vi, autofill_item_cb callback, void *user_data);
 
 /**
- * @brief Creates an autofill save view.
+ * @brief Creates autofill save view information.
  * @since_tizen 5.5
  * @remarks If the function succeeds, @a vi handle must be released with autofill_save_view_info_destroy()
  * @param[out] vi The autofill view info handle
@@ -607,7 +607,7 @@ int autofill_view_info_foreach_item(autofill_view_info_h vi, autofill_item_cb ca
 int autofill_save_view_info_create(autofill_save_view_info_h *vi);
 
 /**
- * @brief Destroys an autofill save view.
+ * @brief Destroys autofill save view information.
  * @since_tizen 5.5
  * @param[in] vi The autofill view info handle
  * @return 0 on success, otherwise a negative error value
@@ -637,10 +637,10 @@ int autofill_save_view_info_set_app_id(autofill_save_view_info_h vi, const char
  * @retval #AUTOFILL_ERROR_NONE No error
  * @retval #AUTOFILL_ERROR_INVALID_PARAMETER Invalid parameter
  */
-int autofill_save_view_info_get_app_id(const autofill_save_view_info_h vi, char **app_id);
+int autofill_save_view_info_get_app_id(autofill_save_view_info_h vi, char **app_id);
 
 /**
- * @brief Sets the view ID  in autofill save view information.
+ * @brief Sets the view ID in autofill save view information.
  * @since_tizen 5.5
  * @param[in] vi The autofill view info handle
  * @param[in] view_id The view ID
@@ -671,10 +671,10 @@ int autofill_save_view_info_get_view_id(autofill_save_view_info_h vi, char **vie
  * @retval #AUTOFILL_ERROR_NONE No error
  * @retval #AUTOFILL_ERROR_INVALID_PARAMETER Invalid parameter
  */
-int autofill_save_view_info_add_item(const autofill_save_view_info_h vi, autofill_save_item_h it);
+int autofill_save_view_info_add_item(autofill_save_view_info_h vi, autofill_save_item_h it);
 
 /**
- * @brief Retrieves all items in save view information.
+ * @brief Retrieves all items in autofill save view information.
  * @since_tizen 5.5
  * @param[in] vi The autofill view info handle
  * @param[in] callback The callback function to register
@@ -683,7 +683,7 @@ int autofill_save_view_info_add_item(const autofill_save_view_info_h vi, autofil
  * @retval #AUTOFILL_ERROR_NONE No error
  * @retval #AUTOFILL_ERROR_INVALID_PARAMETER Invalid parameter
  */
-int autofill_save_view_info_foreach_items(autofill_save_view_info_h vi, autofill_save_item_cb callback, void *user_data);
+int autofill_save_view_info_foreach_item(autofill_save_view_info_h vi, autofill_save_item_cb callback, void *user_data);
 
 /**
  * @brief Creates an autofill fill response.
@@ -773,7 +773,7 @@ int autofill_fill_response_add_group(autofill_fill_response_h h, autofill_fill_r
  * @retval #AUTOFILL_ERROR_NONE No error
  * @retval #AUTOFILL_ERROR_INVALID_PARAMETER Invalid parameter
  */
-int autofill_fill_response_foreach_groups(autofill_fill_response_h h, autofill_fill_response_group_cb callback, void *user_data);
+int autofill_fill_response_foreach_group(autofill_fill_response_h h, autofill_fill_response_group_cb callback, void *user_data);
 
 /**
  * @brief Gets the number of fill response group.
@@ -842,7 +842,7 @@ int autofill_fill_response_group_add_item(autofill_fill_response_group_h h, auto
  * @retval #AUTOFILL_ERROR_NONE No error
  * @retval #AUTOFILL_ERROR_INVALID_PARAMETER Invalid parameter
  */
-int autofill_fill_response_group_foreach_items(autofill_fill_response_group_h h, autofill_fill_response_item_cb callback, void *user_data);
+int autofill_fill_response_group_foreach_item(autofill_fill_response_group_h h, autofill_fill_response_item_cb callback, void *user_data);
 
 /**
  * @brief Creates autofill response item.
@@ -1093,6 +1093,8 @@ int autofill_save_item_set_value(autofill_save_item_h it, const char *value);
  */
 int autofill_save_item_get_value(autofill_save_item_h it, char **value);
 
+#include <autofill_common_deprecated.h>
+
 /**
  * @}
  */
diff --git a/include/autofill_common_deprecated.h b/include/autofill_common_deprecated.h
new file mode 100644 (file)
index 0000000..d6d145a
--- /dev/null
@@ -0,0 +1,136 @@
+/*
+ * Copyright (c) 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.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef __TIZEN_UIX_AUTOFILL_COMMON_DEPRECATED_H__
+#define __TIZEN_UIX_AUTOFILL_COMMON_DEPRECATED_H__
+
+/**
+ * @file autofill_common_deprecated.h
+ * @brief This file contains deprecated autofill common APIs and related enumeration.
+ */
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @deprecated Use autofill_view_info_foreach_item()
+ * @brief Retrieves all items in view info.
+ * @since_tizen 5.5
+ * @param[in] vi The autofill view info handle
+ * @param[in] callback The callback function to register
+ * @param[in] user_data The user data to be passed to the callback function
+ * @return 0 on success, otherwise a negative error value
+ * @retval #AUTOFILL_ERROR_NONE No error
+ * @retval #AUTOFILL_ERROR_INVALID_PARAMETER Invalid parameter
+ */
+int autofill_view_info_foreach_items(autofill_view_info_h vi, autofill_item_cb callback, void *user_data) TIZEN_DEPRECATED_API;
+
+/**
+ * @deprecated Use autofill_save_view_info_foreach_item()
+ * @brief Retrieves all items in save view info.
+ * @since_tizen 5.5
+ * @param[in] vi The autofill view info handle
+ * @param[in] callback The callback function to register
+ * @param[in] user_data The user data to be passed to the callback function
+ * @return 0 on success, otherwise a negative error value
+ * @retval #AUTOFILL_ERROR_NONE No error
+ * @retval #AUTOFILL_ERROR_INVALID_PARAMETER Invalid parameter
+ */
+int autofill_save_view_info_foreach_items(autofill_save_view_info_h vi, autofill_save_item_cb callback, void *user_data) TIZEN_DEPRECATED_API;
+
+/**
+ * @deprecated Use autofill_fill_response_foreach_group()
+ * @brief Retrieves all groups of each fill response.
+ * @since_tizen 5.5
+ * @param[in] h The autofill fill response handle
+ * @param[in] callback The callback function to register
+ * @param[in] user_data The user data to be passed to the callback function
+ * @return 0 on success, otherwise a negative error value
+ * @retval #AUTOFILL_ERROR_NONE No error
+ * @retval #AUTOFILL_ERROR_INVALID_PARAMETER Invalid parameter
+ */
+int autofill_fill_response_foreach_groups(autofill_fill_response_h h, autofill_fill_response_group_cb callback, void *user_data) TIZEN_DEPRECATED_API;
+
+/**
+ * @deprecated Use autofill_fill_response_group_foreach_item()
+ * @brief Retrieves all fill response items of each group.
+ * @since_tizen 5.5
+ * @param[in] h The autofill fill response group handle
+ * @param[in] callback The callback function to register
+ * @param[in] user_data The user data to be passed to the callback function
+ * @return 0 on success, otherwise a negative error value
+ * @retval #AUTOFILL_ERROR_NONE No error
+ * @retval #AUTOFILL_ERROR_INVALID_PARAMETER Invalid parameter
+ */
+int autofill_fill_response_group_foreach_items(autofill_fill_response_group_h h, autofill_fill_response_item_cb callback, void *user_data) TIZEN_DEPRECATED_API;
+
+/**
+ * @deprecated Use autofill_auth_info_set_autofill_data_present()
+ * @brief Sets the exist autofill data in an autofill authentication information.
+ * @since_tizen 5.5
+ * @param[in] ai The autofill authentication information handle
+ * @param[in] exist_autofill_data The autofill data existence
+ * @return 0 on success, otherwise a negative error value
+ * @retval #AUTOFILL_ERROR_NONE No error
+ * @retval #AUTOFILL_ERROR_INVALID_PARAMETER Invalid parameter
+ */
+int autofill_auth_info_set_exist_autofill_data(autofill_auth_info_h ai, bool exist_autofill_data) TIZEN_DEPRECATED_API;
+
+/**
+ * @brief Gets the exist autofill data in an autofill authentication information.
+ * @since_tizen 5.5
+ * @param[in] ai The autofill authentication information handle
+ * @param[out] exist_autofill_data The autofill data existence
+ * @return 0 on success, otherwise a negative error value
+ * @retval #AUTOFILL_ERROR_NONE No error
+ * @retval #AUTOFILL_ERROR_INVALID_PARAMETER Invalid parameter
+ */
+int autofill_auth_info_get_exist_autofill_data(autofill_auth_info_h ai, bool *exist_autofill_data) TIZEN_DEPRECATED_API;
+
+/**
+ * @deprecated Use autofill_auth_info_set_authentication_needed()
+ * @brief Sets the need authentication in an autofill authentication information.
+ * @since_tizen 5.5
+ * @param[in] ai The autofill authentication information handle
+ * @param[in] need_authentication The authentication need
+ * @return 0 on success, otherwise a negative error value
+ * @retval #AUTOFILL_ERROR_NONE No error
+ * @retval #AUTOFILL_ERROR_INVALID_PARAMETER Invalid parameter
+ */
+int autofill_auth_info_set_need_authentication(autofill_auth_info_h ai, bool need_authentication) TIZEN_DEPRECATED_API;
+
+/**
+ * @deprecated Use autofill_auth_info_get_authentication_needed()
+ * @brief Gets the need authentication in an autofill authentication information.
+ * @since_tizen 5.5
+ * @param[in] ai The autofill authentication information handle
+ * @param[out] need_authentication The authentication need
+ * @return 0 on success, otherwise a negative error value
+ * @retval #AUTOFILL_ERROR_NONE No error
+ * @retval #AUTOFILL_ERROR_INVALID_PARAMETER Invalid parameter
+ */
+int autofill_auth_info_get_need_authentication(autofill_auth_info_h ai, bool *need_authentication) TIZEN_DEPRECATED_API;
+
+/**
+ * @}
+ */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __TIZEN_UIX_AUTOFILL_COMMON_DEPRECATED_H__ */
index ac240de..46bbe5a 100644 (file)
@@ -431,8 +431,8 @@ EXPORT_API int autofill_service_unset_auth_info_request_cb()
 
 EXPORT_API int autofill_service_send_auth_info(autofill_auth_info_h h)
 {
-    bool exist_autofill_data;
-    bool need_authentication;
+    bool autofill_data_present = false;
+    bool authentication_needed = false;
     char *app_id = NULL;
     char *view_id = NULL;
     char *service_name = NULL;
@@ -447,8 +447,8 @@ EXPORT_API int autofill_service_send_auth_info(autofill_auth_info_h h)
 
     autofill_auth_info_get_app_id(h, &app_id);
     autofill_auth_info_get_view_id(h, &view_id);
-    autofill_auth_info_get_exist_autofill_data(h, &exist_autofill_data);
-    autofill_auth_info_get_need_authentication(h, &need_authentication);
+    autofill_auth_info_get_autofill_data_present(h, &autofill_data_present);
+    autofill_auth_info_get_authentication_needed(h, &authentication_needed);
     autofill_auth_info_get_service_name(h, &service_name);
     autofill_auth_info_get_service_message(h, &service_message);
     autofill_auth_info_get_service_logo_image_path(h, &service_logo_image_path);
@@ -460,8 +460,8 @@ EXPORT_API int autofill_service_send_auth_info(autofill_auth_info_h h)
     rpc_port_autofill_svc_auth_info_create(&auth_info_h);
     rpc_port_autofill_svc_auth_info_set_app_id(auth_info_h, app_id);
     rpc_port_autofill_svc_auth_info_set_view_id(auth_info_h, view_id);
-    rpc_port_autofill_svc_auth_info_set_exist_autofill_data(auth_info_h, exist_autofill_data);
-    rpc_port_autofill_svc_auth_info_set_need_authentication(auth_info_h, need_authentication);
+    rpc_port_autofill_svc_auth_info_set_exist_autofill_data(auth_info_h, autofill_data_present);
+    rpc_port_autofill_svc_auth_info_set_need_authentication(auth_info_h, authentication_needed);
     rpc_port_autofill_svc_auth_info_set_service_name(auth_info_h, service_name);
     rpc_port_autofill_svc_auth_info_set_service_message(auth_info_h, service_message);
     rpc_port_autofill_svc_auth_info_set_service_logo_image_path(auth_info_h, service_logo_image_path);
@@ -579,7 +579,7 @@ EXPORT_API int autofill_service_send_fill_response(autofill_fill_response_h h)
     {
         rpc_port_autofill_svc_response_group_create(&res_group_h);
 
-        autofill_fill_response_group_foreach_items(it, __fill_response_item_cb, res_group_h);
+        autofill_fill_response_group_foreach_item(it, __fill_response_item_cb, res_group_h);
 
         rpc_port_autofill_svc_fill_response_add_response_groups(fill_response_h, res_group_h);