mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-23 05:45:35 +08:00
Ref T709, removed unused includes and style
This commit is contained in:
committed by
Mat Sutcliffe
parent
006fbc88ae
commit
97926eee26
@@ -92,7 +92,6 @@ namespace XSwiftBus
|
|||||||
|
|
||||||
const DBusObjectPathVTable m_dbusObjectPathVTable = { dbusObjectPathUnregisterFunction, dbusObjectPathMessageFunction, nullptr, nullptr, nullptr, nullptr };
|
const DBusObjectPathVTable m_dbusObjectPathVTable = { dbusObjectPathUnregisterFunction, dbusObjectPathMessageFunction, nullptr, nullptr, nullptr, nullptr };
|
||||||
};
|
};
|
||||||
|
} // ns
|
||||||
}
|
|
||||||
|
|
||||||
#endif // guard
|
#endif // guard
|
||||||
|
|||||||
@@ -10,9 +10,7 @@
|
|||||||
#define NOMINMAX
|
#define NOMINMAX
|
||||||
#endif
|
#endif
|
||||||
#include "plugin.h"
|
#include "plugin.h"
|
||||||
#include "utils.h"
|
|
||||||
#include "traffic.h"
|
#include "traffic.h"
|
||||||
#include "service.h"
|
|
||||||
#include <XPLM/XPLMPlanes.h>
|
#include <XPLM/XPLMPlanes.h>
|
||||||
#include <XPLM/XPLMPlugin.h>
|
#include <XPLM/XPLMPlugin.h>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
@@ -21,7 +19,7 @@
|
|||||||
#define XPLM_MSG_LIVERY_LOADED 108
|
#define XPLM_MSG_LIVERY_LOADED 108
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
XSwiftBus::CPlugin *g_plugin;
|
static XSwiftBus::CPlugin *g_plugin = nullptr;
|
||||||
|
|
||||||
PLUGIN_API int XPluginStart(char *o_name, char *o_sig, char *o_desc)
|
PLUGIN_API int XPluginStart(char *o_name, char *o_sig, char *o_desc)
|
||||||
{
|
{
|
||||||
@@ -40,6 +38,7 @@ PLUGIN_API int XPluginStart(char *o_name, char *o_sig, char *o_desc)
|
|||||||
|
|
||||||
PLUGIN_API void XPluginStop()
|
PLUGIN_API void XPluginStop()
|
||||||
{
|
{
|
||||||
|
// void
|
||||||
}
|
}
|
||||||
|
|
||||||
PLUGIN_API int XPluginEnable()
|
PLUGIN_API int XPluginEnable()
|
||||||
|
|||||||
@@ -89,6 +89,6 @@ namespace XSwiftBus
|
|||||||
static float startServerDeferred(float, float, int, void *refcon);
|
static float startServerDeferred(float, float, int, void *refcon);
|
||||||
static float flightLoopCallback(float, float, int, void *refcon);
|
static float flightLoopCallback(float, float, int, void *refcon);
|
||||||
};
|
};
|
||||||
}
|
} // ns
|
||||||
|
|
||||||
#endif // guard
|
#endif // guard
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ namespace XSwiftBus
|
|||||||
CService(CSettings *staticSettings);
|
CService(CSettings *staticSettings);
|
||||||
|
|
||||||
//! Destructor
|
//! Destructor
|
||||||
~CService() override = default;
|
virtual ~CService() override = default;
|
||||||
|
|
||||||
//! DBus interface name
|
//! DBus interface name
|
||||||
static const std::string &InterfaceName()
|
static const std::string &InterfaceName()
|
||||||
|
|||||||
@@ -164,6 +164,7 @@ namespace XSwiftBus
|
|||||||
static int drawCallback(XPLMDrawingPhase phase, int isBefore, void *refcon);
|
static int drawCallback(XPLMDrawingPhase phase, int isBefore, void *refcon);
|
||||||
static int spaceKeySniffer(char character, XPLMKeyFlags flags, char virtualKey, void *refcon);
|
static int spaceKeySniffer(char character, XPLMKeyFlags flags, char virtualKey, void *refcon);
|
||||||
|
|
||||||
|
//! Remote aircraft
|
||||||
struct Plane
|
struct Plane
|
||||||
{
|
{
|
||||||
void *id = nullptr;
|
void *id = nullptr;
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ namespace XSwiftBus
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *introspection_weather =
|
static const char *introspection_weather =
|
||||||
DBUS_INTROSPECT_1_0_XML_DOCTYPE_DECL_NODE
|
DBUS_INTROSPECT_1_0_XML_DOCTYPE_DECL_NODE
|
||||||
#include "org.swift_project.xswiftbus.weather.xml"
|
#include "org.swift_project.xswiftbus.weather.xml"
|
||||||
;
|
;
|
||||||
|
|||||||
Reference in New Issue
Block a user