]> sigrok.org Git - libsigrok.git/commit
sr: session: Close a device when it is removed from a session
authorLars-Peter Clausen <redacted>
Thu, 5 Jul 2012 19:15:07 +0000 (21:15 +0200)
committerBert Vermeulen <redacted>
Wed, 11 Jul 2012 21:28:35 +0000 (23:28 +0200)
commited229aaa8ff66116967f75112be953940d4a3149
tree8878680d0b25e1ac5d376dece5434dc33eb6abef
parent615183ea163f805af8589576c173769b4adba7f1
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 <redacted>
session.c