summaryrefslogtreecommitdiff
path: root/udevdb.h
diff options
context:
space:
mode:
authorgreg@kroah.com <greg@kroah.com>2003-10-20 20:28:42 -0700
committerGreg KH <gregkh@suse.de>2005-04-26 21:01:42 -0700
commita9ce0a410e7ef573f2f1f48ea793829d3cec389f (patch)
tree2f5a0ffa90bbd862e2b5cde18d314df61a31e30e /udevdb.h
parent05fdfe68e2a628ceabf41f32300bf9f7578a29c5 (diff)
downloadsystemd-a9ce0a410e7ef573f2f1f48ea793829d3cec389f.tar.gz
[PATCH] more database work. Now we only store the info we really need right now.
Also delete the record after the device is gone, and fix up a memory leak.
Diffstat (limited to 'udevdb.h')
-rw-r--r--udevdb.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/udevdb.h b/udevdb.h
index 656613b593..57a27bc17f 100644
--- a/udevdb.h
+++ b/udevdb.h
@@ -21,7 +21,6 @@ struct udevice {
char class_name[NAME_SIZE];
char bus_id[NAME_SIZE];
char bus_name[NAME_SIZE];
- char driver[NAME_SIZE];
char type;
int major;
int minor;
@@ -34,10 +33,8 @@ extern int udevdb_init(int init_flag);
extern int udevdb_delete_udevice(const char *name);
extern int udevdb_add_device(const char *device, const struct sysfs_class_device *class_dev, const char *name, char type, int major, int minor, int mode);
extern struct udevice *udevdb_get_udevice(const char *name);
-extern struct udevice *udevdb_get_udevice_by_bus(const char *bus,
- const char *id);
-extern struct udevice *udevdb_get_udevice_by_class(const char *cls,
- const char *cls_dev);
extern char *udevdb_get_udevice_by_sysfs(const char *path);
+extern int udevdb_get_dev(const char *path, char *name, size_t name_size);
+extern int udevdb_delete_dev(const char *path);
#endif /* _UDEVDB_H_ */