common: Fix issues in disposable object.
authorAmarnath Valluri <amarnath.valluri@linux.intel.com>
Thu, 6 Jun 2013 08:15:43 +0000 (11:15 +0300)
committerJussi Laako <jussi.laako@linux.intel.com>
Fri, 7 Jun 2013 13:36:46 +0000 (16:36 +0300)
commit9d755f3730967fd6c2b22780ded6e28bb0246e0f
tree458c0a130dc847ff3029e01d1257dd742683dad1
parentc8761e6b37a34f37d510f0767f5fca1cb6d6cf72
common: Fix issues in disposable object.

Now 'auto_dispose' in Disposable object is a counter where it gets incremented
when called gsignond_disposable_set_auto_dispose() with TRUE, or decremented
when called with FALSE. Auto disposable timeout starts when the counter reaches
to 0, i.e, no other keep object requests.
src/common/gsignond-disposable.c
src/daemon/dbus/gsignond-dbus-identity-adapter.c
test/daemon/daemon-test.c