EXPORT_API int autofill_destroy(autofill_h ah)
{
- if (!ah)
+ LOGI("");
+
+ if (!ah) {
+ LOGW("[ERROR] Invalid parameter");
return AUTOFILL_ERROR_INVALID_PARAMETER;
+ }
ah->connection_callback = NULL;
ah->autofill_fill_response_received_cb = NULL;
free(ah);
+ LOGI("return error none");
+
return AUTOFILL_ERROR_NONE;
}
}
if (!ah->rpc_h) {
+ LOGW("[ERROR] Operation failed");
return AUTOFILL_ERROR_OPERATION_FAILED;
}
LOGW("[ERROR] Failed to cancel fill request. rpc err = %d", ret);
return AUTOFILL_ERROR_OPERATION_FAILED;
}
- else
+ else {
+ LOGI("return error none");
return AUTOFILL_ERROR_NONE;
+ }
}
EXPORT_API int autofill_fill_response_set_received_cb(autofill_h ah, autofill_fill_response_received_cb callback, void *user_data)
EXPORT_API int autofill_view_info_create(autofill_view_info_h *vi)
{
- if (!vi)
+ if (!vi) {
+ LOGW("[ERROR] Invalid parameter");
return AUTOFILL_ERROR_INVALID_PARAMETER;
+ }
struct autofill_view_info_s *vs = (struct autofill_view_info_s *)calloc(1, sizeof(struct autofill_view_info_s));
- if (!vs)
+ if (!vs) {
+ LOGW("[ERROR] Out of memory");
return AUTOFILL_ERROR_OUT_OF_MEMORY;
+ }
*vi = (autofill_view_info_h)vs;
EXPORT_API int autofill_view_info_destroy(autofill_view_info_h vi)
{
- if (!vi)
+ LOGI("autofill_view_info_destroy");
+ if (!vi) {
+ LOGW("[ERROR] Invalid parameter");
return AUTOFILL_ERROR_INVALID_PARAMETER;
+ }
if (vi->app_id) {
free(vi->app_id);
free(vi);
+ LOGI("return error none");
+
return AUTOFILL_ERROR_NONE;
}