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

Function NotifyOtherComponentsConfigOptionChanged

port/cpl_conv.cpp:1927–1950  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1925/************************************************************************/
1926
1927static void NotifyOtherComponentsConfigOptionChanged(const char *pszKey,
1928 const char *pszValue,
1929 bool bThreadLocal)
1930{
1931 // When changing authentication parameters of virtual file systems,
1932 // partially invalidate cached state about file availability.
1933 if (STARTS_WITH_CI(pszKey, "AWS_") || STARTS_WITH_CI(pszKey, "GS_") ||
1934 STARTS_WITH_CI(pszKey, "GOOGLE_") ||
1935 STARTS_WITH_CI(pszKey, "GDAL_HTTP_HEADER_FILE") ||
1936 STARTS_WITH_CI(pszKey, "AZURE_") ||
1937 (STARTS_WITH_CI(pszKey, "SWIFT_") && !EQUAL(pszKey, "SWIFT_MAX_KEYS")))
1938 {
1939 VSICurlAuthParametersChanged();
1940 }
1941
1942 if (!gSetConfigOptionSubscribers.empty())
1943 {
1944 for (const auto &iter : gSetConfigOptionSubscribers)
1945 {
1946 if (iter.first)
1947 iter.first(pszKey, pszValue, bThreadLocal, iter.second);
1948 }
1949 }
1950}
1951
1952/************************************************************************/
1953/* CPLIsDebugEnabled() */

Calls 3

EQUALFunction · 0.50
emptyMethod · 0.45

Tested by

no test coverage detected