static void tapi_connect(DBusConnection *conn, void *user_data) { DBG(""); modem_hash = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, remove_modem); if (modem_hash == NULL) return; cert_hash = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, remove_cert); if (cert_hash == NULL) return; get_modems(); }
static void ofono_connect(DBusConnection *conn, void *user_data) { g_print("starting telephony interface\n"); ofono_running = TRUE; modem_list = g_hash_table_new_full(g_str_hash, g_str_equal, NULL, destroy_modem); modem_added_watch = g_dbus_add_signal_watch(conn, NULL, NULL, OFONO_MANAGER_INTERFACE, "ModemAdded", modem_added, NULL, NULL); modem_removed_watch = g_dbus_add_signal_watch(conn, NULL, NULL, OFONO_MANAGER_INTERFACE, "ModemRemoved", modem_removed, NULL, NULL); modem_changed_watch = g_dbus_add_signal_watch(conn, NULL, NULL, OFONO_MODEM_INTERFACE, "PropertyChanged", modem_changed, NULL, NULL); get_modems(conn); }