mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-12-18 04:27:44 +07:00
5840bc63e2
Now we standardise on a struct udevice to pass around, and store in the database. This cleaned up the database code a lot.
22 lines
565 B
C
22 lines
565 B
C
/*
|
|
* udevdb header file
|
|
*/
|
|
#ifndef _UDEVDB_H_
|
|
#define _UDEVDB_H_
|
|
|
|
#define UDEV_DB "udevdb.tdb"
|
|
|
|
/* 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 */
|
|
|
|
/* Function Prototypes */
|
|
extern void udevdb_exit(void);
|
|
extern int udevdb_init(int init_flag);
|
|
|
|
extern int udevdb_add_dev(const char *path, const struct udevice *dev);
|
|
extern struct udevice *udevdb_get_dev(const char *path);
|
|
extern int udevdb_delete_dev(const char *path);
|
|
|
|
#endif /* _UDEVDB_H_ */
|