bindings: python: change the return value of gpiod_LineBulk_event_wait()
authorBartosz Golaszewski <bartekgola@gmail.com>
Mon, 14 May 2018 09:20:23 +0000 (11:20 +0200)
committerBartosz Golaszewski <bartekgola@gmail.com>
Mon, 14 May 2018 10:01:13 +0000 (12:01 +0200)
commit1e47c4d6eac85a833152c5194fd50521a723f735
tree1c4d3de2a0af44a580597fec52f24b65a7124041
parent15a623a7d29014e9c03f37be2ba45a2a7e31971f
bindings: python: change the return value of gpiod_LineBulk_event_wait()

gpiod_Line_event_wait() works differently than its LineBulk
counterpart. While the latter returns either a list of lines or False,
the former returns True if an event occurred on this line or False
otherwise.

False is not a good counterpart for an actual object, so instead return
None if no events occurred on any of the monitored lines.

Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
bindings/python/gpiodmodule.c