summaryrefslogtreecommitdiffstats
path: root/discover/parser-utils.h
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2009-01-02 16:34:18 +0900
committerJeremy Kerr <jk@ozlabs.org>2009-01-02 16:34:18 +0900
commitce5eab024583af5a4725503bad6ed2aee452b1aa (patch)
tree534753bfa7fd65f6c173f62e75995adc6376ff9f /discover/parser-utils.h
parentb118597194815910897ccf86d77b8b5a066adf5a (diff)
downloadtalos-petitboot-ce5eab024583af5a4725503bad6ed2aee452b1aa.tar.gz
talos-petitboot-ce5eab024583af5a4725503bad6ed2aee452b1aa.zip
Hook up parsers to device discovery
Iterate the parsers from the device handler on an add event. Initial change to just the kboot parser. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'discover/parser-utils.h')
-rw-r--r--discover/parser-utils.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/discover/parser-utils.h b/discover/parser-utils.h
new file mode 100644
index 0000000..e82e3f9
--- /dev/null
+++ b/discover/parser-utils.h
@@ -0,0 +1,17 @@
+#ifndef PARSER_UTILS_H
+#define PARSER_UTILS_H
+
+#include "parser.h"
+
+#define streq(a,b) (!strcasecmp((a),(b)))
+
+#define artwork_pathname(file) (PKG_SHARE_DIR "/artwork/" file)
+
+void device_add_boot_option(struct device *device,
+ struct boot_option *boot_option);
+
+const char *generic_icon_file(enum generic_icon_type type);
+
+enum generic_icon_type guess_device_type(struct discover_context *ctx);
+
+#endif /* PARSER_UTILS_H */
OpenPOWER on IntegriCloud