2 #include <talloc/talloc.h>
3 #include <pb-protocol/pb-protocol.h>
5 #include "device-handler.h"
7 struct device_handler {
8 struct discover_server *server;
10 struct device *devices;
14 struct device_handler *device_handler_init(struct discover_server *server)
16 struct device_handler *handler;
18 handler = talloc(NULL, struct device_handler);
19 handler->devices = NULL;
20 handler->n_devices = 0;
25 void device_handler_destroy(struct device_handler *devices)
30 static struct boot_option options[] = {
34 .description = "meep description one",
35 .icon_file = "meep.one.png",
36 .boot_args = "root=/dev/sda1",
40 static struct device device = {
43 .description = "meep description",
44 .icon_file = "meep.png",
49 int device_handler_get_current_devices(struct device_handler *handler,
50 struct device **devices)
58 int device_handler_event(struct device_handler *handler,
59 struct udev_event *event)