The file descriptor is stored after the emulator is registered.
---
plugins/hfp_ag_bluez5.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/plugins/hfp_ag_bluez5.c b/plugins/hfp_ag_bluez5.c
index ba84d90..e53709d 100644
--- a/plugins/hfp_ag_bluez5.c
+++ b/plugins/hfp_ag_bluez5.c
@@ -113,6 +113,8 @@ static DBusMessage *profile_new_connection(DBusConnection
*conn,
}
ofono_emulator_register(em, fd);
+ g_hash_table_insert(connection_hash, g_strdup(device),
+ GINT_TO_POINTER(fd));
return dbus_message_new_method_return(msg);
--
1.7.9.5
_______________________________________________
ofono mailing list
[email protected]
https://lists.ofono.org/mailman/listinfo/ofono