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 ); }
PEGASUS_EXPORT CMPIEnumeration * PEGASUS_CMPIR_CDECL native_new_CMPIEnumeration ( CMPIArray * array, CMPIStatus * rc ) { return(CMPIEnumeration *) __new_enumeration ( TOOL_MM_ADD, array, rc ); }
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 ); }
CMPIEnumeration * native_new_CMPIEnumeration ( CMPIArray * array, CMPIStatus * rc ) { return (CMPIEnumeration *) __new_enumeration ( array, rc ); }