]> git.ozlabs.org Git - petitboot/blob - devices/udev-helper.h
Integrate devices/Makefile
[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 struct parser {
10         char *name;
11         int priority;
12         int (*parse)(const char *devicepath, const char *mountpoint);
13         struct parser *next;
14 };
15
16 enum generic_icon_type {
17         ICON_TYPE_DISK,
18         ICON_TYPE_USB,
19         ICON_TYPE_OPTICAL,
20         ICON_TYPE_NETWORK,
21         ICON_TYPE_UNKNOWN
22 };
23
24 enum generic_icon_type guess_device_type(void);
25 const char *generic_icon_file(enum generic_icon_type type);
26
27 #define streq(a,b) (!strcasecmp((a),(b)))