Update service statistics
authorDaniel Wagner <daniel.wagner@bmw-carit.de>
Wed, 30 Jun 2010 17:22:55 +0000 (19:22 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Wed, 30 Jun 2010 17:28:16 +0000 (19:28 +0200)
commit5de3cf4ef49b9a66866bd8bd0cdcfaaf767577c9
tree18aff7ae941d9716f51eb0fcaa3091c985f0aca9
parent14236b2a2b6121963d1fc1e1eead753a380498f2
Update service statistics

Instead of collecting statistics on interface name base and storing it
local in counter.c, update the Service object.

counter.c maps interface names to Service objects.
The assumption is made that there is a 1:1 mapping between Service objects
and interface name.

A Counter object will only show Service object statistics for services in
the ready state. There is no interface (yet) for retrieving information on
Service objects in idle/failure/configuration/.. state.
doc/counter-api.txt
src/connman.h
src/counter.c
src/ipconfig.c
src/service.c
test/test-counter