discover: Add safe mode
authorJeremy Kerr <jk@ozlabs.org>
Mon, 21 Jul 2014 10:18:35 +0000 (18:18 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Tue, 22 Jul 2014 01:04:59 +0000 (09:04 +0800)
commitd2b12ddb905a74fa6b2e454142b0b9f71fd99398
treeef6ab12a56aa0dc9fc0f6b35795ed2b9f01c0411
parent3c49b3fa6e6038fd226253e71cb082e09b4ff7a5
discover: Add safe mode

Safe mode configures the discover server to not start any device
parsing; this can be used to diagnose any problems with early device
handing.

In safe mode, we don't initialise any of the device sources - udev,
network and user events are disabled.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
discover/device-handler.c
discover/platform.c
lib/pb-config/pb-config.c
lib/pb-protocol/pb-protocol.c
lib/types/types.h