discover: parse boot message from incoming ACTION_BOOT messages
authorJeremy Kerr <jk@ozlabs.org>
Wed, 6 Mar 2013 09:08:05 +0000 (17:08 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Mon, 15 Apr 2013 07:42:27 +0000 (15:42 +0800)
commitceefe00bf8c1498dfc2118d2b3666f67f91bb956
tree698eda969d88563e4851fc3a96a99b0d3d9936ce
parenta2f7b111a2073a4afaf75499ac4c2732b71ea801
discover: parse boot message from incoming ACTION_BOOT messages

Add a function in the protocol code to deserialise a boot message, and
use it to extract a boot_command in the discover server.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
discover/discover-server.c
lib/pb-protocol/pb-protocol.c
lib/pb-protocol/pb-protocol.h