static void __error_info_recv_cb(void *user_data, int context_id, rpc_port_autofill_svc_error_info_h svc_error_info_h)
{
char *app_id = NULL;
- char *error_message = NULL;
int error_code = 0;
rpc_port_autofill_svc_error_info_get_app_id(svc_error_info_h, &app_id);
rpc_port_autofill_svc_error_info_get_error_code(svc_error_info_h, &error_code);
- rpc_port_autofill_svc_error_info_get_error_message(svc_error_info_h, &error_message);
/* transfer error info */
rpc_port_autofill_error_info_h error_info_h = NULL;
rpc_port_autofill_error_info_create(&error_info_h);
rpc_port_autofill_error_info_set_app_id(error_info_h, app_id);
rpc_port_autofill_error_info_set_error_code(error_info_h, error_code);
- rpc_port_autofill_error_info_set_error_message(error_info_h, error_message);
autofill_client_s *sender_client = get_autofill_client(app_id, context_id);
if (sender_client)
rpc_port_AutofillAppPort_autofill_error_info_received_cb_invoke(sender_client->error_info_cb, error_info_h);
- LOGD("error code : %d, message : %s", error_code, error_message);
+ LOGD("error code : %x", error_code);
if (app_id)
free(app_id);
-
- if (error_message)
- free(error_message);
}
static void __on_connected(rpc_port_proxy_AutofillSvcPort_h h, void *user_data)