autofill_service_set_commited_cb() and autofill_service_unset_commited_cb() will be removed after being replaced in service app.
Change-Id: I3b4c174de450395e31a02dce38e4c41d8c48b1cc
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
* @param[in] context_id The autofill context identification value of an associated autofill client handle
* @param[in] vi The autofill save view info handle
* @param[in] user_data The user data passed from the callback function
* @param[in] context_id The autofill context identification value of an associated autofill client handle
* @param[in] vi The autofill save view info handle
* @param[in] user_data The user data passed from the callback function
- * @see autofill_service_set_commited_cb()
+ * @see autofill_service_set_committed_cb()
-typedef void (*autofill_service_commited_cb)(int context_id, autofill_save_view_info_h vi, void *user_data);
+typedef void (*autofill_service_committed_cb)(int context_id, autofill_save_view_info_h vi, void *user_data);
/**
* @brief Called when receiving terminate request.
/**
* @brief Called when receiving terminate request.
* @retval #AUTOFILL_ERROR_NONE No error
* @retval #AUTOFILL_ERROR_INVALID_PARAMETER Invalid parameter
*/
* @retval #AUTOFILL_ERROR_NONE No error
* @retval #AUTOFILL_ERROR_INVALID_PARAMETER Invalid parameter
*/
-int autofill_service_set_commited_cb(autofill_service_commited_cb callback, void *user_data);
+int autofill_service_set_commited_cb(autofill_service_committed_cb callback, void *user_data);
+
+/**
+ * @brief Sets the callback to receive the commit request.
+ * @since_tizen 5.5
+ * @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_service_set_committed_cb(autofill_service_committed_cb callback, void *user_data);
/**
* @brief Unsets the callback to receive the commit request.
/**
* @brief Unsets the callback to receive the commit request.
int autofill_service_unset_commited_cb(void);
/**
int autofill_service_unset_commited_cb(void);
/**
+ * @brief Unsets the callback to receive the commit request.
+ * @since_tizen 5.5
+ * @return 0 on success, otherwise a negative error value
+ * @retval #AUTOFILL_ERROR_NONE No error
+ */
+int autofill_service_unset_committed_cb(void);
+
+/**
* @brief Sets the callback to receive the terminate request.
* @since_tizen 5.5
* @param[in] callback The callback function to register
* @brief Sets the callback to receive the terminate request.
* @since_tizen 5.5
* @param[in] callback The callback function to register
static autofill_service_auth_info_requested_cb g_autofill_service_auth_info_requested_cb = NULL;
static void *g_autofill_service_auth_info_request_data = NULL;
static autofill_service_auth_info_requested_cb g_autofill_service_auth_info_requested_cb = NULL;
static void *g_autofill_service_auth_info_request_data = NULL;
-static autofill_service_commited_cb g_autofill_service_commited_cb = NULL;
+static autofill_service_committed_cb g_autofill_service_committed_cb = NULL;
static void *g_autofill_service_commit_data = NULL;
static autofill_service_terminate_received_cb g_autofill_service_terminate_received_cb = NULL;
static void *g_autofill_service_commit_data = NULL;
static autofill_service_terminate_received_cb g_autofill_service_terminate_received_cb = NULL;
rpc_port_autofill_svc_save_view_info_foreach_items(vi, __save_item_cb, view_info);
rpc_port_autofill_svc_save_view_info_foreach_items(vi, __save_item_cb, view_info);
- if (g_autofill_service_commited_cb)
- g_autofill_service_commited_cb(context_id, view_info, g_autofill_service_commit_data);
+ if (g_autofill_service_committed_cb)
+ g_autofill_service_committed_cb(context_id, view_info, g_autofill_service_commit_data);
autofill_save_view_info_destroy(view_info);
autofill_save_view_info_destroy(view_info);
-EXPORT_API int autofill_service_set_commited_cb(autofill_service_commited_cb callback, void *user_data)
+EXPORT_API int autofill_service_set_commited_cb(autofill_service_committed_cb callback, void *user_data)
+{
+ return autofill_service_set_committed_cb(callback, user_data);
+}
+
+EXPORT_API int autofill_service_set_committed_cb(autofill_service_committed_cb callback, void *user_data)
{
if (!callback) {
LOGW("[ERROR] Invalid parameter");
return AUTOFILL_ERROR_INVALID_PARAMETER;
}
{
if (!callback) {
LOGW("[ERROR] Invalid parameter");
return AUTOFILL_ERROR_INVALID_PARAMETER;
}
- g_autofill_service_commited_cb = callback;
+ g_autofill_service_committed_cb = callback;
g_autofill_service_commit_data = user_data;
return AUTOFILL_ERROR_NONE;
g_autofill_service_commit_data = user_data;
return AUTOFILL_ERROR_NONE;
EXPORT_API int autofill_service_unset_commited_cb(void)
{
EXPORT_API int autofill_service_unset_commited_cb(void)
{
- g_autofill_service_commited_cb = NULL;
+ return autofill_service_unset_committed_cb();
+}
+
+EXPORT_API int autofill_service_unset_committed_cb(void)
+{
+ g_autofill_service_committed_cb = NULL;
g_autofill_service_commit_data = NULL;
return AUTOFILL_ERROR_NONE;
g_autofill_service_commit_data = NULL;
return AUTOFILL_ERROR_NONE;