Re: [connman] CreatDevice signal should be emitted at function create_stored_device_from_profiles() in src/adapter.c

Xu, Martin
2009-04-17T00:43:46Z

>IMO the correct way of doing it is to via AdapterAdded signal and then
>GetProperties, which in most cases is what you really should do to
>discover all devices. If you make stored devices to emit signals you
>will probably just slow down the boot.
I know the way you mentioned, but this way has some issue. You know there is a time interval between AdapterAdded and DeviceCreated. So on ConnMann when I get AdapterAdded signal and try to use GetProperties to get the device, I found that the Device Array is empty, because at that time the Device has not been created. So no further DeviceCreated signle, ConnMan can not handle the DeviceCreated event any more.
I do not think that send a signal will effect the boot time greatly.
_______________________________________________
connman mailing list
connman@moblin.org