summaryrefslogtreecommitdiff
path: root/udevdb.h
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2004-01-19 19:40:32 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:13:17 -0700
commitb2a21a35476b4780ef1fc68c60216117ab66fa2b (patch)
treec45467c4d55635e9ce80477e27e1175b5a7a927c /udevdb.h
parent778050914360dfb469817e12a1080bbf98422ef2 (diff)
[PATCH] udev - reverse user query options
Here we get the ability to query with the name of the node instead of the device path. It uses a linear search over the whole database. kay@pim:~/src/udev.kay$ ./udev -q path -n video/webcam0 /class/video4linux/video0 New version, with better function return codes for error handling.
Diffstat (limited to 'udevdb.h')
-rw-r--r--udevdb.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/udevdb.h b/udevdb.h
index a0e5338265..6eaeb25668 100644
--- a/udevdb.h
+++ b/udevdb.h
@@ -12,10 +12,11 @@
extern void udevdb_exit(void);
extern int udevdb_init(int init_flag);
extern int udevdb_open_ro(void);
-extern int udevdb_dump(void (*user_record_handler) (char *path, struct udevice *dev));
+extern int udevdb_call_foreach(int (*user_record_handler) (char *path, struct udevice *dev));
extern int udevdb_add_dev(const char *path, const struct udevice *dev);
extern int udevdb_get_dev(const char *path, struct udevice *dev);
extern int udevdb_delete_dev(const char *path);
+extern int udevdb_get_dev_byname(const char *name, char *path, struct udevice *dev);
#endif /* _UDEVDB_H_ */