pvAccess -> pva provider name change

This commit is contained in:
Matej Sekoranja
2013-09-23 11:26:10 +02:00
parent f2a10fd37a
commit 236a7311d5
10 changed files with 20 additions and 18 deletions

View File

@@ -28,7 +28,11 @@ static ChannelProviderFactoryMap channelProviders;
class ChannelAccessImpl : public ChannelAccess {
public:
ChannelProvider::shared_pointer getProvider(String const & providerName) {
ChannelProvider::shared_pointer getProvider(String const & _providerName) {
// TODO remove, here for backward compatibility
const String providerName = (_providerName == "pvAccess") ? "pva" : _providerName;
Lock guard(channelProviderMutex);
ChannelProviderFactoryMap::const_iterator iter = channelProviders.find(providerName);
if (iter != channelProviders.end())
@@ -37,7 +41,11 @@ class ChannelAccessImpl : public ChannelAccess {
return ChannelProvider::shared_pointer();
}
ChannelProvider::shared_pointer createProvider(String const & providerName) {
ChannelProvider::shared_pointer createProvider(String const & _providerName) {
// TODO remove, here for backward compatibility
const String providerName = (_providerName == "pvAccess") ? "pva" : _providerName;
Lock guard(channelProviderMutex);
ChannelProviderFactoryMap::const_iterator iter = channelProviders.find(providerName);
if (iter != channelProviders.end())