Add service statistic data structure
authorDaniel Wagner <daniel.wagner@bmw-carit.de>
Wed, 30 Jun 2010 11:59:51 +0000 (13:59 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Wed, 30 Jun 2010 17:26:43 +0000 (19:26 +0200)
commit14236b2a2b6121963d1fc1e1eead753a380498f2
tree95ab0fcacea598710770b11948fb843147b29d61
parente4fb1ca873f840acd1e0a72a6f266843f65854ae
Add service statistic data structure

The static values are maintained in the Service object and exposed
through simple accessors.

When a Service object enters the ready state it registers itself at
Counter.

If the Service object is leaving the ready state it will de-register
itself from Counter and consequently it will not be updated anymore.

The user can shorten the update interval when he registers a Counter
object with a shorter interval value.

The statistic is stored in the profile file.
Only the current value is stored, no history.

If there is not Counter object the stats wont be upated. This short
coming will be addressed by the 'data threshold netfilter module'
patches.
doc/service-api.txt
src/connman.h
src/service.c