From: Jihoon Kim Date: Fri, 3 May 2019 02:33:55 +0000 (+0900) Subject: Support view title in save view info X-Git-Tag: submit/tizen/20190507.103844~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bd1a607d506f45ffd7be4f2d33340a11ab033f8c;p=platform%2Fcore%2Fuifw%2Fautofill-daemon.git Support view title in save view info Change-Id: I1d18d1400dc4826307e48d60cff3ad0ded4b5bf1 Signed-off-by: Jihoon Kim --- diff --git a/src/autofill-daemon.c b/src/autofill-daemon.c index cfa2de5..f8a545f 100644 --- a/src/autofill-daemon.c +++ b/src/autofill-daemon.c @@ -351,6 +351,7 @@ bool __save_item_cb(rpc_port_autofill_save_item_h items, void *user_data) static int __auth_info_request_cb(rpc_port_stub_AutofillAppPort_context_h context, int context_id, rpc_port_autofill_view_info_h vi, void *user_data) { char *sender = NULL; + char *view_id = NULL; if (!g_connected) { LOGW("Not connected to autofill service"); @@ -363,7 +364,6 @@ static int __auth_info_request_cb(rpc_port_stub_AutofillAppPort_context_h contex } rpc_port_stub_AutofillAppPort_context_get_sender(context, &sender); - char *view_id = NULL; rpc_port_autofill_view_info_get_view_id(vi, &view_id); LOGD("app id : %s, view id : %s", sender, view_id); @@ -443,6 +443,7 @@ static int __commit_cb(rpc_port_stub_AutofillAppPort_context_h context, int cont { char *sender = NULL; char *view_id = NULL; + char *view_title = NULL; if (!g_connected) { LOGW("Not connected to autofill service"); @@ -468,10 +469,11 @@ static int __commit_cb(rpc_port_stub_AutofillAppPort_context_h context, int cont } rpc_port_autofill_save_view_info_get_view_id(vi, &view_id); - if (view_id) { - LOGD("view id : %s", view_id); - } + rpc_port_autofill_save_view_info_get_view_title(vi, &view_title); + + LOGD("view id : '%s', view title : '%s'", view_id, view_title); rpc_port_autofill_svc_save_view_info_set_view_id(svi, view_id); + rpc_port_autofill_svc_save_view_info_set_view_title(svi, view_title); rpc_port_autofill_save_view_info_foreach_items(vi, __save_item_cb, svi); @@ -480,6 +482,9 @@ static int __commit_cb(rpc_port_stub_AutofillAppPort_context_h context, int cont if (view_id) free(view_id); + if (view_title) + free(view_title); + rpc_port_autofill_svc_save_view_info_destroy(svi); return 0; diff --git a/tidl/autofill.tidl b/tidl/autofill.tidl index fbf53b4..bfac23d 100644 --- a/tidl/autofill.tidl +++ b/tidl/autofill.tidl @@ -21,6 +21,7 @@ struct autofill_save_item { struct autofill_save_view_info { string view_id; + string view_title; list items; } diff --git a/tidl/autofill_service.tidl b/tidl/autofill_service.tidl index 31a4809..ffe3dc1 100644 --- a/tidl/autofill_service.tidl +++ b/tidl/autofill_service.tidl @@ -23,6 +23,7 @@ struct autofill_svc_save_item { struct autofill_svc_save_view_info { string app_id; string view_id; + string view_title; list items; }