[libvirt] [PATCH 1/2] Remove deallocator parameter from hash functions

Christophe Fergeau cfergeau at gmail.com
Thu Feb 24 14:19:35 UTC 2011


Hi,

2011/2/24 Daniel P. Berrange <berrange at redhat.com>:
> Since the deallocator is passed into the constructor of
> a hash table it is not desirable to pass it into each
> function again. Remove it from all functions, but provide
> a virHashSteal to allow a item to be removed from a hash
> table without deleteing it.
>

Ah, I was planning to send a very similar patch tonight, I had missed
the need for virHashSteal though so yours is better. The patch looks
good to me.

Christophe




More information about the libvir-list mailing list