SEDRIS Reference Manual
APPENDIX C - Transmittal Access Level 0 API Auxiliary Functions
Functions
SE CloneClassificationParameters
extern SE_Status_Code
SE_CloneClassificationParameters
(
constSE_Classification_Parameters *src_ptr,1
SE_Classification_Parameters *dest_ptr2
);

Definition

Clones the data from *src_ptr into *dest_ptr, by allocating memory for any necessary internal pointers within *dest_ptr, then populating *dest_ptr with data from *src_ptr.

IMPORTANT NOTES:

  1. Because some of the fields contained in the data structure are pointers to dynamically allocated memory, it is HIGHLY INADVISABLE to use a member-wise structure copy in order to duplicate an SE_Classification_Parameters structure. In order to reliably duplicate this data, developers should use the SE_CloneClassificationParameters() function.
  2. The caller is responsible for calling SE_FreeClassificationParameters() to free the internal pointers allocated within *dest_ptr.


Returns

SE_STATCODE_SUCCESS and memory is allocated for any dynamically allocated data within the structure, which is then populated with data copied from *src_ptr, if valid parameters were passed in and all operations succeeded.
SE_STATCODE_INACTIONABLE_FAILURE and *dest_ptr is initialized to empty, if the call failed for any reason.

Parameters Notes

1 the SE_Classification_Parameters that is to be duplicated

2 a pointer to an SE_Classification_Parameters structure within memory managed by the caller. Non-dynamically allocated fields in this structure will be directly populated with data from the input fields. Dynamically allocated data will be allocated by this function, then copied from the input structure.


Prev: SE_CloneClassificationEntry. Next: SE_CloneHierarchyOrderParameters. Up:Index.

Last updated: July 26, 2006 Copyright © 2006 SEDRIS