[libvirt] [PATCH 2/2] Allow hash tables to use generic pointers as keys

Christophe Fergeau cfergeau at gmail.com
Thu Feb 24 21:43:39 UTC 2011


Hi,

On Thu, Feb 24, 2011 at 01:24:32PM +0000, Daniel P. Berrange wrote:
> diff --git a/src/util/hash.c b/src/util/hash.c
> index c3c8b66..92ee234 100644
> --- a/src/util/hash.c
> +++ b/src/util/hash.c
> @@ -55,39 +55,70 @@ struct _virHashTable {
>      int size;
>      int nbElems;
>      virHashDataFree dataFree;
> +    virHashKeyCode keyCode;
> +    virHashKeyEqual keyEqual;
> +    virHashKeyCopy keyCopy;
> +    virHashKeyFree keyFree;


The new names are much clearer, thanks :) Rest of the patch looks good to
me.

Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110224/a24c82ed/attachment-0001.sig>


More information about the libvir-list mailing list