]> git.ipfire.org Git - thirdparty/systemd.git/blob - udev_db.h
Added symlinks thanks to Kay's script and git hacking.
[thirdparty/systemd.git] / udev_db.h
1 /*
2 * udev_db.h
3 *
4 * Userspace devfs
5 *
6 * Copyright (C) 2003 Greg Kroah-Hartman <greg@kroah.com>
7 * Copyright (C) 2004 Kay Sievers <kay.sievers@vrfy.org>
8 *
9 * This program is free software; you can redistribute it and/or modify it
10 * under the terms of the GNU General Public License as published by the
11 * Free Software Foundation version 2 of the License.
12 *
13 * This program is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License along
19 * with this program; if not, write to the Free Software Foundation, Inc.,
20 * 675 Mass Ave, Cambridge, MA 02139, USA.
21 *
22 */
23
24 #ifndef _UDEV_DB_H_
25 #define _UDEV_DB_H_
26
27
28 extern int udev_db_add_device(struct udevice *dev);
29 extern int udev_db_delete_device(struct udevice *dev);
30
31 extern int udev_db_get_device(struct udevice *udev, const char *devpath);
32 extern int udev_db_search_name(char *devpath, size_t len, const char *name);
33 extern int udev_db_dump_names(int (*handler_function)(const char *path, const char *name));
34
35 #endif /* _UDEV_DB_H_ */