summaryrefslogtreecommitdiff
path: root/udev_rules_parse.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2008-04-21 19:00:54 +0200
committerKay Sievers <kay.sievers@vrfy.org>2008-04-21 19:00:54 +0200
commitbf50425b58da6f112197f79241dd6d64af2e9ea7 (patch)
tree2e3f961beaff4d62404ae9191c4c8a996f608cbc /udev_rules_parse.c
parent6b795c99e00c92dd29abafcc1022cace7bbcb795 (diff)
add OPTIONS+="event_timeout=<seconds>"
Diffstat (limited to 'udev_rules_parse.c')
-rw-r--r--udev_rules_parse.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/udev_rules_parse.c b/udev_rules_parse.c
index b586df1324..5119b7e84f 100644
--- a/udev_rules_parse.c
+++ b/udev_rules_parse.c
@@ -245,6 +245,7 @@ static int add_to_rules(struct udev_rules *rules, char *line, const char *filena
memset(buf, 0x00, sizeof(buf));
rule = (struct udev_rule *) buf;
+ rule->event_timeout = -1;
linepos = line;
valid = 0;
@@ -604,6 +605,11 @@ static int add_to_rules(struct udev_rules *rules, char *line, const char *filena
rule->link_priority = atoi(&pos[strlen("link_priority=")]);
dbg("link priority=%i\n", rule->link_priority);
}
+ pos = strstr(value, "event_timeout=");
+ if (pos != NULL) {
+ rule->event_timeout = atoi(&pos[strlen("event_timeout=")]);
+ dbg("event timout=%i\n", rule->event_timeout);
+ }
pos = strstr(value, "string_escape=");
if (pos != NULL) {
pos = &pos[strlen("string_escape=")];