Example #1
0
static CMPIEnumeration * __eft_clone ( 
    CONST CMPIEnumeration * enumeration,
    CMPIStatus * rc )
{
    CMPIStatus tmp;
    struct native_enum * e = (struct native_enum *) enumeration;
    CMPIArray * data;

    if (!checkArgs(enumeration, rc))
    {
        return 0;
    }

    data = CMClone ( e->data, &tmp );

    if (tmp.rc != CMPI_RC_OK)
    {

        CMSetStatus ( rc, CMPI_RC_ERR_FAILED );
        return NULL;
    }

    return
        (CMPIEnumeration *) __new_enumeration ( 
        TOOL_MM_NO_ADD,
        data,
        rc );
}
Example #2
0
PEGASUS_EXPORT CMPIEnumeration * PEGASUS_CMPIR_CDECL 
    native_new_CMPIEnumeration ( CMPIArray * array, CMPIStatus * rc )
{
    return(CMPIEnumeration *) __new_enumeration ( 
        TOOL_MM_ADD,
        array,
        rc );
}
Example #3
0
static CMPIEnumeration * __eft_clone ( CMPIEnumeration * enumeration,
				       CMPIStatus * rc )
{
	CMPIStatus tmp;
	struct native_enum * e = (struct native_enum *) enumeration;
	CMPIArray * data       = CMClone ( e->data, &tmp );

	if ( tmp.rc != CMPI_RC_OK ) {
		CMSetStatus ( rc, CMPI_RC_ERR_FAILED );
		return NULL;
	}

	return 
		(CMPIEnumeration *) __new_enumeration ( data, rc );
}
Example #4
0
CMPIEnumeration * native_new_CMPIEnumeration ( CMPIArray * array,
					       CMPIStatus * rc )
{
	return (CMPIEnumeration *) __new_enumeration ( array, rc );
}