diff options
author | Geoff Levand <geoff@infradead.org> | 2012-03-16 22:06:03 -0700 |
---|---|---|
committer | Geoff Levand <geoff@infradead.org> | 2012-03-16 22:16:41 -0700 |
commit | 7c5e552c210b38a06ed9fbb99418b62e20978666 (patch) | |
tree | d8973628338cb604eb3032c7b6d36daca70d8435 /discover/parser-utils.h | |
parent | 54f94570b65095c5b9251981956102d3f2864f90 (diff) | |
download | talos-petitboot-7c5e552c210b38a06ed9fbb99418b62e20978666.tar.gz talos-petitboot-7c5e552c210b38a06ed9fbb99418b62e20978666.zip |
Use static array for parsers
Change the parser structure array implementation from using an
array in a seperate parsers section to a static array of pointers
in parser.c. Parser priority is now set by the position in the
new parsers array.
Signed-off-by: Geoff Levand <geoff@infradead.org>
Diffstat (limited to 'discover/parser-utils.h')
-rw-r--r-- | discover/parser-utils.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/discover/parser-utils.h b/discover/parser-utils.h index 781867c..fe28b7b 100644 --- a/discover/parser-utils.h +++ b/discover/parser-utils.h @@ -8,16 +8,13 @@ #define artwork_pathname(file) (PKG_SHARE_DIR "/artwork/" file) -#define define_parser(__name, __priority, __parse_fn) \ +#define define_parser(__name, __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); |