* 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
| 1779 | * |
| 1780 | */ |
| 1781 | void 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() */ |