return TRUE;
}
+static gboolean _set_telephony_ready(gpointer data)
+{
+ struct custom_data *ctx = data;
+ static Storage *strg;
+ gboolean rv;
+
+ strg = tcore_server_find_storage(ctx->server, "vconf");
+ rv = tcore_storage_set_bool(strg, STORAGE_KEY_TELEPHONY_READY, TRUE);
+ if(rv == FALSE){
+ err("Set Telephony Ready (TRUE) to registry - FAIL");
+ } else {
+ dbg("Set Telephony Ready (TRUE) to registry - SUCCESS");
+ }
+ return FALSE;
+}
+
static void on_bus_acquired(GDBusConnection *conn, const gchar *name, gpointer user_data)
{
struct custom_data *ctx = user_data;
TelephonyManager *mgr;
- static Storage *strg;
- gboolean rv;
info("DBUS Registered");
dbg("Aquire DBUS - COMPLETE");
- /* Set Telephony Ready registry
- *
- * At this point we can convey upper Layer that Telephony is Ready.
- */
- strg = tcore_server_find_storage(ctx->server, "vconf");
- rv = tcore_storage_set_bool(strg, STORAGE_KEY_TELEPHONY_READY, TRUE);
- if(rv == FALSE){
- err("Set Telephony Ready (TRUE) to registry - FAIL");
- } else {
- dbg("Set Telephony Ready (TRUE) to registry - SUCCESS");
- }
-
/* Refresh Object */
refresh_object(ctx);
+
+ /* Telephony ready vconf key set in idle */
+ g_idle_add(_set_telephony_ready, ctx);
}
struct tcore_communitor_operations ops = {