11 int (*parse)(const char *device);
15 enum generic_icon_type {
23 #define streq(a,b) (!strcasecmp((a),(b)))
25 /* general functions provided by parsers.c */
26 void iterate_parsers(const char *devpath, const char *mountpoint);
28 void free_device(struct device *dev);
29 void free_boot_option(struct boot_option *opt);
31 const char *generic_icon_file(enum generic_icon_type type);
33 /* functions provided by udev-helper or the test wrapper */
34 void pb_log(const char *fmt, ...);
36 int mount_device(const char *dev_path);
38 char *resolve_path(const char *path, const char *current_dev);
39 const char *mountpoint_for_device(const char *dev_path);
41 enum generic_icon_type guess_device_type(void);
43 int add_device(const struct device *dev);
44 int add_boot_option(const struct boot_option *opt);
46 #endif /* _PARSERS_H */