]> sigrok.org Git - libsigrok.git/commit
session: Make sr_session_run() optional
authorDaniel Elstner <redacted>
Fri, 9 Oct 2015 00:35:47 +0000 (02:35 +0200)
committerDaniel Elstner <redacted>
Sat, 17 Oct 2015 15:40:42 +0000 (17:40 +0200)
commit5de0fc55a6ac8da084caf427f6131482a40855dc
tree11f3153e1773cab600e0b5f8930b65cd519550fa
parent45d835edc7f1ce505245056021216d4bdc8a0ae0
session: Make sr_session_run() optional

Introduce a new API function sr_session_stopped_callback_set()
which can be used to receive notification when a session stops
running. This allows applications to integrate libsigrok event
processing with their own main loop, instead of blocking in
sr_session_run().
include/libsigrok/libsigrok.h
include/libsigrok/proto.h
src/libsigrok-internal.h
src/session.c