MCPcopy Create free account
hub / github.com/OSGeo/gdal / CPLSetConfigOptions

Function CPLSetConfigOptions

port/cpl_conv.cpp:1781–1787  ·  view source on GitHub ↗

* Replace the full list of configuration options with the passed list of * KEY=VALUE pairs. * * This has the same effect of clearing the existing list, and setting * individually each pair with the CPLSetConfigOption() API. * * This does not affect options set through environment variables or with * CPLSetThreadLocalConfigOption(). * * The passed list is copied by the function. * * @par

Source from the content-addressed store, hash-verified

1779 *
1780 */
1781void CPLSetConfigOptions(const char *const *papszConfigOptions)
1782{
1783 CPLMutexHolderD(&hConfigMutex);
1784 CSLDestroy(const_cast<char **>(g_papszConfigOptions));
1785 g_papszConfigOptions = const_cast<volatile char **>(
1786 CSLDuplicate(const_cast<char **>(papszConfigOptions)));
1787}
1788
1789/************************************************************************/
1790/* CPLGetThreadLocalConfigOption() */

Callers 2

SetUpMethod · 0.85
TEST_FFunction · 0.85

Calls 1

CSLDuplicateFunction · 0.85

Tested by 2

SetUpMethod · 0.68
TEST_FFunction · 0.68