summaryrefslogtreecommitdiffstats
path: root/discover/parser-utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'discover/parser-utils.h')
-rw-r--r--discover/parser-utils.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/discover/parser-utils.h b/discover/parser-utils.h
index e82e3f9..955f5f4 100644
--- a/discover/parser-utils.h
+++ b/discover/parser-utils.h
@@ -7,6 +7,16 @@
#define artwork_pathname(file) (PKG_SHARE_DIR "/artwork/" file)
+#define define_parser(__name, __priority, __parse_fn) \
+ struct parser \
+ __attribute__((unused, section("parsers"))) \
+ __ ## __name ## _parser = { \
+ .name = #__name, \
+ .priority = __priority, \
+ .parse = __parse_fn, \
+ };
+
+
void device_add_boot_option(struct device *device,
struct boot_option *boot_option);
OpenPOWER on IntegriCloud