OTCloneConfiguration
Copies anOTConfigurationstructure.C INTERFACE
OTConfiguration* OTCloneConfiguration(OTConfiguration* cfig);C++ INTERFACES
None. C++ applications use the C interface to this function.PARAMETERS
cfig- A pointer to the
OTConfigurationstructure that you want
to copy.DESCRIPTION
TheOTCloneConfigurationfunction copies theOTConfigurationstructure that you specify in thecfigparameter and returns a pointer to the copy. Because the internal format of anOTConfigurationstructure is private, you must use theOTCloneConfigurationfunction to obtain two identical structures. For example, you can use this function when another application passes you a configuration structure that you want to reuse but for which you do not have the original configuration string. By cloning the structure, you have access to an additional copy of the configuration even without knowing its configuration string.SEE ALSO
For more information about creating configuration structures, see the sections "About Provider Configurations" (page 6-3) and "Creating and Reusing Provider Configurations" (page 6-10).To create an
OTConfigurationstructure, call theOTCreateConfigurationfunction (page 6-27).To delete an
OTConfigurationstructure, call theOTDestroyConfigurationfunction (page 6-30).