From: Jeremy Kerr Date: Thu, 19 Sep 2013 09:16:53 +0000 (+0800) Subject: discover: Remove unnecessary event passing X-Git-Tag: v1.0.0~491 X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=commitdiff_plain;h=f611bde3f182e9a4befb48a0160d1831708aca67;hp=f611bde3f182e9a4befb48a0160d1831708aca67 discover: Remove unnecessary event passing Currently, we pass "events" between the udev, user-event and device-handler layers. These events all get sent through device_handler_event, then de-multiplexed to an appropriate handler, depending on their source. Instead, just export relevant device_handler functions, and have the (old) event sources call these functions directly. This also means we can include a lot more of the device hander code in the parser tests. Signed-off-by: Jeremy Kerr ---