]> sigrok.org Git - libsigrok.git/commit - hardware/demo/demo.c
sr: session/demo: Remove Windows specific hack
authorLars-Peter Clausen <redacted>
Sat, 30 Jun 2012 18:54:45 +0000 (20:54 +0200)
committerUwe Hermann <redacted>
Wed, 4 Jul 2012 23:41:01 +0000 (01:41 +0200)
commit249ae2be8f0e5132d601ab431ac8783b5b1c7439
treefb49da14171bb44e832143977e7f2c82b4b93912
parentaac0ea256327bdff8f2a98bf62c7ac6a42dd1e44
sr: session/demo: Remove Windows specific hack

The session and demo device code contain a hack to make the demo device work on
Windows. This was neccessary since polling on windows requires special handling
and we can not just pass in the raw fd to poll.

With the previous patches which added support for non-fd based event sources
this hack is no longer required. The patch moves the GIOChannels used by the
demo device to the demo device context and uses sr_session_source_add_channel
to register a source for the channels instead of using the raw pipe fds.

Signed-off-by: Lars-Peter Clausen <redacted>
hardware/demo/demo.c
session.c