]> sigrok.org Git - sigrok-cli.git/commitdiff
anykey: Use GLib I/O channel watch
authorDaniel Elstner <redacted>
Fri, 9 Oct 2015 16:26:00 +0000 (18:26 +0200)
committerDaniel Elstner <redacted>
Fri, 9 Oct 2015 18:33:04 +0000 (20:33 +0200)
Watch for input on a GLib I/O channel using the standard GLib main
loop API instead of injecting an FD event source into the sigrok
session loop.

Also run the session in a main loop created by sigrok-cli instead
of using sr_session_run(). This is mainly for demonstration; the
GLib I/O watch change would work even with sr_session_run() since
it is using the same main context in this case.


No differences found