11 int (*parse)(const char *devicepath, const char *mountpoint);
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 char *join_paths(const char *a, const char *b);
33 const char *generic_icon_file(enum generic_icon_type type);
35 /* functions provided by udev-helper or the test wrapper */
36 void pb_log(const char *fmt, ...);
38 int mount_device(const char *dev_path);
40 char *resolve_path(const char *path, const char *default_mountpoint);
41 const char *mountpoint_for_device(const char *dev_path);
43 enum generic_icon_type guess_device_type(void);
45 int add_device(const struct device *dev);
46 int add_boot_option(const struct boot_option *opt);
48 #endif /* _PARSERS_H */