[Libvirt-cim] [PATCH 3 of 3] Fix class prefix to depend on established hypervisor connection

Dan Smith danms at us.ibm.com
Mon Nov 26 16:13:09 UTC 2007


HE> diff -r 50b0c2bad1e3 -r 883d767c6425 src/Virt_ElementConformsToProfile.c
HE> --- a/src/Virt_ElementConformsToProfile.c	Fri Nov 23 11:05:46 2007 +0100
HE> +++ b/src/Virt_ElementConformsToProfile.c	Fri Nov 23 11:11:22 2007 +0100
HE> @@ -50,7 +50,8 @@ static CMPIStatus elem_instances(const C
HE>  static CMPIStatus elem_instances(const CMPIObjectPath *ref,
HE>                                   struct std_assoc_info *info,
HE>                                   struct inst_list *list,
HE> -                                 struct reg_prof *profile)
HE> +                                 struct reg_prof *profile,
HE> +                                 virConnectPtr conn)

Since we have a ref here, can we avoid passing a connection in and do
the connect_by_classname() inside?

-- 
Dan Smith
IBM Linux Technology Center
Open Hypervisor Team
email: danms at us.ibm.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvirt-cim/attachments/20071126/fce4b9e4/attachment.sig>


More information about the Libvirt-cim mailing list