* Return the list of thread local configuration options as KEY=VALUE pairs. * * Options that through environment variables or with * CPLSetConfigOption() will *not* be listed. * * @return a copy of the list, to be freed with CSLDestroy(). */
| 2216 | * @return a copy of the list, to be freed with CSLDestroy(). |
| 2217 | */ |
| 2218 | char **CPLGetThreadLocalConfigOptions(void) |
| 2219 | { |
| 2220 | int bMemoryError = FALSE; |
| 2221 | char **papszTLConfigOptions = reinterpret_cast<char **>( |
| 2222 | CPLGetTLSEx(CTLS_CONFIGOPTIONS, &bMemoryError)); |
| 2223 | if (bMemoryError) |
| 2224 | return nullptr; |
| 2225 | return CSLDuplicate(papszTLConfigOptions); |
| 2226 | } |
| 2227 | |
| 2228 | /************************************************************************/ |
| 2229 | /* CPLSetThreadLocalConfigOptions() */ |