X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=udev.h;h=3c3c3d5de78e8a8c4d37f866ea39a0bcc22c2ecc;hb=08daec117c109d53df85c07d250bdd9ce7a9f263;hp=56eb0d7edb0dec816d6e32a3855b01fcc4326bca;hpb=19dc5d4ce15ad387031ec4e78dc615a9eb07dc08;p=elogind.git diff --git a/udev.h b/udev.h index 56eb0d7ed..3c3c3d5de 100644 --- a/udev.h +++ b/udev.h @@ -37,15 +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" @@ -63,6 +57,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