1 #ifndef _DEVICE_HANDLER_H
2 #define _DEVICE_HANDLER_H
7 struct discover_device;
8 struct discover_server;
14 struct discover_device {
15 struct device *device;
24 struct discover_context {
26 struct discover_device *device;
27 struct list boot_options;
30 struct device_handler *device_handler_init(struct discover_server *server,
33 void device_handler_destroy(struct device_handler *devices);
35 int device_handler_get_device_count(const struct device_handler *handler);
36 const struct device *device_handler_get_device(
37 const struct device_handler *handler, unsigned int index);
39 struct device *discover_context_device(struct discover_context *ctx);
40 void discover_context_add_boot_option(struct discover_context *ctx,
41 struct boot_option *opt);
43 int device_handler_event(struct device_handler *handler, struct event *event);
45 void device_handler_boot(struct device_handler *handler,
46 struct boot_command *cmd);
48 #endif /* _DEVICE_HANDLER_H */