Hi Frédéric,

> @@ -82,6 +93,12 @@ static DBusMessage 
> *hfp_ag_agent_new_connection(DBusConnection *conn,
>               return __ofono_error_failed(msg);
>  
>       ofono_emulator_register(em, fd);
> +     audio = bluetooth_set_audio_management(em, path, features);
> +
> +     io = g_io_channel_unix_new(fd);
> +     g_io_add_watch_full(io, G_PRIORITY_HIGH,
> +                             G_IO_HUP | G_IO_ERR | G_IO_NVAL, client_event,
> +                             audio, NULL);

It might be better to register to atom removal rather than an IO watch.

>  
>       return dbus_message_new_method_return(msg);
>  }

Regards,
-Denis
_______________________________________________
ofono mailing list
[email protected]
http://lists.ofono.org/listinfo/ofono

Reply via email to