mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-16 02:06:08 +08:00
blacklib folder reorganisation
This commit is contained in:
50
src/driver/fsx/driver_fsx.cpp
Normal file
50
src/driver/fsx/driver_fsx.cpp
Normal file
@@ -0,0 +1,50 @@
|
||||
/***************************************************************************
|
||||
* Copyright (C) 2013 by Roland Winklmeier *
|
||||
* roland.m.winklmeier@googlemail.com *
|
||||
* *
|
||||
* For license information see LICENSE in the root folder of the *
|
||||
* source code. *
|
||||
* *
|
||||
* This program is distributed in the hope that it will be useful, *
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||
* GNU Lesser General Public License for more details. *
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include <QtCore/qglobal.h>
|
||||
|
||||
#include <blackmisc/debug.h>
|
||||
#include "driver_fsx.h"
|
||||
|
||||
extern "C"
|
||||
{
|
||||
Q_DECL_EXPORT ISimulator* BB_createISimulatorInstance ()
|
||||
{
|
||||
return new CDriverFSX;
|
||||
}
|
||||
|
||||
Q_DECL_EXPORT quint32 BB_InterfaceVersionMajor ()
|
||||
{
|
||||
return ISimulator::InterfaceVersionMajor;
|
||||
}
|
||||
|
||||
Q_DECL_EXPORT quint32 BB_InterfaceVersionMinor ()
|
||||
{
|
||||
return ISimulator::InterfaceVersionMinor;
|
||||
}
|
||||
}
|
||||
|
||||
CDriverFSX::CDriverFSX()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void CDriverFSX::setLibraryContext(BlackMisc::IContext *context)
|
||||
{
|
||||
#ifdef Q_OS_WIN
|
||||
bAssert(!BlackMisc::IContext::isContextInitialised());
|
||||
#endif
|
||||
|
||||
m_libraryContext = new BlackMisc::CLibraryContext(*context);
|
||||
}
|
||||
Reference in New Issue
Block a user