X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=discover%2Fparser.h;h=c1b4012d67cb29764fbb499cb27224555137b4d8;hp=03ba8d4d704134b3a9a239c9da9f6657ff449505;hb=b86a7a0533c4d723ea940ac2071f845f165f832c;hpb=5be946cda7b8e2271ade6188ca3f5dc068826619 diff --git a/discover/parser.h b/discover/parser.h index 03ba8d4..c1b4012 100644 --- a/discover/parser.h +++ b/discover/parser.h @@ -3,6 +3,8 @@ #include +#include "device-handler.h" + struct discover_context; struct device_handler; struct resource; @@ -25,6 +27,7 @@ struct resource; */ struct parser { char *name; + enum conf_method method; const char * const *filenames; int (*parse)(struct discover_context *ctx, char *buf, int len); @@ -45,7 +48,11 @@ enum generic_icon_type { void parser_init(void); -void iterate_parsers(struct discover_context *ctx); +void iterate_parsers(struct discover_context *ctx, enum conf_method method); int parse_user_event(struct discover_context *ctx, struct event *event); +int parser_request_file(struct discover_context *ctx, + struct discover_device *dev, const char *filename, + char **buf, int *len); + #endif /* _PARSER_H */