summaryrefslogtreecommitdiff
path: root/namedev.h
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2004-02-23 19:31:14 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:32:30 -0700
commite41245cb256231ef6954b3cbf45f0635d01501ed (patch)
tree132c1a400dadb4ccc902bcae5e79109178b5cfcc /namedev.h
parent82962619c626edfc68d39f0b179a909dd3dd0a6b (diff)
[PATCH] udev - allow all files in a directory as the config
I was on the train for 5 hours today and the TODO is almost empty :) So, at least four people wanted this feature, then here is a actual working patch. We may specify now in udev.conf: udev_rules="/etc/udev/" and udev will scan the whole directory for files ending with *.rules, sort it in lexical order and create our rule list from all of the files. A plain given file will still work and the same applies to the *.permissions. I sort the files in our usual linked list, cause klibc has no scandir().
Diffstat (limited to 'namedev.h')
-rw-r--r--namedev.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/namedev.h b/namedev.h
index 10a5dcaf0c..ffdde83ca4 100644
--- a/namedev.h
+++ b/namedev.h
@@ -48,10 +48,12 @@ struct sysfs_class_device;
#define ATTR_PARTITIONS "all_partitions"
#define PARTITIONS_COUNT 15
-
#define PROGRAM_MAXARG 10
#define MAX_SYSFS_PAIRS 5
+#define RULEFILE_EXT ".rules"
+#define PERMFILE_EXT ".permissions"
+
struct sysfs_pair {
char file[FILE_SIZE];
char value[VALUE_SIZE];