chiark / gitweb /
ef7175ea3a8d2c08e1fc27f0aafda9b644e5b52d
[elogind.git] / udev.h
1 /*
2  * udev.h
3  *
4  * Userspace devfs
5  *
6  * Copyright (C) 2003 Greg Kroah-Hartman <greg@kroah.com>
7  *
8  *      This program is free software; you can redistribute it and/or modify it
9  *      under the terms of the GNU General Public License as published by the
10  *      Free Software Foundation version 2 of the License.
11  * 
12  *      This program is distributed in the hope that it will be useful, but
13  *      WITHOUT ANY WARRANTY; without even the implied warranty of
14  *      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  *      General Public License for more details.
16  * 
17  *      You should have received a copy of the GNU General Public License along
18  *      with this program; if not, write to the Free Software Foundation, Inc.,
19  *      675 Mass Ave, Cambridge, MA 02139, USA.
20  *
21  */
22
23 #ifndef UDEV_H
24 #define UDEV_H
25
26
27 #ifdef DEBUG
28 #include <syslog.h>
29         #define dbg(format, arg...) do { log_message (LOG_DEBUG, __FUNCTION__ ": " format, ## arg); } while (0)
30 #else
31         #define dbg(format, arg...) do { } while (0)
32 #endif
33
34
35 /* Lots of constants that should be in a config file sometime */
36 #define SYSFS_ROOT      "/sys"
37 #define MKNOD           "/bin/mknod"
38
39
40 #endif
41