]> git.ozlabs.org Git - petitboot/blob - devices/udev-helper.h
Remove duplicate prepend_mountpoint() functions.
[petitboot] / devices / udev-helper.h
1
2 #include "message.h"
3
4 int add_device(const struct device *dev);
5
6 int add_boot_option(const struct boot_option *opt);
7 void free_boot_option(struct boot_option *opt);
8
9 char *join_paths(const char *a, const char *b);
10
11 int mount_device(const char *dev_path, char *mount_path);
12
13 struct parser {
14         char *name;
15         int priority;
16         int (*parse)(const char *devicepath, const char *mountpoint);
17         struct parser *next;
18 };
19
20 enum generic_icon_type {
21         ICON_TYPE_DISK,
22         ICON_TYPE_USB,
23         ICON_TYPE_OPTICAL,
24         ICON_TYPE_NETWORK,
25         ICON_TYPE_UNKNOWN
26 };
27
28 enum generic_icon_type guess_device_type(void);
29 const char *generic_icon_file(enum generic_icon_type type);
30
31 #define streq(a,b) (!strcasecmp((a),(b)))