6 struct discover_device;
11 * Data for local/remote resources. Resources may be "unresolved", in that
12 * they refer to a device that is not yet present. Unresolved resources
13 * simply contain parser-specific data (generally a device string parsed from
14 * the config file), and may be resolved by the parser once new devices appear.
27 * Most resources in config files will be in one of the following formats:
29 * - device-local filenames (ie, filenames on the currently-discovered dev)
30 * - other-device filenames (which speficy the device by a string format,
31 * using a dev:path format).
33 * The following definitions are a generic resource handler for these types
34 * of resources. By creating resources with create_devpath_resource,
35 * parsers can use resolve_devpath_resource as their resolve_resouce
39 struct resource *create_devpath_resource(void *ctx,
40 struct discover_device *orig_device,
43 struct resource *create_url_resource(void *ctx, struct pb_url *url);
45 bool resolve_devpath_resource(struct device_handler *dev,
46 struct resource *res);
50 #endif /* RESOURCE_H */