path: root/discover/parser.h
diff options
authorJeremy Kerr <>2013-03-11 17:08:57 +0800
committerJeremy Kerr <>2013-04-16 12:57:15 +0800
commit92806cf6bc15f680f75879288df12ea9a87e4608 (patch)
tree4a6650d8881dda3c6ee321d1e3350edc646c4baf /discover/parser.h
parent7b396a45d43cc464539cc25799ddda3a27339bd8 (diff)
discover: Separate temporary and permanent device data
At present, we keep both permanent (eg links/n_links) and temporary (event) data in struct discover_context. This change makes discover_context a temporary structure, just used during actual device discovery. Once discovery is complete, the permanent data (discover_device) is "committed" to the device handler. Signed-off-by: Jeremy Kerr <>
Diffstat (limited to 'discover/parser.h')
1 files changed, 1 insertions, 2 deletions
diff --git a/discover/parser.h b/discover/parser.h
index a80d1b5..9f98368 100644
--- a/discover/parser.h
+++ b/discover/parser.h
@@ -21,7 +21,6 @@ enum generic_icon_type {
void parser_init(void);
void iterate_parsers(struct discover_context *ctx);
-struct boot_option *parse_user_event(struct device *device,
- struct event *event);
+int parse_user_event(struct discover_context *ctx, struct event *event);
#endif /* _PARSER_H */
OpenPOWER on IntegriCloud