Important: The information in this document is obsolete and should not be used for new development.
OTCloneConfiguration
Copies anOTConfiguration
structure.C INTERFACE
OTConfiguration* OTCloneConfiguration(OTConfiguration* cfig);C++ INTERFACE
None. C++ applications use the C interface to this function.PARAMETERS
cfig
- A pointer to the
OTConfiguration
structure that you want to copy.- function result
- A pointer to a private
OTConfiguration
structure.DISCUSSION
TheOTCloneConfiguration
function copies theOTConfiguration
structure that you specify in thecfig
parameter and returns a pointer to the copy. Because the format of anOTConfiguration
structure is private, you must use theOTCloneConfiguration
function to obtain two identical structures. Creating configurations through cloning is much faster than recreating them using theOTCreateConfiguration
function.SEE ALSO
"Initiating and Closing Open Transport".The
OTCreateConfiguration
function.The
OTDestroyConfiguration
function.