-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[skip ci] feat: Add custom X-Plane dataref for connection state
Fixes #304
- Loading branch information
Showing
9 changed files
with
108 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// SPDX-FileCopyrightText: Copyright (C) swift Project Community / Contributors | ||
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1 | ||
|
||
#ifndef SWIFT_SIM_XSWIFTBUS_CUSTOM_DATAREFS_H | ||
#define SWIFT_SIM_XSWIFTBUS_CUSTOM_DATAREFS_H | ||
|
||
namespace XSwiftBus | ||
{ | ||
//! Is swift connected to a network? | ||
struct TSwiftNetworkConnected | ||
{ | ||
//! Dataref name | ||
static constexpr const char *name() { return "org/swift-project/xswiftbus/connected"; } | ||
//! Can be written to? | ||
static constexpr bool writable = false; | ||
//! Dataref type | ||
using type = int; | ||
//! Not an array dataref | ||
static constexpr bool is_array = false; | ||
}; | ||
|
||
} // namespace XSwiftBus | ||
|
||
#endif // SWIFT_SIM_XSWIFTBUS_CUSTOM_DATAREFS_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters