On Tue, 2015-03-31 at 08:32 -0500, Janakiram Sistla wrote:
> Yes readdir returns all the files. But in this case we were seeing
> that it returns the files in a random order. So when we are trying to
> read the saved services it doesnt return in the order in which it is
> saved nor in any sorted order. we want to minimize sorting currently
> being done at UI layer.
The order in which readdir() returns the services from file has nothing
to do with the order that ConnMan presents them in. ConnMan orders the
services properly in the ServicesChanged signal. When that order is
followed, the UI need not sort anything.
For readdir() behavior see the appropriate man page.
HTH,
Patrik
_______________________________________________
connman mailing list
[email protected]
https://lists.connman.net/mailman/listinfo/connman