]> git.ipfire.org Git - thirdparty/systemd.git/blame - udevdb.h
[PATCH] fix problems using scsi_id with udevstart
[thirdparty/systemd.git] / udevdb.h
CommitLineData
8e41d35d
DS
1/*
2 * udevdb header file
3 */
4#ifndef _UDEVDB_H_
5#define _UDEVDB_H_
6
dbfc520c 7/* Udevdb initialization flags */
f7b4eca4
KS
8#define UDEVDB_DEFAULT 0 /* defaults database to use file */
9#define UDEVDB_INTERNAL 1 /* don't store db on disk, use in memory */
dbfc520c 10
f7b4eca4 11/* function prototypes */
dbfc520c
DS
12extern void udevdb_exit(void);
13extern int udevdb_init(int init_flag);
f4dc8d11 14extern int udevdb_open_ro(void);
b2a21a35 15extern int udevdb_call_foreach(int (*user_record_handler) (char *path, struct udevice *dev));
5840bc63
GKH
16
17extern int udevdb_add_dev(const char *path, const struct udevice *dev);
a56ef382 18extern int udevdb_get_dev(const char *path, struct udevice *dev);
a9ce0a41 19extern int udevdb_delete_dev(const char *path);
b2a21a35 20extern int udevdb_get_dev_byname(const char *name, char *path, struct udevice *dev);
8e41d35d
DS
21
22#endif /* _UDEVDB_H_ */