session: Use service iterator instead of match/creation callbacks
authorDaniel Wagner <daniel.wagner@bmw-carit.de>
Fri, 7 Jun 2013 11:41:10 +0000 (13:41 +0200)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Mon, 10 Jun 2013 06:48:22 +0000 (09:48 +0300)
commit934226962d3caaa538e1424eba9364915bbe7278
tree6071f8ac7e5808976dc4e66e23766b16df4b3325
parent2386b677cb7223094b3348d852514df06d39b16b
session: Use service iterator instead of match/creation callbacks

When a new session is created we need to get the initial list
of services which match the session AllowedBearers criteria. As soon
the session is running add or removed services are tracked via the
notifier interface.

We concluded that exposing all the services is not really necessary
and therefore we are using currently two callbacks to get the initial
list. That exposes implementation details from session to service, that
is GSequence. We also need to expose the type 'struct service_entry'.

Instead doing so we are using an iterator and keep all the
implementation details in session.c.
src/connman.h
src/service.c
src/session.c