bool exist_autofill_data;
bool need_authentication;
+ char *view_id = NULL;
char *service_name = NULL;
char *service_logo_image_path = NULL;
char *service_message = NULL;
+ rpc_port_autofill_auth_info_get_view_id(auth_info_h, &view_id);
rpc_port_autofill_auth_info_get_exist_autofill_data(auth_info_h, &exist_autofill_data);
rpc_port_autofill_auth_info_get_need_authentication(auth_info_h, &need_authentication);
rpc_port_autofill_auth_info_get_service_name(auth_info_h, &service_name);
LOGD("service name : %s", service_name);
+ autofill_auth_info_set_view_id(ah, view_id);
autofill_auth_info_set_exist_autofill_data(ah, exist_autofill_data);
autofill_auth_info_set_need_authentication(ah, need_authentication);
autofill_auth_info_set_service_name(ah, service_name);
autofill_auth_info_set_service_logo_image_path(ah, service_logo_image_path);
autofill_auth_info_set_service_message(ah, service_message);
+ if (view_id)
+ free(view_id);
+
if (service_name)
free(service_name);
struct autofill_auth_info_s {
char *app_id;
+ char *view_id;
bool exist_autofill_data; // autofill data 보유 여부
bool need_authentication; // 인증 필요 여부
if (!vi)
return AUTOFILL_ERROR_INVALID_PARAMETER;
+ if (!vi->app_id)
+ return AUTOFILL_ERROR_OPERATION_FAILED;
+
*app_id = strdup(vi->app_id);
return AUTOFILL_ERROR_NONE;
}
+
+EXPORT_API int autofill_auth_info_set_view_id(autofill_auth_info_h vi, const char *view_id)
+{
+ if (!vi || !view_id)
+ return AUTOFILL_ERROR_INVALID_PARAMETER;
+
+ if (vi->view_id)
+ free(vi->view_id);
+
+ vi->view_id = strdup(view_id);
+
+ return AUTOFILL_ERROR_NONE;
+}
+
+EXPORT_API int autofill_auth_info_get_view_id(autofill_auth_info_h vi, char **view_id)
+{
+ if (!vi)
+ return AUTOFILL_ERROR_INVALID_PARAMETER;
+
+ if (!vi->view_id)
+ return AUTOFILL_ERROR_OPERATION_FAILED;
+
+ *view_id = strdup(vi->view_id);
+
+ return AUTOFILL_ERROR_NONE;
+}
int autofill_auth_info_get_app_id(autofill_auth_info_h vi, char **app_id);
/**
+ * @brief Set view id
+ *
+ * @since_tizen 5.5
+ *
+ * @privlevel public
+ *
+ * @return 0 on success, otherwise a negative error value
+ * @retval #AUTOFILL_ERROR_NONE No error
+ */
+int autofill_auth_info_set_view_id(autofill_auth_info_h vi, const char *view_id);
+
+/**
+ * @brief Get view id
+ *
+ * @since_tizen 5.5
+ *
+ * @privlevel public
+ *
+ * @return 0 on success, otherwise a negative error value
+ * @retval #AUTOFILL_ERROR_NONE No error
+ */
+int autofill_auth_info_get_view_id(autofill_auth_info_h vi, char **view_id);
+
+/**
* @brief Set exist autofill data
*
* @since_tizen 5.5
char *service_logo_image_path = NULL;
char *service_message = NULL;
char *app_id = NULL;
+ char *view_id = NULL;
rpc_port_autofill_svc_auth_info_get_app_id(svc_auth_info_h, &app_id);
+ rpc_port_autofill_svc_auth_info_get_view_id(svc_auth_info_h, &view_id);
rpc_port_autofill_svc_auth_info_get_exist_autofill_data(svc_auth_info_h, &exist_autofill_data);
rpc_port_autofill_svc_auth_info_get_need_authentication(svc_auth_info_h, &need_authentication);
rpc_port_autofill_svc_auth_info_get_service_name(svc_auth_info_h, &service_name);
/* transfer auth info */
rpc_port_autofill_auth_info_h auth_info_h;
rpc_port_autofill_auth_info_create(&auth_info_h);
+ rpc_port_autofill_auth_info_set_view_id(auth_info_h, view_id);
rpc_port_autofill_auth_info_set_exist_autofill_data(auth_info_h, exist_autofill_data);
rpc_port_autofill_auth_info_set_need_authentication(auth_info_h, need_authentication);
rpc_port_autofill_auth_info_set_service_name(auth_info_h, service_name);
if (app_id)
free(app_id);
+ if (view_id)
+ free(view_id);
+
if (service_name)
free(service_name);
autofill_view_info_foreach_items(vi_h, __view_info_item_cb, NULL);
- if (view_id)
- free(view_id);
-
LOGD("send auth info");
autofill_auth_info_h auth_info;
autofill_auth_info_create(&auth_info);
autofill_auth_info_set_app_id(auth_info, app_id);
-
- if (app_id)
- free(app_id);
+ autofill_auth_info_set_view_id(auth_info, view_id);
autofill_auth_info_set_exist_autofill_data(auth_info, true);
autofill_auth_info_set_need_authentication(auth_info, false);
LOGD("send auth info");
autofill_service_send_auth_info(auth_info);
+ if (app_id)
+ free(app_id);
+
+ if (view_id)
+ free(view_id);
+
autofill_auth_info_destroy(auth_info);
}
bool exist_autofill_data;
bool need_authentication;
char *app_id = NULL;
+ char *view_id = NULL;
char *service_name = NULL;
char *service_logo_image_path = NULL;
char *service_message = NULL;
}
autofill_auth_info_get_app_id(h, &app_id);
+ autofill_auth_info_get_view_id(h, &view_id);
autofill_auth_info_get_exist_autofill_data(h, &exist_autofill_data);
autofill_auth_info_get_need_authentication(h, &need_authentication);
autofill_auth_info_get_service_name(h, &service_name);
rpc_port_autofill_svc_auth_info_h auth_info_h;
rpc_port_autofill_svc_auth_info_create(&auth_info_h);
rpc_port_autofill_svc_auth_info_set_app_id(auth_info_h, app_id);
+ rpc_port_autofill_svc_auth_info_set_view_id(auth_info_h, view_id);
rpc_port_autofill_svc_auth_info_set_exist_autofill_data(auth_info_h, exist_autofill_data);
rpc_port_autofill_svc_auth_info_set_need_authentication(auth_info_h, need_authentication);
rpc_port_autofill_svc_auth_info_set_service_name(auth_info_h, service_name);
if (app_id)
free(app_id);
+ if (view_id)
+ free(view_id);
+
if (service_name)
free(service_name);
}
struct autofill_auth_info {
+ string view_id;
bool exist_autofill_data;
bool need_authentication;
struct autofill_svc_auth_info {
string app_id;
+ string view_id;
bool exist_autofill_data;
bool need_authentication;