privatize some API details

hide a number of APIs which should not
be public APIs.
This commit is contained in:
Michael Davidsaver
2017-05-30 17:12:31 +02:00
parent 7c85e6073b
commit 277e5c33fb
21 changed files with 86 additions and 57 deletions
+4 -2
View File
@@ -21,19 +21,21 @@
#include <pv/pvAccess.h>
#include <pv/rpcService.h>
#include <pv/serverContextImpl.h>
#include <pv/serverContext.h>
#include <shareLib.h>
namespace epics {
namespace pvAccess {
class ServerContext;
class epicsShareClass RPCServer :
public std::tr1::enable_shared_from_this<RPCServer>
{
private:
ServerContextImpl::shared_pointer m_serverContext;
std::tr1::shared_ptr<ServerContext> m_serverContext;
ChannelProviderFactory::shared_pointer m_channelProviderFactory;
ChannelProvider::shared_pointer m_channelProviderImpl;
+2 -1
View File
@@ -10,6 +10,7 @@
#define epicsExportSharedSymbols
#include <pv/rpcServer.h>
#include <pv/serverContextImpl.h>
#include <pv/wildcard.h>
using namespace epics::pvData;
@@ -525,7 +526,7 @@ RPCServer::RPCServer()
m_channelProviderImpl = m_channelProviderFactory->sharedInstance();
m_serverContext = ServerContextImpl::create();
m_serverContext->setChannelProviderName(m_channelProviderImpl->getProviderName());
static_cast<ServerContextImpl*>(m_serverContext.get())->setChannelProviderName(m_channelProviderImpl->getProviderName());
m_serverContext->initialize(getChannelProviderRegistry());
}