]> git.ipfire.org Git - thirdparty/systemd.git/blob - udevdb.h
[PATCH] Shut up wait_for_sysfs class/net failure messages, as it's not possible
[thirdparty/systemd.git] / udevdb.h
1 /*
2 * udevdb header file
3 */
4 #ifndef _UDEVDB_H_
5 #define _UDEVDB_H_
6
7 /* Udevdb initialization flags */
8 #define UDEVDB_DEFAULT 0 /* defaults database to use file */
9 #define UDEVDB_INTERNAL 1 /* don't store db on disk, use in memory */
10
11 /* function prototypes */
12 extern void udevdb_exit(void);
13 extern int udevdb_init(int init_flag);
14 extern int udevdb_open_ro(void);
15 extern int udevdb_call_foreach(int (*user_record_handler) (const char *path, struct udevice *dev));
16
17 extern int udevdb_add_dev(struct udevice *dev);
18 extern int udevdb_get_dev(const char *path, struct udevice *dev);
19 extern int udevdb_delete_dev(const char *path);
20 extern int udevdb_get_dev_byname(const char *name, char *path, struct udevice *dev);
21
22 #endif /* _UDEVDB_H_ */