From 7c5e552c210b38a06ed9fbb99418b62e20978666 Mon Sep 17 00:00:00 2001 From: Geoff Levand Date: Fri, 16 Mar 2012 22:06:03 -0700 Subject: 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 --- discover/parser-utils.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'discover/parser-utils.h') 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); -- cgit v1.2.1