[Libvirt-cim] [PATCH 3 of 3] * Created Virt_HostedAccessPoint.c file

Kaitlin Rupert kaitlin at linux.vnet.ibm.com
Tue Nov 25 23:09:03 UTC 2008


Richard Maciel wrote:
> # HG changeset patch
> # User Richard Maciel <richardm at br.ibm.com>
> # Date 1227649866 7200
> # Node ID 26073731679da6e273bd55c8b99f835e402af98c
> # Parent  4e72a1e95996bfc7dbd4f33da5a565535c7a4b0e
> * Created Virt_HostedAccessPoint.c file
> * Changed src/Makefile.am file, so the libvirt build creates
> the libHostedAccessPoint.la library
> 
> This patch implements the HostedAccessPoint association using
> the standard procedure.
> 

This association will return an error if the SBLIM base providers are 
used.  You'll want to register the provider to the cimv2 namespace.

> +static CMPIStatus host_to_rsap(const CMPIObjectPath *ref,
> +                               struct std_assoc_info *info,
> +                               struct inst_list *list)
> +{
> +        CMPIStatus s = {CMPI_RC_OK, NULL};
> +        CMPIInstance *instance = NULL;
> +        CMPIObjectPath *vref = NULL;
> +
> +        if (!match_hypervisor_prefix(ref, info))
> +                goto out;

If the SBLIM providers are installed, the class prefix will be "Linux_" 
- so you'll need to do this check only if the classname doesn't start 
with "Linux_".

Take a look at Virt_HostedDependency for how to support SBLIM host refs.
-- 
Kaitlin Rupert
IBM Linux Technology Center
kaitlin at linux.vnet.ibm.com




More information about the Libvirt-cim mailing list