shl: register: add destroy callback
authorDavid Herrmann <dh.herrmann@googlemail.com>
Thu, 3 Jan 2013 13:00:57 +0000 (14:00 +0100)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Thu, 3 Jan 2013 13:00:57 +0000 (14:00 +0100)
commit327c7f0690fa4e9e7b0d469d35c80b4fb8932382
tree1020c21150139205a84428a62a773ada9d176e18
parent0248318732de2f90128d7cc85a7f14c18cc499a8
shl: register: add destroy callback

The new destroy callback is called whenever an entries last reference is
dropped. This will allow modules to keep reference of its code users.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
src/shl_register.h