X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=devices%2Fudev-helper.h;fp=devices%2Fudev-helper.h;h=0000000000000000000000000000000000000000;hb=0baa987696e787f5136f2296295206d99c238f19;hp=6b9ba9d7c3b4bdcb5ce5465ec68a5a8f4fef76c6;hpb=54ed7f641d0dd17778ce8cae5a5dbfd645366d3c;p=petitboot diff --git a/devices/udev-helper.h b/devices/udev-helper.h deleted file mode 100644 index 6b9ba9d..0000000 --- a/devices/udev-helper.h +++ /dev/null @@ -1,31 +0,0 @@ - -#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); - -char *join_paths(const char *a, const char *b); - -int mount_device(const char *dev_path, char *mount_path); - -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)))