2003-08-06 13:57:23 +07:00
|
|
|
/*
|
|
|
|
* udevdb header file
|
|
|
|
*/
|
|
|
|
#ifndef _UDEVDB_H_
|
|
|
|
#define _UDEVDB_H_
|
|
|
|
|
2003-10-15 13:20:53 +07:00
|
|
|
/* Udevdb initialization flags */
|
2003-11-25 13:27:17 +07:00
|
|
|
#define UDEVDB_DEFAULT 0 /* defaults database to use file */
|
|
|
|
#define UDEVDB_INTERNAL 1 /* don't store db on disk, use in memory */
|
2003-10-15 13:20:53 +07:00
|
|
|
|
2003-11-25 13:27:17 +07:00
|
|
|
/* function prototypes */
|
2003-10-15 13:20:53 +07:00
|
|
|
extern void udevdb_exit(void);
|
|
|
|
extern int udevdb_init(int init_flag);
|
2003-12-31 13:31:37 +07:00
|
|
|
extern int udevdb_open_ro(void);
|
2004-01-20 10:40:32 +07:00
|
|
|
extern int udevdb_call_foreach(int (*user_record_handler) (char *path, struct udevice *dev));
|
2003-10-21 12:48:44 +07:00
|
|
|
|
|
|
|
extern int udevdb_add_dev(const char *path, const struct udevice *dev);
|
2003-12-20 09:29:01 +07:00
|
|
|
extern int udevdb_get_dev(const char *path, struct udevice *dev);
|
2003-10-21 10:28:42 +07:00
|
|
|
extern int udevdb_delete_dev(const char *path);
|
2004-01-20 10:40:32 +07:00
|
|
|
extern int udevdb_get_dev_byname(const char *name, char *path, struct udevice *dev);
|
2003-08-06 13:57:23 +07:00
|
|
|
|
|
|
|
#endif /* _UDEVDB_H_ */
|