ONLINE and LOGIN are also "connected" states.
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>
Fri, 2 Apr 2010 18:56:38 +0000 (20:56 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Fri, 2 Apr 2010 19:15:29 +0000 (21:15 +0200)
commit59a8daa319192cb43524d3d79851afa8116060de
tree610348c2a75f424649a695e62f7641b21cf9b33b
parent312fefcca61385943c2231de89dddf6aec773cc3
ONLINE and LOGIN are also "connected" states.

Code was initially done with CONNMAN_SERVICE_STATE_READY being the
only valid connected state, but later on CONNMAN_SERVICE_STATE_LOGIN
and CONNMAN_SERVICE_STATE_ONLINE were introduced, breaking couple of
functions that assumed the old behavior.

This patch creates the is_connected() function, similar to
is_connecting() and uses it instead.

__connman_service_indicate_state() checks just for ONLINE, as
requested by Marcel.
src/service.c