static GList *__client_list = NULL;
static Ecore_Timer *g_connect_timer = NULL;
-static bool g_connected = false;
+static bool g_autofill_service_connected = false;
static bool connect_service();
static void terminate_autofill_service();
char *sender = NULL;
char *view_id = NULL;
- if (!g_connected) {
+ if (!g_autofill_service_connected) {
LOGW("Not connected to autofill service");
return 0;
}
char *sender = NULL;
char *view_id = NULL;
- if (!g_connected) {
+ if (!g_autofill_service_connected) {
LOGW("Not connected to autofill service");
return 0;
}
char *sender = NULL;
char *view_id = NULL;
- if (!g_connected) {
+ if (!g_autofill_service_connected) {
LOGW("Not connected to autofill service");
return 0;
}
char *view_id = NULL;
char *view_title = NULL;
- if (!g_connected) {
+ if (!g_autofill_service_connected) {
LOGW("Not connected to autofill service");
return 0;
}
free(app_id);
}
-static void __on_connected(rpc_port_proxy_AutofillSvcPort_h h, void *user_data)
+static void __on_autofill_service_connected(rpc_port_proxy_AutofillSvcPort_h h, void *user_data)
{
LOGI("Autofill service connected");
if (r != 0)
LOGW("Failed to invoke Register");
- g_connected = true;
+ g_autofill_service_connected = true;
}
static Eina_Bool connect_timer_cb(void *data)
error_info_cb_h = NULL;
}
- g_connected = false;
+ g_autofill_service_connected = false;
// try to connect again
if (!connect_service()) {
}
//LCOV_EXCL_START
-static void __on_disconnected(rpc_port_proxy_AutofillSvcPort_h h, void *user_data)
+static void __on_autofill_service_disconnected(rpc_port_proxy_AutofillSvcPort_h h, void *user_data)
{
LOGW("Autofill service is disconnected");
retry_connect_service();
}
-static void __on_rejected(rpc_port_proxy_AutofillSvcPort_h h, void *user_data)
+static void __on_autofill_service_rejected(rpc_port_proxy_AutofillSvcPort_h h, void *user_data)
{
LOGW("Rejected to connect autofill service");
auth_info_cb_h = NULL;
error_info_cb_h = NULL;
- g_connected = false;
+ g_autofill_service_connected = false;
}
}
bool sys_config = false;
rpc_port_proxy_AutofillSvcPort_callback_s rpc_callback = {
- .connected = __on_connected,
- .disconnected = __on_disconnected,
- .rejected = __on_rejected
+ .connected = __on_autofill_service_connected,
+ .disconnected = __on_autofill_service_disconnected,
+ .rejected = __on_autofill_service_rejected
};
if (svc_rpc_h) {
return true;
}
- if (g_connected) {
+ if (g_autofill_service_connected) {
LOGI("already connected\n");
return true;
}