The management of inactive domains uses the hashtable APIs for managing its
list of config files. In doing so it needed some extra capabilities. This
patch adds 3 new routines:
- virHashForEach - iterate over all values in the hashtable invoking a
callback for each one. Modifying the hashtable from
the callback is forbidden, or bad stuff will happen.
- virHashRemoteSet - iterate over all values in the hashtable invoking a
callback for each one. If the callback returns non
zero, the element will be removed.
- virHashSearch - iterate over all values in the hashtable invoking a
callback for each one. The first entry for which the
callback returnbs non-zero will be returned.
Dan.
--
|=- Red Hat, Engineering, Emerging Technologies, Boston. +1 978 392 2496 -=|
|=- Perl modules:
http://search.cpan.org/~danberr/ -=|
|=- Projects:
http://freshmeat.net/~danielpb/ -=|
|=- GnuPG: 7D3B9505 F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 -=|