DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

DmiDup(3dmi)


DmiDup -- duplicate a DMI structure

Synopsis

#include <dmi2mem.h>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Description

The DmiDup functions duplicate top-level DMI data structures, and all referenced structures of the destination structure are recursively created and copied from the respective source structures. The DmiDup functions duplicate data of the type specified by the suffix. For example, DmiDupTimeStamp duplicates a DmiTimeStamp. All allocations are done in the memory model specified by memDsc.

Parameters


dest
(Input and output) Pointer to the returned pointer to the allocated destination Dmidata_type structure.

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