parsers: change parser.parse to accept a buffer
[petitboot] / discover / parser.h
index c2f02d683d3f50b85b487752ac256f68e9abdc7b..18c9963e863021b642f7adbd840278a99fbfe53f 100644 (file)
@@ -6,7 +6,8 @@ struct discover_context;
 struct parser {
        char                    *name;
        const char * const      *filenames;
 struct parser {
        char                    *name;
        const char * const      *filenames;
-       int                     (*parse)(struct discover_context *ctx);
+       int                     (*parse)(struct discover_context *ctx,
+                                               char *buf, int len);
 };
 
 enum generic_icon_type {
 };
 
 enum generic_icon_type {