[PATCH] add new fdi match attribute contains_not for strlist
Danny Kukawka
danny.kukawka at web.de
Sat Feb 24 09:56:04 PST 2007
Hi,
This patch adds a new attribute for FDI file match tag for string lists
(only). The new attribute named contains_not and allow you to match if a
given string is not contained in the string list as in such cases for
example:
<match key="info.callouts" contains_not="foobar">
<append key="info.callouts" type="strlist">foobar</append>
</match>
This allow you to add e.g. callouts to the list without to double entries.
Danny
doc/spec/hal-spec-fdi-files.xml | 7 +++++++
hald/create_cache.c | 2 ++
hald/device_info.c | 25 +++++++++++++++++++++++++
hald/rule.h | 1 +
4 files changed, 35 insertions(+)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hal-add-MATCH_CONTAINS_NOT_for_strlist.diff
Type: text/x-diff
Size: 2678 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20070224/32f85942/hal-add-MATCH_CONTAINS_NOT_for_strlist.bin
More information about the hal
mailing list