summaryrefslogtreecommitdiffstats
path: root/discover/device-handler.h
diff options
context:
space:
mode:
Diffstat (limited to 'discover/device-handler.h')
-rw-r--r--discover/device-handler.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/discover/device-handler.h b/discover/device-handler.h
index ddcb201..cd28420 100644
--- a/discover/device-handler.h
+++ b/discover/device-handler.h
@@ -1,11 +1,25 @@
#ifndef _DEVICE_HANDLER_H
#define _DEVICE_HANDLER_H
+#include <list/list.h>
+
struct device_handler;
struct discover_server;
struct udev_event;
struct device;
+struct discover_context {
+ char *id;
+ char *device_path;
+ char *mount_path;
+ struct udev_event *event;
+ struct device *device;
+ char **links;
+ int n_links;
+
+ struct list_item list;
+};
+
struct device_handler *device_handler_init(struct discover_server *server);
void device_handler_destroy(struct device_handler *devices);
OpenPOWER on IntegriCloud