]> git.ozlabs.org Git - petitboot/commit
discover: Make device handler a little more testable
authorJeremy Kerr <jk@ozlabs.org>
Fri, 3 May 2013 06:31:55 +0000 (14:31 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Wed, 15 May 2013 07:33:15 +0000 (15:33 +0800)
commitaed58c439015f7f7372d9ee70c767ed9dd366dd7
tree206135b9126d82b66425ebe0e3d8e5753bdac55a
parentd9a54dc81723f83a21e24aa362a7a356d266e942
discover: Make device handler a little more testable

This change moves some of the device-handler code into an #ifdef-ed
section, so we can easily drop the stuff that's not required for
testing.

Although the change is quite large, most of it is moving entire
functions around.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
discover/device-handler.c