DmiCopy(3dmi)


DmiCopy -- copy a DMI structure

Synopsis

#include <dmi2mem.h>

DmiErrorStatus_t DmiCopyTimestamp ( DmiTimestamp_t *dest, DmiTimestamp_t *src, DmiMemDsc_t memDsc);

DmiErrorStatus_t DmiCopyString ( DmiString_t *dest, DmiString_t *src, DmiMemDsc_t memDsc);

DmiErrorStatus_t DmiCopyOctetString ( DmiOctetString_t *dest, DmiOctetString_t *src, DmiMemDsc_t memDsc);

DmiErrorStatus_t DmiCopyDataUnion( DmiDataUnion_t *dest, DmiDataUnion_t *src, DmiMemDsc_t memDsc);

DmiErrorStatus_t DmiCopyEnumInfo ( DmiEnumInfo_t *dest, DmiEnumInfo_t *src, DmiMemDsc_t memDsc);

DmiErrorStatus_t DmiCopyAttributeInfo( DmiAttributeInfo_t *dest, DmiAttributeInfo_t *src, DmiMemDsc_t memDsc);

DmiErrorStatus_t DmiCopyAttributeData( DmiAttributeData_t *dest, DmiAttributeData_t *src, DmiMemDsc_t memDsc);

DmiErrorStatus_t DmiCopyGroupInfo( DmiGroupInfo_t *dest, DmiGroupInfo_t *src, DmiMemDsc_t memDsc);

DmiErrorStatus_t DmiCopyComponentInfo( DmiComponentInfo_t *dest, DmiComponentInfo_t *src, DmiMemDsc_t memDsc);

DmiErrorStatus_t DmiCopyFileDataInfo( DmiFileDataInfo_t *dest, DmiFileDataInfo_t *src, DmiMemDsc_t memDsc);

DmiErrorStatus_t DmiCopyClassNameInfo( DmiClassNameInfo_t *dest, DmiClassNameInfo_t *src, DmiMemDsc_t memDsc);

DmiErrorStatus_t DmiCopyRowRequest( DmiRowRequest_t *dest, DmiRowRequest_t *src, DmiMemDsc_t memDsc);

DmiErrorStatus_t DmiCopyRowData( DmiRowData_t *dest, DmiRowData_t *src, DmiMemDsc_t memDsc);

DmiErrorStatus_t DmiCopyAttributeIds( DmiAttributeIds_t *dest, DmiAttributeIds_t *src, DmiMemDsc_t memDsc);

DmiErrorStatus_t DmiCopyAttributeValues( DmiAttributeValues_t *dest, DmiAttributeValues_t *src, DmiMemDsc_t memDsc);

DmiErrorStatus_t DmiCopyEnumList( DmiEnumList_t *dest, DmiEnumList_t *src, DmiMemDsc_t memDsc);

DmiErrorStatus_t DmiCopyAttributeList( DmiAttributeList_t *dest, DmiAttributeList_t *src, DmiMemDsc_t memDsc);

DmiErrorStatus_t DmiCopyGroupList( DmiGroupList_t *dest, DmiGroupList_t *src, DmiMemDsc_t memDsc);

DmiErrorStatus_t DmiCopyComponentList( DmiComponentList_t *dest, DmiComponentList_t *src, DmiMemDsc_t memDsc);

DmiErrorStatus_t DmiCopyFileDataList( DmiFileDataList_t *dest, DmiFileDataList_t *src, DmiMemDsc_t memDsc);

DmiErrorStatus_t DmiCopyClassNameList( DmiClassNameList_t *dest, DmiClassNameList_t *src, DmiMemDsc_t memDsc);

DmiErrorStatus_t DmiCopyStringList( DmiStringList_t *dest, DmiStringList_t *src, DmiMemDsc_t memDsc);

DmiErrorStatus_t DmiCopyFileTypeList( DmiFileTypeList_t *dest, DmiFileTypeList_t *src, DmiMemDsc_t memDsc);

DmiErrorStatus_t DmiCopyMultiRowRequest( DmiMultiRowRequest_t *dest, DmiMultiRowRequest_t *src, DmiMemDsc_t memDsc);

DmiErrorStatus_t DmiCopyMultiRowData( DmiMultiRowData_t *dest, DmiMultiRowData_t *src, DmiMemDsc_t memDsc);

DmiErrorStatus_t DmiCopyNodeAddress( DmiNodeAddress_t *dest, DmiNodeAddress_t *src, DmiMemDsc_t memDsc);

Description

The DmiCopy functions copy DMI data structures. The functions copy data of the type specified in the suffix. For example, DmiCopyTimeStamp copies a DmiTimeStamp.

The destination top-level structure must be previously allocated. All referenced structures of the destination structure are recursively created and copied from the respective referenced source structures. All allocations are done in the memory model specified by memDsc.

Parameters


dest
(Input and output) pointer to the destination Dmidata_type structure. The destination top level structure must be previously allocated.

src
(Input) Pointer to the source Dmidata_type structure.

memDsc
(Input) Memory model descriptor. If memDsc is NULL, then the default memory model is used.

Return values


DMIERR_NO_ERROR

DMIERR_OUT_OF_MEMORY

For a description of return values, see ``DMI error codes'' in Desktop Management Interface programming.

Notices

Portions of this page are derived from material for which the copyright owner is Intel Corporation, Inc. The material is reprinted with permission. See copyright page for a full statement of rights and permissions.


© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004