[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



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

Attachment: pgpC7cyhr3xPo.pgp
Description: PGP signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]