diff options
author | dsteklof@us.ibm.com <dsteklof@us.ibm.com> | 2003-10-14 23:20:53 -0700 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 21:01:40 -0700 |
commit | dbfc520c605dee3244dbbfd563e908901324689b (patch) | |
tree | c9952c04fb643a912c4aef4bef9201fff0727f6f /udevdb.h | |
parent | 149f210617e812922831e329c347095115585783 (diff) | |
download | systemd-dbfc520c605dee3244dbbfd563e908901324689b.tar.gz |
[PATCH] udevdb patch
This patch:
1) removes the three database files for just one udevdb.tdb file.
2) adds udevdb_init() and udevdb_exit() functions
3) initializes database now in main() in udev.c.
Please look it over.
Diffstat (limited to 'udevdb.h')
-rw-r--r-- | udevdb.h | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -7,14 +7,16 @@ #include "namedev.h" #include "udev.h" -#define BUS_DB "/home/greg/src/udev/busdb.tdb" -#define CLASS_DB "/home/greg/src/udev/classdb.tdb" -#define NAME_DB "/home/greg/src/udev/namedb.tdb" +#define UDEVDB "/home/greg/src/udev/udevdb.tdb" #define PATH_SIZE 256 #define UDEVDB_DEL "#" +/* Udevdb initialization flags */ +#define UDEVDB_DEFAULT 0 /* Defaults database to use file */ +#define UDEVDB_INTERNAL 1 /* Don't store db on disk, use in memory */ + struct udevice { char name[NAME_SIZE]; char sysfs_path[PATH_SIZE]; @@ -30,6 +32,8 @@ struct udevice { }; /* Function Prototypes */ +extern void udevdb_exit(void); +extern int udevdb_init(int init_flag); extern int udevdb_delete_udevice(const char *name); extern int udevdb_add_udevice(const struct udevice *dev); extern struct udevice *udevdb_get_udevice(const char *name); |