Create a ConnectionGenericFile class for Windows.

This is the first step in getting ConnectionFileDescriptor ported
to Windows. It implements a connection against a disk file for
windows. This supports connection strings of the form file://PATH
which are currently supported only on posix platforms in
ConnectionFileDescriptor.

Reviewed by: Greg Clayton
Differential Revision: http://reviews.llvm.org/D5608

llvm-svn: 219145
This commit is contained in:
Zachary Turner
2014-10-06 21:23:09 +00:00
parent 2885acee4d
commit 12792af026
7 changed files with 427 additions and 1 deletions

View File

@@ -71,7 +71,7 @@ SBCommunication::Connect (const char *url)
if (m_opaque)
{
if (!m_opaque->HasConnection ())
m_opaque->SetConnection (new ConnectionFileDescriptor());
m_opaque->SetConnection(Connection::CreateDefaultConnection(url));
return m_opaque->Connect (url, NULL);
}
return eConnectionStatusNoConnection;