From: Daniel Elstner Date: Fri, 9 Oct 2015 16:26:00 +0000 (+0200) Subject: anykey: Use GLib I/O channel watch X-Git-Tag: sigrok-cli-0.6.0~5 X-Git-Url: https://sigrok.org/gitweb/?p=sigrok-cli.git;a=commitdiff_plain;h=fd65ec4c9c349a9ed240fedf69946abea7afd047;hp=fd65ec4c9c349a9ed240fedf69946abea7afd047 anykey: Use GLib I/O channel watch 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. ---