1 #ifndef _DEVICE_HANDLER_H
2 #define _DEVICE_HANDLER_H
7 struct discover_server;
12 struct discover_context {
17 struct device *device;
21 struct list_item list;
24 struct device_handler *device_handler_init(struct discover_server *server,
27 void device_handler_destroy(struct device_handler *devices);
29 int device_handler_get_device_count(const struct device_handler *handler);
30 const struct device *device_handler_get_device(
31 const struct device_handler *handler, unsigned int index);
33 int device_handler_event(struct device_handler *handler, struct event *event);
35 void device_handler_boot(struct device_handler *handler,
36 struct boot_command *cmd);
38 #endif /* _DEVICE_HANDLER_H */