X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=udev.h;h=e9fc2e46eb86392e211d8f9f6ea986ae34f82ebf;hb=c27e69116d3ef0ea069a3c5146009ced08a0238b;hp=f4f4f11f2d7c2af212563d0dab766389bfbc620b;hpb=f0952f66e634c9da1639662079e74e60da4027ef;p=elogind.git diff --git a/udev.h b/udev.h index f4f4f11f2..e9fc2e46e 100644 --- a/udev.h +++ b/udev.h @@ -37,22 +37,27 @@ /* 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 -extern int log_message (int level, const char *format, ...); +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); +extern char **main_argv; +extern char **main_envp; #endif