+STATIC_LIST(parsers);
+
+static char *local_path(struct discover_context *ctx,
+ struct discover_device *dev,
+ const char *filename)
+{
+ return join_paths(ctx, dev->root_path, filename);
+}
+
+int parser_request_file(struct discover_context *ctx,
+ struct discover_device *dev, const char *filename,
+ char **buf, int *len)
+
+{
+ char *path;
+ int rc;
+
+ /* we only support local files at present */
+ if (!dev->mount_path)
+ return -1;
+
+ path = local_path(ctx, dev, filename);
+
+ rc = read_file(ctx, path, buf, len);
+
+ talloc_free(path);
+
+ return rc;
+}
+
+int parser_stat_path(struct discover_context *ctx,
+ struct discover_device *dev, const char *path,
+ struct stat *statbuf)