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