chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] udevinfo: print devpath -> node relationship for all devices
[elogind.git]
/
udev_db.h
diff --git
a/udev_db.h
b/udev_db.h
index 141c586f24702091eb43b2ff4da35b47408d8af7..6a0647f2007b50767de88e7d5e256b0d75a48ed8 100644
(file)
--- a/
udev_db.h
+++ b/
udev_db.h
@@
-26,9
+26,10
@@
extern int udev_db_add_device(struct udevice *dev);
extern int udev_db_add_device(struct udevice *dev);
-extern int udev_db_get_device(struct udevice *dev);
extern int udev_db_delete_device(struct udevice *dev);
extern int udev_db_delete_device(struct udevice *dev);
-extern int udev_db_get_device_byname(struct udevice *udev, const char *name);
+extern int udev_db_get_device_by_devpath(struct udevice *dev, const char *devpath);
+extern int udev_db_get_device_by_name(struct udevice *udev, const char *name);
+extern int udev_db_call_foreach(int (*handler_function)(struct udevice *udev));
#endif /* _UDEV_DB_H_ */
#endif /* _UDEV_DB_H_ */