[PATCH 7/8] add ability in HalDeviceStore to have value lookup indecies for certain keys.

Rob Taylor rob.taylor at codethink.co.uk
Mon Nov 19 08:21:36 PST 2007


Adds hal_device_store_index_property property to set a key as indexed.
When a key is indexed hal_device_store_match_*key_value will use the
index rather than searching the whole device store.

Implementation wise, this adds a new pre-changed signal to HalDevice,
emitted when a property is about to be modified or removed (but not on
addition). On device property change, HalDeviceStore updates the
property index for any indexed keys.

Currently only implemented for string values.

---
 hald/device.c          |   47 +++++++++++++--
 hald/device_store.c    |  156
++++++++++++++++++++++++++++++++++++++++--------
 hald/device_store.h    |    2 +
 hald/hald_marshal.list |    1 +
 4 files changed, 176 insertions(+), 30 deletions(-)

-- 
Rob Taylor, Codethink Ltd. -  http://codethink.co.uk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 31e55503d3371c5fda685d9e3996612881dc4f23.diff
Type: text/x-patch
Size: 11301 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20071119/f9b1fe61/attachment-0001.bin 


More information about the hal mailing list