* @retval #AUTOFILL_ERROR_NONE No error
* @retval #AUTOFILL_ERROR_INVALID_PARAMETER Invalid parameter
*/
-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);
/**
* @return 0 on success, otherwise a negative error value
* @retval #AUTOFILL_ERROR_NONE No error
*/
-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);
/**
return ret;
}
-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) {
return AUTOFILL_ERROR_NONE;
}
-EXPORT_API int autofill_service_unset_commited_cb(void)
-{
- return autofill_service_unset_committed_cb();
-}
-
EXPORT_API int autofill_service_unset_committed_cb(void)
{
g_autofill_service_committed_cb = NULL;