[PATCH v2 0/2] Implement ServicesAdded and ServicesRemoved

patrik.flykt at linux.intel.com patrik.flykt at linux.intel.com
Wed Feb 8 01:09:49 PST 2012

From: Patrik Flykt <patrik.flykt at linux.intel.com>


This patch set implements ServicesAdded and ServicesRemoved signals
in Manager API. The second version does a proper cleanup on service
shutdown and makes calls to __connman_connection_update_gateway().

The services added and removed signals follow the respective ConnMan
notifiers, and are implemented by collecting the services into separate
lists. This allows adding multiple services into one D-Bus signal and
enables ordering so that the ServicesRemoved signal is sent before
ServicesAdded. When the service is removed, a check is made whether
the service was already included in the added list. If so, the service
is removed from that list. There is a short delay of 100ms between
adding or removing services until the signal is sent. This is to be
more efficient and trying to pack as many services in one signal as

The above is all implemented in patch 01.

Patch 02 removes the 'Services' property and associated helper functions
from the Manager API.



Patrik Flykt (2):
  service: Implement ServicesAdded and ServicesRemoved signals
  service: Remove 'Services' property from Manager D-Bus API

 src/connman.h |    1 -
 src/manager.c |    5 +-
 src/service.c |  221 ++++++++++++++++++++++++++++++++++++++++-----------------
 3 files changed, 158 insertions(+), 69 deletions(-)


More information about the connman mailing list