X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=udev.h;h=590a8ed039dc7411f25c66e4bf9948d1fcfd51c4;hb=dbfc520c605dee3244dbbfd563e908901324689b;hp=56eb0d7edb0dec816d6e32a3855b01fcc4326bca;hpb=19dc5d4ce15ad387031ec4e78dc615a9eb07dc08;p=elogind.git diff --git a/udev.h b/udev.h index 56eb0d7ed..590a8ed03 100644 --- a/udev.h +++ b/udev.h @@ -37,18 +37,9 @@ /* 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))); @@ -63,6 +54,8 @@ struct device_attr { int mode; }; +extern int udev_add_device(char *device, char *subsystem); +extern int udev_remove_device(char *device, char *subsystem); #endif