sr: session: Close a device when it is removed from a session
authorLars-Peter Clausen <lars@metafoo.de>
Thu, 5 Jul 2012 19:15:07 +0000 (21:15 +0200)
committerBert Vermeulen <bert@biot.com>
Wed, 11 Jul 2012 21:28:35 +0000 (23:28 +0200)
commit6522415610a9f75b039de5e5c04264774541f080
treee201c3aefc2a8804b8cbc244a24cf23ac0482418
parent0aa69fbde5484bef4c6bc5939253cd7331a6485a
sr: session: Close a device when it is removed from a session

A device is opened when it is added to a session, in the same fashion it should
be closed again when it is removed from a session.

Also remove all still attached devices from a session when the session is
destroyed.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
libsigrok/session.c