Hi Patrik, On Fri, Jul 15, 2011 at 03:13:15PM +0300, [email protected] wrote: > From: Patrik Flykt <[email protected]> > > When a service is connected, remember whether it was the first > one in the session service list. As the session service list is > kept sorted, the most desired service is placed first. When the > service changes, check whether there are better services available > and try to connect them. > --- > src/session.c | 8 +++++--- > 1 files changed, 5 insertions(+), 3 deletions(-) > > diff --git a/src/session.c b/src/session.c > index fb12d3c..417b698 100644 > --- a/src/session.c > +++ b/src/session.c > @@ -69,6 +69,7 @@ struct service_entry { > struct connman_service *service; > const char *ifname; > const char *bearer; > + connman_bool_t optimal; /* service is the best one requested */
We have a StayConnected setting in the API. So maybe instead of calling this one we could use the stay_connected name? cheers, daniel _______________________________________________ connman mailing list [email protected] http://lists.connman.net/listinfo/connman
