summaryrefslogtreecommitdiffstats
path: root/devices/udev-helper.h
diff options
context:
space:
mode:
Diffstat (limited to 'devices/udev-helper.h')
-rw-r--r--devices/udev-helper.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/devices/udev-helper.h b/devices/udev-helper.h
new file mode 100644
index 0000000..ea5400c
--- /dev/null
+++ b/devices/udev-helper.h
@@ -0,0 +1,27 @@
+
+#include "message.h"
+
+int add_device(const struct device *dev);
+
+int add_boot_option(const struct boot_option *opt);
+void free_boot_option(struct boot_option *opt);
+
+struct parser {
+ char *name;
+ int priority;
+ int (*parse)(const char *devicepath, const char *mountpoint);
+ struct parser *next;
+};
+
+enum generic_icon_type {
+ ICON_TYPE_DISK,
+ ICON_TYPE_USB,
+ ICON_TYPE_OPTICAL,
+ ICON_TYPE_NETWORK,
+ ICON_TYPE_UNKNOWN
+};
+
+enum generic_icon_type guess_device_type(void);
+const char *generic_icon_file(enum generic_icon_type type);
+
+#define streq(a,b) (!strcasecmp((a),(b)))
OpenPOWER on IntegriCloud