summaryrefslogtreecommitdiffstats
path: root/discover/device-handler.h
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2013-09-27 14:16:10 +0800
committerJeremy Kerr <jk@ozlabs.org>2013-10-01 12:51:59 +0800
commite28232f4b8941ccd151abaaae3f18c32400436f3 (patch)
tree2a5b9da5141d64f47fa4eea912ecad39e7e670c6 /discover/device-handler.h
parentbd6e384a0ba2c1464d9270baf829fea932b88224 (diff)
downloadtalos-petitboot-e28232f4b8941ccd151abaaae3f18c32400436f3.tar.gz
talos-petitboot-e28232f4b8941ccd151abaaae3f18c32400436f3.zip
discover: Add test_data member to struct discover_context
We have parsers passing discover_contexts around, which we want to hook into the test framework. Add a void * member, which the test code can use to reference the test. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'discover/device-handler.h')
-rw-r--r--discover/device-handler.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/discover/device-handler.h b/discover/device-handler.h
index 9d477db..5dbc349 100644
--- a/discover/device-handler.h
+++ b/discover/device-handler.h
@@ -64,6 +64,7 @@ struct discover_context {
struct list boot_options;
struct pb_url *conf_url;
enum conf_method method;
+ void *test_data;
};
struct device_handler *device_handler_init(struct discover_server *server,
OpenPOWER on IntegriCloud