X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=udev.h;h=590a8ed039dc7411f25c66e4bf9948d1fcfd51c4;hb=8e41d35d7675b7d47db3e27da4e1fd508d772c32;hp=af1b6bbb8d0f2c8ad43449ec58992203bc24dfc9;hpb=032abea6fb9f0203dc22d46a1f48326b7da8182c;p=elogind.git diff --git a/udev.h b/udev.h index af1b6bbb8..590a8ed03 100644 --- a/udev.h +++ b/udev.h @@ -37,21 +37,25 @@ /* Lots of constants that should be in a config file sometime */ -/* Location of sysfs mount */ -#define SYSFS_ROOT "/sys" - /* Where udev should create its device nodes, trailing / needed */ #define UDEV_ROOT "/udev/" -/* device file in sysfs that contains major/minor number, leading / needed */ -#define DEV_FILE "/dev" - -/* Binaries that udev calls to do stuff */ -#define MKNOD "/bin/mknod" - extern int log_message (int level, const char *format, ...) __attribute__ ((format (printf, 2, 3))); +#define NAME_SIZE 100 +#define OWNER_SIZE 30 +#define GROUP_SIZE 30 + +struct device_attr { + char name[NAME_SIZE]; + char owner[OWNER_SIZE]; + char group[GROUP_SIZE]; + int mode; +}; + +extern int udev_add_device(char *device, char *subsystem); +extern int udev_remove_device(char *device, char *subsystem); #endif