static autofill_connection_status_changed_cb connection_callback = NULL;
static void *connection_userdata = NULL;
-extern autofill_fill_response_cb g_autofill_fill_response_cb;
+extern autofill_fill_response_received_cb g_autofill_fill_response_received_cb;
extern void *g_autofill_fill_response_data;
-extern autofill_auth_info_cb g_autofill_auth_info_cb;
+extern autofill_auth_info_received_cb g_autofill_auth_info_received_cb;
extern void *g_autofill_auth_info_data;
static bool fill_response_item_cb(rpc_port_autofill_response_item_h response_items, void *user_data)
rpc_port_autofill_fill_response_foreach_response_groups(response_h, fill_response_group_cb, rh);
- if (g_autofill_fill_response_cb)
- g_autofill_fill_response_cb(rh, g_autofill_fill_response_data);
+ if (g_autofill_fill_response_received_cb)
+ g_autofill_fill_response_received_cb(rh, g_autofill_fill_response_data);
autofill_fill_response_destroy(rh);
}
if (service_message)
free(service_message);
- if (g_autofill_auth_info_cb)
- g_autofill_auth_info_cb(ah, g_autofill_fill_response_data);
+ if (g_autofill_auth_info_received_cb)
+ g_autofill_auth_info_received_cb(ah, g_autofill_fill_response_data);
autofill_auth_info_destroy(ah);
}
static void __on_connected(rpc_port_proxy_AutofillAppPort_h h, void *user_data)
{
LOGI("[__RPC_PORT__] connected");
- rpc_port_AutofillAppPort_autofill_fill_response_cb_h fill_response_cb = rpc_port_AutofillAppPort_autofill_fill_response_cb_create(__fill_response_recv_cb, false, NULL);
- rpc_port_AutofillAppPort_autofill_auth_info_cb_h auth_info_cb = rpc_port_AutofillAppPort_autofill_auth_info_cb_create(__auth_info_recv_cb, false, NULL);
+ rpc_port_AutofillAppPort_autofill_fill_response_received_cb_h fill_response_received_cb = rpc_port_AutofillAppPort_autofill_fill_response_received_cb_create(__fill_response_recv_cb, false, NULL);
+ rpc_port_AutofillAppPort_autofill_auth_info_received_cb_h auth_info_received_cb = rpc_port_AutofillAppPort_autofill_auth_info_received_cb_create(__auth_info_recv_cb, false, NULL);
- int r = rpc_port_proxy_AutofillAppPort_invoke_Register(h, auth_info_cb, fill_response_cb);
+ int r = rpc_port_proxy_AutofillAppPort_invoke_Register(h, auth_info_received_cb, fill_response_received_cb);
if (r != 0)
LOGD("Failed to invoke Register");
LOGD("autofill deinitialize");
connection_callback = NULL;
- g_autofill_fill_response_cb = NULL;
- g_autofill_auth_info_cb = NULL;
+ g_autofill_fill_response_received_cb = NULL;
+ g_autofill_auth_info_received_cb = NULL;
if (rpc_h) {
rpc_port_proxy_AutofillAppPort_destroy(rpc_h);
#endif
#define LOG_TAG "AUTOFILL"
-autofill_auth_info_cb g_autofill_auth_info_cb = NULL;
+autofill_auth_info_received_cb g_autofill_auth_info_received_cb = NULL;
void *g_autofill_auth_info_data = NULL;
// Request autofill auth info
return AUTOFILL_ERROR_NONE;
}
-EXPORT_API int autofill_auth_info_set_callback(autofill_auth_info_cb callback, void *user_data)
+EXPORT_API int autofill_auth_info_set_received_cb(autofill_auth_info_received_cb callback, void *user_data)
{
if (!callback) {
LOGW("parameter is NULL");
return AUTOFILL_ERROR_INVALID_PARAMETER;
}
- g_autofill_auth_info_cb = callback;
+ g_autofill_auth_info_received_cb = callback;
g_autofill_auth_info_data = user_data;
return AUTOFILL_ERROR_NONE;
}
-EXPORT_API int autofill_auth_info_unset_callback(void)
+EXPORT_API int autofill_auth_info_unset_received_cb(void)
{
- g_autofill_auth_info_cb = NULL;
+ g_autofill_auth_info_received_cb = NULL;
g_autofill_auth_info_data = NULL;
return AUTOFILL_ERROR_NONE;
extern rpc_port_proxy_AutofillAppPort_h rpc_h;
-autofill_fill_response_cb g_autofill_fill_response_cb = NULL;
+autofill_fill_response_received_cb g_autofill_fill_response_received_cb = NULL;
void *g_autofill_fill_response_data = NULL;
EXPORT_API int autofill_fill_request(autofill_view_info_h vi)
return AUTOFILL_ERROR_NONE;
}
-EXPORT_API int autofill_fill_response_set_callback(autofill_fill_response_cb callback, void *user_data)
+EXPORT_API int autofill_fill_response_set_received_cb(autofill_fill_response_received_cb callback, void *user_data)
{
if (!callback) {
LOGW("parameter is NULL");
return AUTOFILL_ERROR_INVALID_PARAMETER;
}
- g_autofill_fill_response_cb = callback;
+ g_autofill_fill_response_received_cb = callback;
g_autofill_fill_response_data = user_data;
return AUTOFILL_ERROR_NONE;
}
-EXPORT_API int autofill_fill_response_unset_callback(void)
+EXPORT_API int autofill_fill_response_unset_received_cb(void)
{
- g_autofill_fill_response_cb = NULL;
+ g_autofill_fill_response_received_cb = NULL;
g_autofill_fill_response_data = NULL;
return AUTOFILL_ERROR_NONE;
* @remarks @a fill_response_h should not be freed and can be used only in the callback.
* @param[in] fill_response_h The autofill fill response handle
* @param[in] user_data The user data to be passed to the callback function
- * @see autofill_fill_response_set_callback()
+ * @see autofill_fill_response_set_received_cb()
*/
-typedef void (*autofill_fill_response_cb)(autofill_fill_response_h fill_response_h, void *user_data);
+typedef void (*autofill_fill_response_received_cb)(autofill_fill_response_h fill_response_h, void *user_data);
/**
* @brief Called when receiving the authentication information.
* @remarks @a auth_info should not be freed and can be used only in the callback.
* @param[in] auth_info The autofill authentication information handle
* @param[in] user_data The user data passed from the callback function
- * @see autofill_fill_response_set_callback()
+ * @see autofill_fill_response_set_received_cb()
*/
-typedef void (*autofill_auth_info_cb)(autofill_auth_info_h auth_info, void *user_data);
+typedef void (*autofill_auth_info_received_cb)(autofill_auth_info_h auth_info, void *user_data);
/**
* @brief Initializes autofill.
* @retval #AUTOFILL_ERROR_NONE No error
* @retval #AUTOFILL_ERROR_INVALID_PARAMETER Invalid parameter
*/
-int autofill_auth_info_set_callback(autofill_auth_info_cb callback, void *user_data);
+int autofill_auth_info_set_received_cb(autofill_auth_info_received_cb callback, void *user_data);
/**
* @brief Unsets the callback to receive the authentication information.
* @return 0 on success, otherwise a negative error value
* @retval #AUTOFILL_ERROR_NONE No error
*/
-int autofill_auth_info_unset_callback(void);
+int autofill_auth_info_unset_received_cb(void);
/**
* @brief Sends fill request to fill out each input form.
* @retval #AUTOFILL_ERROR_NONE No error
* @retval #AUTOFILL_ERROR_INVALID_PARAMETER Invalid parameter
*/
-int autofill_fill_response_set_callback(autofill_fill_response_cb callback, void *user_data);
+int autofill_fill_response_set_received_cb(autofill_fill_response_received_cb callback, void *user_data);
/**
* @brief Unsets the callback to receive autofill fill response.
* @return 0 on success, otherwise a negative error value
* @retval #AUTOFILL_ERROR_NONE No error
*/
-int autofill_fill_response_unset_callback(void);
+int autofill_fill_response_unset_received_cb(void);
/**
* @brief Sends the autofill save view info.
* @remarks @a vi should not be freed and can be used only in the callback.
* @param[in] vi The autofill view info handle
* @param[in] user_data The user data passed from the callback function
- * @see autofill_service_set_auth_info_request_cb()
+ * @see autofill_service_set_auth_info_requested_cb()
*/
-typedef void (*autofill_service_auth_info_request_cb)(autofill_view_info_h vi, void *user_data);
+typedef void (*autofill_service_auth_info_requested_cb)(autofill_view_info_h vi, void *user_data);
/**
* @brief Called when receiving fill request.
* @remarks @a vi should not be freed and can be used only in the callback.
* @param[in] vi The autofill view info handle
* @param[in] user_data The user data passed from the callback function
- * @see autofill_service_set_auth_info_request_cb()
+ * @see autofill_service_set_auth_info_requested_cb()
*/
-typedef void (*autofill_service_fill_request_cb)(autofill_view_info_h vi, void *user_data);
+typedef void (*autofill_service_fill_requested_cb)(autofill_view_info_h vi, void *user_data);
/**
* @brief Called when receiving commit request.
* @remarks @a vi should not be freed and can be used only in the callback.
* @param[in] vi The autofill save view info handle
* @param[in] user_data The user data passed from the callback function
- * @see autofill_service_set_commit_cb()
+ * @see autofill_service_set_commited_cb()
*/
-typedef void (*autofill_service_commit_cb)(autofill_save_view_info_h vi, void *user_data);
+typedef void (*autofill_service_commited_cb)(autofill_save_view_info_h vi, void *user_data);
/**
* @brief Initializes autofill service library.
* @retval #AUTOFILL_ERROR_NONE No error
* @retval #AUTOFILL_ERROR_INVALID_PARAMETER Invalid parameter
*/
-int autofill_service_set_auth_info_request_cb(autofill_service_auth_info_request_cb callback, void *user_data);
+int autofill_service_set_auth_info_requested_cb(autofill_service_auth_info_requested_cb callback, void *user_data);
/**
* @brief Unsets the callback to receive the request of authentication information.
* @return 0 on success, otherwise a negative error value
* @retval #AUTOFILL_ERROR_NONE No error
*/
-int autofill_service_unset_auth_info_request_cb(void);
+int autofill_service_unset_auth_info_requested_cb(void);
/**
* @brief Sends the authentication information.
* @retval #AUTOFILL_ERROR_NONE No error
* @retval #AUTOFILL_ERROR_INVALID_PARAMETER Invalid parameter
*/
-int autofill_service_set_fill_request_cb(autofill_service_fill_request_cb callback, void *user_data);
+int autofill_service_set_fill_requested_cb(autofill_service_fill_requested_cb callback, void *user_data);
/**
* @brief Unsets the callback to receive the fill request.
* @return 0 on success, otherwise a negative error value
* @retval #AUTOFILL_ERROR_NONE No error
*/
-int autofill_service_unset_fill_request_cb(void);
+int autofill_service_unset_fill_requested_cb(void);
/**
* @brief Sends the fill response.
* @retval #AUTOFILL_ERROR_NONE No error
* @retval #AUTOFILL_ERROR_INVALID_PARAMETER Invalid parameter
*/
-int autofill_service_set_commit_cb(autofill_service_commit_cb callback, void *user_data);
+int autofill_service_set_commited_cb(autofill_service_commited_cb callback, void *user_data);
/**
* @brief Unsets the callback to receive the commit request.
* @return 0 on success, otherwise a negative error value
* @retval #AUTOFILL_ERROR_NONE No error
*/
-int autofill_service_unset_commit_cb(void);
+int autofill_service_unset_commited_cb(void);
/**
* @}
typedef struct {
char *app_id;
- rpc_port_AutofillAppPort_autofill_auth_info_cb_h auth_info_cb;
- rpc_port_AutofillAppPort_autofill_fill_response_cb_h fill_response_cb;
+ rpc_port_AutofillAppPort_autofill_auth_info_received_cb_h auth_info_cb;
+ rpc_port_AutofillAppPort_autofill_fill_response_received_cb_h fill_response_received_cb;
} autofill_client_s;
static GList *__client_list = NULL;
}
static autofill_client_s *__create_client(const char *app_id,
- rpc_port_AutofillAppPort_autofill_auth_info_cb_h auth_info_cb,
- rpc_port_AutofillAppPort_autofill_fill_response_cb_h fill_response_cb)
+ rpc_port_AutofillAppPort_autofill_auth_info_received_cb_h auth_info_cb,
+ rpc_port_AutofillAppPort_autofill_fill_response_received_cb_h fill_response_received_cb)
{
LOGD("");
autofill_client_s *handle;
return NULL;
}
- rpc_port_AutofillAppPort_autofill_auth_info_cb_clone(auth_info_cb, &handle->auth_info_cb);
+ rpc_port_AutofillAppPort_autofill_auth_info_received_cb_clone(auth_info_cb, &handle->auth_info_cb);
if (!handle->auth_info_cb) {
LOGE("Out of memory");
free(handle->app_id);
return NULL;
}
- rpc_port_AutofillAppPort_autofill_fill_response_cb_clone(fill_response_cb, &handle->fill_response_cb);
+ rpc_port_AutofillAppPort_autofill_fill_response_received_cb_clone(fill_response_received_cb, &handle->fill_response_received_cb);
- if (!handle->fill_response_cb) {
+ if (!handle->fill_response_received_cb) {
LOGE("Out of memory");
free(handle->app_id);
- rpc_port_AutofillAppPort_autofill_auth_info_cb_destroy(handle->auth_info_cb);
+ rpc_port_AutofillAppPort_autofill_auth_info_received_cb_destroy(handle->auth_info_cb);
free(handle);
return NULL;
}
return;
if (handle->auth_info_cb)
- rpc_port_AutofillAppPort_autofill_auth_info_cb_destroy(handle->auth_info_cb);
+ rpc_port_AutofillAppPort_autofill_auth_info_received_cb_destroy(handle->auth_info_cb);
- if (handle->fill_response_cb)
- rpc_port_AutofillAppPort_autofill_fill_response_cb_destroy(handle->fill_response_cb);
+ if (handle->fill_response_received_cb)
+ rpc_port_AutofillAppPort_autofill_fill_response_received_cb_destroy(handle->fill_response_received_cb);
if (handle->app_id)
free(handle->app_id);
__remove_client(context);
}
-static int __message_register(rpc_port_stub_AutofillAppPort_context_h context, rpc_port_AutofillAppPort_autofill_auth_info_cb_h auth_info_cb, rpc_port_AutofillAppPort_autofill_fill_response_cb_h fill_response_cb, void *user_data)
+static int __message_register(rpc_port_stub_AutofillAppPort_context_h context, rpc_port_AutofillAppPort_autofill_auth_info_received_cb_h auth_info_cb, rpc_port_AutofillAppPort_autofill_fill_response_received_cb_h fill_response_received_cb, void *user_data)
{
LOGD("");
char *sender = NULL;
LOGD("sender(%s)", sender);
- client = __create_client(sender, auth_info_cb, fill_response_cb);
+ client = __create_client(sender, auth_info_cb, fill_response_received_cb);
free(sender);
if (!client)
autofill_client_s *sender_client = get_autofill_client(app_id);
if (sender_client)
- rpc_port_AutofillAppPort_autofill_fill_response_cb_invoke(sender_client->fill_response_cb, fill_response_h);
+ rpc_port_AutofillAppPort_autofill_fill_response_received_cb_invoke(sender_client->fill_response_received_cb, fill_response_h);
rpc_port_autofill_fill_response_destroy(fill_response_h);
autofill_client_s *sender_client = get_autofill_client(app_id);
if (sender_client)
- rpc_port_AutofillAppPort_autofill_auth_info_cb_invoke(sender_client->auth_info_cb, auth_info_h);
+ rpc_port_AutofillAppPort_autofill_auth_info_received_cb_invoke(sender_client->auth_info_cb, auth_info_h);
rpc_port_autofill_auth_info_destroy(auth_info_h);
{
LOGI("[__RPC_PORT__] connected");
- rpc_port_AutofillSvcPort_autofill_svc_fill_response_cb_h fill_response_cb_h = rpc_port_AutofillSvcPort_autofill_svc_fill_response_cb_create(__fill_response_recv_cb, false, NULL);
+ rpc_port_AutofillSvcPort_autofill_svc_fill_response_cb_h fill_response_received_cb_h = rpc_port_AutofillSvcPort_autofill_svc_fill_response_cb_create(__fill_response_recv_cb, false, NULL);
rpc_port_AutofillSvcPort_autofill_svc_auth_info_cb_h auth_info_cb_h = rpc_port_AutofillSvcPort_autofill_svc_auth_info_cb_create(__auth_info_recv_cb, false, NULL);
- int r = rpc_port_proxy_AutofillSvcPort_invoke_Register(h, auth_info_cb_h, fill_response_cb_h);
+ int r = rpc_port_proxy_AutofillSvcPort_invoke_Register(h, auth_info_cb_h, fill_response_received_cb_h);
if (r != 0)
LOGD("Failed to invoke Register");
}
#endif
#define LOG_TAG "AUTOFILL_SERVICE"
-static autofill_service_fill_request_cb g_autofill_service_fill_request_cb;
+static autofill_service_fill_requested_cb g_autofill_service_fill_requested_cb;
static void *g_autofill_service_fill_request_data = NULL;
-static autofill_service_auth_info_request_cb g_autofill_service_auth_info_request_cb;
+static autofill_service_auth_info_requested_cb g_autofill_service_auth_info_requested_cb;
static void *g_autofill_service_auth_info_request_data = NULL;
-static autofill_service_commit_cb g_autofill_service_commit_cb;
+static autofill_service_commited_cb g_autofill_service_commited_cb;
static void *g_autofill_service_commit_data = NULL;
rpc_port_AutofillSvcPort_autofill_svc_auth_info_cb_h g_auth_info_cb;
-rpc_port_AutofillSvcPort_autofill_svc_fill_response_cb_h g_fill_response_cb;
+rpc_port_AutofillSvcPort_autofill_svc_fill_response_cb_h g_fill_response_received_cb;
typedef struct {
char *app_id;
rpc_port_AutofillSvcPort_autofill_svc_auth_info_cb_h auth_info_cb;
- rpc_port_AutofillSvcPort_autofill_svc_fill_response_cb_h fill_response_cb;
+ rpc_port_AutofillSvcPort_autofill_svc_fill_response_cb_h fill_response_received_cb;
} autofill_svc_s;
static GList *__client_list = NULL;
rpc_port_autofill_svc_view_info_foreach_items(vi, __autofill_item_cb, view_info);
- if (g_autofill_service_auth_info_request_cb)
- g_autofill_service_auth_info_request_cb(view_info, g_autofill_service_auth_info_request_data);
+ if (g_autofill_service_auth_info_requested_cb)
+ g_autofill_service_auth_info_requested_cb(view_info, g_autofill_service_auth_info_request_data);
autofill_view_info_destroy(view_info);
rpc_port_autofill_svc_view_info_foreach_items(vi, __autofill_item_cb, view_info);
- if (g_autofill_service_fill_request_cb)
- g_autofill_service_fill_request_cb(view_info, g_autofill_service_auth_info_request_data);
+ if (g_autofill_service_fill_requested_cb)
+ g_autofill_service_fill_requested_cb(view_info, g_autofill_service_auth_info_request_data);
autofill_view_info_destroy(view_info);
rpc_port_autofill_svc_save_view_info_foreach_items(vi, __save_item_cb, view_info);
- if (g_autofill_service_commit_cb)
- g_autofill_service_commit_cb(view_info, g_autofill_service_commit_data);
+ if (g_autofill_service_commited_cb)
+ g_autofill_service_commited_cb(view_info, g_autofill_service_commit_data);
autofill_save_view_info_destroy(view_info);
static autofill_svc_s *__create_client(const char *app_id,
rpc_port_AutofillSvcPort_autofill_svc_auth_info_cb_h auth_info_cb,
- rpc_port_AutofillSvcPort_autofill_svc_fill_response_cb_h fill_response_cb)
+ rpc_port_AutofillSvcPort_autofill_svc_fill_response_cb_h fill_response_received_cb)
{
LOGD("");
autofill_svc_s *handle;
return NULL;
}
- rpc_port_AutofillSvcPort_autofill_svc_fill_response_cb_clone(fill_response_cb, &handle->fill_response_cb);
+ rpc_port_AutofillSvcPort_autofill_svc_fill_response_cb_clone(fill_response_received_cb, &handle->fill_response_received_cb);
- if (!handle->fill_response_cb) {
+ if (!handle->fill_response_received_cb) {
LOGE("Out of memory");
free(handle->app_id);
rpc_port_AutofillSvcPort_autofill_svc_auth_info_cb_destroy(handle->auth_info_cb);
if (handle->auth_info_cb)
rpc_port_AutofillSvcPort_autofill_svc_auth_info_cb_destroy(handle->auth_info_cb);
- if (handle->fill_response_cb)
- rpc_port_AutofillSvcPort_autofill_svc_fill_response_cb_destroy(handle->fill_response_cb);
+ if (handle->fill_response_received_cb)
+ rpc_port_AutofillSvcPort_autofill_svc_fill_response_cb_destroy(handle->fill_response_received_cb);
if (handle->app_id)
free(handle->app_id);
free(sender);
}
-static int __message_register(rpc_port_stub_AutofillSvcPort_context_h context, rpc_port_AutofillSvcPort_autofill_svc_auth_info_cb_h auth_info_cb, rpc_port_AutofillSvcPort_autofill_svc_fill_response_cb_h fill_response_cb, void *user_data)
+static int __message_register(rpc_port_stub_AutofillSvcPort_context_h context, rpc_port_AutofillSvcPort_autofill_svc_auth_info_cb_h auth_info_cb, rpc_port_AutofillSvcPort_autofill_svc_fill_response_cb_h fill_response_received_cb, void *user_data)
{
LOGD("");
char *sender = NULL;
LOGD("sender(%s)", sender);
autofill_svc_s *client;
- client = __create_client(sender, auth_info_cb, fill_response_cb);
+ client = __create_client(sender, auth_info_cb, fill_response_received_cb);
free(sender);
if (!client)
return -1;
rpc_port_AutofillSvcPort_autofill_svc_auth_info_cb_clone(auth_info_cb, &g_auth_info_cb);
- rpc_port_AutofillSvcPort_autofill_svc_fill_response_cb_clone(fill_response_cb, &g_fill_response_cb);
+ rpc_port_AutofillSvcPort_autofill_svc_fill_response_cb_clone(fill_response_received_cb, &g_fill_response_received_cb);
- LOGD("auth info : %p, fill response : %p", g_auth_info_cb, g_fill_response_cb);
+ LOGD("auth info : %p, fill response : %p", g_auth_info_cb, g_fill_response_received_cb);
__client_list = g_list_append(__client_list, client);
return AUTOFILL_ERROR_NONE;
}
-EXPORT_API int autofill_service_set_auth_info_request_cb(autofill_service_auth_info_request_cb callback, void *user_data)
+EXPORT_API int autofill_service_set_auth_info_requested_cb(autofill_service_auth_info_requested_cb callback, void *user_data)
{
if (!callback)
return AUTOFILL_ERROR_INVALID_PARAMETER;
- g_autofill_service_auth_info_request_cb = callback;
+ g_autofill_service_auth_info_requested_cb = callback;
g_autofill_service_auth_info_request_data = user_data;
return AUTOFILL_ERROR_NONE;
}
-EXPORT_API int autofill_service_unset_auth_info_request_cb()
+EXPORT_API int autofill_service_unset_auth_info_requested_cb()
{
- g_autofill_service_auth_info_request_cb = NULL;
+ g_autofill_service_auth_info_requested_cb = NULL;
g_autofill_service_auth_info_request_data = NULL;
return AUTOFILL_ERROR_NONE;
}
// fill request
-EXPORT_API int autofill_service_set_fill_request_cb(autofill_service_fill_request_cb callback, void *user_data)
+EXPORT_API int autofill_service_set_fill_requested_cb(autofill_service_fill_requested_cb callback, void *user_data)
{
if (!callback)
return AUTOFILL_ERROR_INVALID_PARAMETER;
- g_autofill_service_fill_request_cb = callback;
+ g_autofill_service_fill_requested_cb = callback;
g_autofill_service_fill_request_data = user_data;
return AUTOFILL_ERROR_NONE;
}
-EXPORT_API int autofill_service_unset_fill_request_cb()
+EXPORT_API int autofill_service_unset_fill_requested_cb()
{
- g_autofill_service_fill_request_cb = NULL;
+ g_autofill_service_fill_requested_cb = NULL;
g_autofill_service_fill_request_data = NULL;
return AUTOFILL_ERROR_NONE;
rpc_port_autofill_svc_response_group_destroy(res_group_h);
}
- ret = rpc_port_AutofillSvcPort_autofill_svc_fill_response_cb_invoke(g_fill_response_cb, fill_response_h);
+ ret = rpc_port_AutofillSvcPort_autofill_svc_fill_response_cb_invoke(g_fill_response_received_cb, fill_response_h);
rpc_port_autofill_svc_fill_response_destroy(fill_response_h);
return ret;
}
-EXPORT_API int autofill_service_set_commit_cb(autofill_service_commit_cb callback, void *user_data)
+EXPORT_API int autofill_service_set_commited_cb(autofill_service_commited_cb callback, void *user_data)
{
if (!callback)
return AUTOFILL_ERROR_INVALID_PARAMETER;
- g_autofill_service_commit_cb = callback;
+ g_autofill_service_commited_cb = callback;
g_autofill_service_commit_data = user_data;
return AUTOFILL_ERROR_NONE;
}
-EXPORT_API int autofill_service_unset_commit_cb(void)
+EXPORT_API int autofill_service_unset_commited_cb(void)
{
- g_autofill_service_commit_cb = NULL;
+ g_autofill_service_commited_cb = NULL;
g_autofill_service_commit_data = NULL;
return AUTOFILL_ERROR_NONE;
}
interface AutofillAppPort {
- void autofill_auth_info_cb(autofill_auth_info auth_info) delegate;
- void autofill_fill_response_cb(autofill_fill_response response) delegate;
- int Register(autofill_auth_info_cb auth_info_cb, autofill_fill_response_cb fill_response_cb);
+ void autofill_auth_info_received_cb(autofill_auth_info auth_info) delegate;
+ void autofill_fill_response_received_cb(autofill_fill_response response) delegate;
+ int Register(autofill_auth_info_received_cb auth_info_cb, autofill_fill_response_received_cb fill_response_cb);
void Unregister() async;
int request_auth_info(autofill_view_info vi);