Update copyright notice

This commit is contained in:
Jason Watkins
2018-10-19 17:44:27 -07:00
parent e1105206a3
commit df5e2fd198
37 changed files with 54 additions and 55 deletions

View File

@@ -1,4 +1,4 @@
// Copyright (c) 2013-2016 United States Government as represented by the Administrator of the // Copyright (c) 2013-2018 United States Government as represented by the Administrator of the
// National Aeronautics and Space Administration. All Rights Reserved. // National Aeronautics and Space Administration. All Rights Reserved.
// //
// DISCLAIMERS // DISCLAIMERS

View File

@@ -1,4 +1,4 @@
//Copyright (c) 2013-2016 United States Government as represented by the Administrator of the //Copyright (c) 2013-2018 United States Government as represented by the Administrator of the
//National Aeronautics and Space Administration. All Rights Reserved. //National Aeronautics and Space Administration. All Rights Reserved.
// //
//DISCLAIMERS //DISCLAIMERS

View File

@@ -1,4 +1,4 @@
//Copyright (c) 2013-2016 United States Government as represented by the Administrator of the //Copyright (c) 2013-2018 United States Government as represented by the Administrator of the
//National Aeronautics and Space Administration. All Rights Reserved. //National Aeronautics and Space Administration. All Rights Reserved.
// //
//DISCLAIMERS //DISCLAIMERS

View File

@@ -1,4 +1,4 @@
//Copyright (c) 2013-2016 United States Government as represented by the Administrator of the //Copyright (c) 2013-2018 United States Government as represented by the Administrator of the
//National Aeronautics and Space Administration. All Rights Reserved. //National Aeronautics and Space Administration. All Rights Reserved.
// //
//DISCLAIMERS //DISCLAIMERS

View File

@@ -1,4 +1,4 @@
//Copyright (c) 2013-2016 United States Government as represented by the Administrator of the //Copyright (c) 2013-2018 United States Government as represented by the Administrator of the
//National Aeronautics and Space Administration. All Rights Reserved. //National Aeronautics and Space Administration. All Rights Reserved.
// //
//DISCLAIMERS //DISCLAIMERS

View File

@@ -1,4 +1,4 @@
//Copyright (c) 2013-2016 United States Government as represented by the Administrator of the //Copyright (c) 2013-2018 United States Government as represented by the Administrator of the
//National Aeronautics and Space Administration. All Rights Reserved. //National Aeronautics and Space Administration. All Rights Reserved.
// //
//DISCLAIMERS //DISCLAIMERS

View File

@@ -1,4 +1,4 @@
//Copyright (c) 2013-2016 United States Government as represented by the Administrator of the //Copyright (c) 2013-2018 United States Government as represented by the Administrator of the
//National Aeronautics and Space Administration. All Rights Reserved. //National Aeronautics and Space Administration. All Rights Reserved.
// //
//DISCLAIMERS //DISCLAIMERS

View File

@@ -1,4 +1,4 @@
//Copyright (c) 2013-2016 United States Government as represented by the Administrator of the //Copyright (c) 2013-2018 United States Government as represented by the Administrator of the
//National Aeronautics and Space Administration. All Rights Reserved. //National Aeronautics and Space Administration. All Rights Reserved.
// //
//DISCLAIMERS //DISCLAIMERS

View File

@@ -1,5 +1,5 @@
//NOTICES: //NOTICES:
// Copyright (c) 2013-2016 United States Government as represented by the Administrator of the // Copyright (c) 2013-2018 United States Government as represented by the Administrator of the
// National Aeronautics and Space Administration. All Rights Reserved. // National Aeronautics and Space Administration. All Rights Reserved.
// //
// DISCLAIMERS // DISCLAIMERS

View File

@@ -1,5 +1,5 @@
//NOTICES: //NOTICES:
// Copyright (c) 2013-2016 United States Government as represented by the Administrator of the // Copyright (c) 2013-2018 United States Government as represented by the Administrator of the
// National Aeronautics and Space Administration. All Rights Reserved. // National Aeronautics and Space Administration. All Rights Reserved.
// //
// DISCLAIMERS // DISCLAIMERS

View File

@@ -1,5 +1,5 @@
//NOTICES: //NOTICES:
// Copyright (c) 2013-2016 United States Government as represented by the Administrator of the // Copyright (c) 2013-2018 United States Government as represented by the Administrator of the
// National Aeronautics and Space Administration. All Rights Reserved. // National Aeronautics and Space Administration. All Rights Reserved.
// //
// DISCLAIMERS // DISCLAIMERS

View File

@@ -68,7 +68,7 @@ the next official release.
### Notices ### Notices
Copyright ©2013-2017 United States Government as represented by the Administrator Copyright ©2013-2018 United States Government as represented by the Administrator
of the National Aeronautics and Space Administration. All Rights Reserved. of the National Aeronautics and Space Administration. All Rights Reserved.
No Warranty: THE SUBJECT SOFTWARE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY OF ANY No Warranty: THE SUBJECT SOFTWARE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY OF ANY
@@ -102,14 +102,14 @@ Software without restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
Software, and to permit persons to whom the Software is furnished to do so, Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions: subject to the following conditions:
* Redistributions of source code must retain the above copyright notice, this * Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer. list of conditions and the following disclaimer.
* Neither the names of the authors nor that of X-Plane or Laminar Research may * Neither the names of the authors nor that of X-Plane or Laminar Research may
be used to endorse or promote products derived from this software without be used to endorse or promote products derived from this software without
specific prior written permission from the authors or Laminar Research, specific prior written permission from the authors or Laminar Research,
respectively. respectively.
X-Plane API SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS X-Plane API SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE

View File

@@ -1,4 +1,4 @@
//Copyright (c) 2013-2015 United States Government as represented by the Administrator of the //Copyright (c) 2013-2018 United States Government as represented by the Administrator of the
//National Aeronautics and Space Administration. All Rights Reserved. //National Aeronautics and Space Administration. All Rights Reserved.
#ifndef CTRLTESTS_H #ifndef CTRLTESTS_H
#define CTRLTESTS_H #define CTRLTESTS_H
@@ -200,4 +200,4 @@ int testGETC_NonPlayer()
float CTRL[7] = { 0.0F, 0.0F, 0.0F, 0.8F, 1.0F, 0.5F, -1.5F }; float CTRL[7] = { 0.0F, 0.0F, 0.0F, 0.8F, 1.0F, 0.5F, -1.5F };
return doGETCTest(CTRL, 2, CTRL); return doGETCTest(CTRL, 2, CTRL);
} }
#endif #endif

View File

@@ -1,4 +1,4 @@
//Copyright (c) 2013-2015 United States Government as represented by the Administrator of the //Copyright (c) 2013-2018 United States Government as represented by the Administrator of the
//National Aeronautics and Space Administration. All Rights Reserved. //National Aeronautics and Space Administration. All Rights Reserved.
#ifndef DATATESTS_H #ifndef DATATESTS_H
#define DATATESTS_H #define DATATESTS_H
@@ -59,4 +59,4 @@ int testDATA()
return 0; return 0;
} }
#endif #endif

View File

@@ -1,4 +1,4 @@
//Copyright (c) 2013-2015 United States Government as represented by the Administrator of the //Copyright (c) 2013-2018 United States Government as represented by the Administrator of the
//National Aeronautics and Space Administration. All Rights Reserved. //National Aeronautics and Space Administration. All Rights Reserved.
#ifndef DREFTESTS_H #ifndef DREFTESTS_H
#define DREFTESTS_H #define DREFTESTS_H

View File

@@ -1,4 +1,4 @@
//Copyright (c) 2013-2015 United States Government as represented by the Administrator of the //Copyright (c) 2013-2018 United States Government as represented by the Administrator of the
//National Aeronautics and Space Administration. All Rights Reserved. //National Aeronautics and Space Administration. All Rights Reserved.
#ifndef POSITESTS_H #ifndef POSITESTS_H
#define POSITESTS_H #define POSITESTS_H

View File

@@ -1,4 +1,4 @@
//Copyright (c) 2013-2015 United States Government as represented by the Administrator of the //Copyright (c) 2013-2018 United States Government as represented by the Administrator of the
//National Aeronautics and Space Administration. All Rights Reserved. //National Aeronautics and Space Administration. All Rights Reserved.
#ifndef SIMUTESTS_H #ifndef SIMUTESTS_H
#define SIMIUTESTS_H #define SIMIUTESTS_H

View File

@@ -1,4 +1,4 @@
//Copyright (c) 2013-2015 United States Government as represented by the Administrator of the //Copyright (c) 2013-2018 United States Government as represented by the Administrator of the
//National Aeronautics and Space Administration. All Rights Reserved. //National Aeronautics and Space Administration. All Rights Reserved.
#include "Test.h" #include "Test.h"

View File

@@ -1,4 +1,4 @@
//Copyright (c) 2013-2015 United States Government as represented by the Administrator of the //Copyright (c) 2013-2018 United States Government as represented by the Administrator of the
//National Aeronautics and Space Administration. All Rights Reserved. //National Aeronautics and Space Administration. All Rights Reserved.
#ifndef TESTRUNNER_H #ifndef TESTRUNNER_H
#define TESTRUNNER_H #define TESTRUNNER_H
@@ -36,4 +36,4 @@ int compareArrays(float* expected[], int esizes[], float* actual[], int asizes[]
int compareDoubleArray(double expected[], double actual[], int size); int compareDoubleArray(double expected[], double actual[], int size);
int compareDoubleArrays(double* expected[], int esizes[], double* actual[], int asizes[], int count); int compareDoubleArrays(double* expected[], int esizes[], double* actual[], int asizes[], int count);
#endif #endif

View File

@@ -1,4 +1,4 @@
//Copyright (c) 2013-2015 United States Government as represented by the Administrator of the //Copyright (c) 2013-2018 United States Government as represented by the Administrator of the
//National Aeronautics and Space Administration. All Rights Reserved. //National Aeronautics and Space Administration. All Rights Reserved.
#ifndef TEXTTESTS_H #ifndef TEXTTESTS_H
#define TEXTTESTS_H #define TEXTTESTS_H
@@ -29,4 +29,4 @@ int testTEXT()
return 0; return 0;
} }
#endif #endif

View File

@@ -1,4 +1,4 @@
//Copyright (c) 2013-2015 United States Government as represented by the Administrator of the //Copyright (c) 2013-2018 United States Government as represented by the Administrator of the
//National Aeronautics and Space Administration. All Rights Reserved. //National Aeronautics and Space Administration. All Rights Reserved.
#ifndef UDPTESTS_H #ifndef UDPTESTS_H
#define UDPTESTS_H #define UDPTESTS_H
@@ -52,4 +52,4 @@ int testCONN()
return 0; return 0;
} }
#endif #endif

View File

@@ -1,4 +1,4 @@
//Copyright (c) 2013-2015 United States Government as represented by the Administrator of the //Copyright (c) 2013-2018 United States Government as represented by the Administrator of the
//National Aeronautics and Space Administration. All Rights Reserved. //National Aeronautics and Space Administration. All Rights Reserved.
#ifndef VIEWTESTS_H #ifndef VIEWTESTS_H
#define VIEWTESTS_H #define VIEWTESTS_H
@@ -70,4 +70,4 @@ int testView()
return doViewTest(XPC_VIEW_CHASE, XPC_VDREF_CHASE); return doViewTest(XPC_VIEW_CHASE, XPC_VDREF_CHASE);
} }
#endif #endif

View File

@@ -1,4 +1,4 @@
//Copyright (c) 2013-2015 United States Government as represented by the Administrator of the //Copyright (c) 2013-2018 United States Government as represented by the Administrator of the
//National Aeronautics and Space Administration. All Rights Reserved. //National Aeronautics and Space Administration. All Rights Reserved.
#ifndef WYPTTESTS_H #ifndef WYPTTESTS_H
#define WYPTTESTS_H #define WYPTTESTS_H
@@ -39,4 +39,4 @@ int testWYPT()
return 0; return 0;
} }
#endif #endif

View File

@@ -1,4 +1,4 @@
//Copyright (c) 2013-2015 United States Government as represented by the Administrator of the //Copyright (c) 2013-2018 United States Government as represented by the Administrator of the
//National Aeronautics and Space Administration. All Rights Reserved. //National Aeronautics and Space Administration. All Rights Reserved.
#include "Test.h" #include "Test.h"
#include "UDPTests.h" #include "UDPTests.h"
@@ -85,4 +85,3 @@ int main(int argc, const char * argv[]) {
return 0; return 0;
} }

View File

@@ -1,4 +1,4 @@
// Copyright (c) 2013-2017 United States Government as represented by the Administrator of the // Copyright (c) 2013-2018 United States Government as represented by the Administrator of the
// National Aeronautics and Space Administration. All Rights Reserved. // National Aeronautics and Space Administration. All Rights Reserved.
// //
// X-Plane API // X-Plane API

View File

@@ -1,4 +1,4 @@
// Copyright (c) 2013-2017 United States Government as represented by the Administrator of the // Copyright (c) 2013-2018 United States Government as represented by the Administrator of the
// National Aeronautics and Space Administration. All Rights Reserved. // National Aeronautics and Space Administration. All Rights Reserved.
#ifndef XPCPLUGIN_DATAMANAGER_H_ #ifndef XPCPLUGIN_DATAMANAGER_H_
#define XPCPLUGIN_DATAMANAGER_H_ #define XPCPLUGIN_DATAMANAGER_H_

View File

@@ -1,4 +1,4 @@
// Copyright (c) 2013-2017 United States Government as represented by the Administrator of the // Copyright (c) 2013-2018 United States Government as represented by the Administrator of the
// National Aeronautics and Space Administration. All Rights Reserved. // National Aeronautics and Space Administration. All Rights Reserved.
// //
// X-Plane API // X-Plane API

View File

@@ -1,4 +1,4 @@
// Copyright (c) 2013-2017 United States Government as represented by the Administrator of the // Copyright (c) 2013-2018 United States Government as represented by the Administrator of the
// National Aeronautics and Space Administration. All Rights Reserved. // National Aeronautics and Space Administration. All Rights Reserved.
#ifndef XPCPLUGIN_DRAWING_H_ #ifndef XPCPLUGIN_DRAWING_H_
#define XPCPLUGIN_DRAWING_H_ #define XPCPLUGIN_DRAWING_H_

View File

@@ -1,4 +1,4 @@
// Copyright (c) 2013-2017 United States Government as represented by the Administrator of the // Copyright (c) 2013-2018 United States Government as represented by the Administrator of the
// National Aeronautics and Space Administration. All Rights Reserved. // National Aeronautics and Space Administration. All Rights Reserved.
#include "Log.h" #include "Log.h"
@@ -111,7 +111,7 @@ namespace XPC
std::fprintf(fd, "X-Plane Connect [Version %s]\n", version.c_str()); std::fprintf(fd, "X-Plane Connect [Version %s]\n", version.c_str());
std::fprintf(fd, "Compiled %s %s\n", __DATE__, __TIME__); std::fprintf(fd, "Compiled %s %s\n", __DATE__, __TIME__);
std::fprintf(fd, "Copyright (c) 2013-2017 United States Government as represented by the\n"); std::fprintf(fd, "Copyright (c) 2013-2018 United States Government as represented by the\n");
std::fprintf(fd, "Administrator of the National Aeronautics and Space Administration.\n"); std::fprintf(fd, "Administrator of the National Aeronautics and Space Administration.\n");
std::fprintf(fd, "All Rights Reserved.\n\n"); std::fprintf(fd, "All Rights Reserved.\n\n");

View File

@@ -1,4 +1,4 @@
// Copyright (c) 2013-2017 United States Government as represented by the Administrator of the // Copyright (c) 2013-2018 United States Government as represented by the Administrator of the
// National Aeronautics and Space Administration. All Rights Reserved. // National Aeronautics and Space Administration. All Rights Reserved.
#ifndef XPCPLUGIN_LOG_H_ #ifndef XPCPLUGIN_LOG_H_
#define XPCPLUGIN_LOG_H_ #define XPCPLUGIN_LOG_H_
@@ -27,7 +27,7 @@
namespace XPC namespace XPC
{ {
/// Handles logging for the plugin. /// Handles logging for the plugin.
/// ///
/// \details Provides functions to write lines to the XPC log file. /// \details Provides functions to write lines to the XPC log file.
/// \author Jason Watkins /// \author Jason Watkins
/// \version 1.1 /// \version 1.1

View File

@@ -1,4 +1,4 @@
// Copyright (c) 2013-2017 United States Government as represented by the Administrator of the // Copyright (c) 2013-2018 United States Government as represented by the Administrator of the
// National Aeronautics and Space Administration. All Rights Reserved. // National Aeronautics and Space Administration. All Rights Reserved.
#include "Message.h" #include "Message.h"
#include "Log.h" #include "Log.h"

View File

@@ -1,4 +1,4 @@
// Copyright (c) 2013-2017 United States Government as represented by the Administrator of the // Copyright (c) 2013-2018 United States Government as represented by the Administrator of the
// National Aeronautics and Space Administration. All Rights Reserved. // National Aeronautics and Space Administration. All Rights Reserved.
#ifndef XPCPLUGIN_MESSAGE_H_ #ifndef XPCPLUGIN_MESSAGE_H_
#define XPCPLUGIN_MESSAGE_H_ #define XPCPLUGIN_MESSAGE_H_

View File

@@ -1,4 +1,4 @@
// Copyright (c) 2013-2017 United States Government as represented by the Administrator of the // Copyright (c) 2013-2018 United States Government as represented by the Administrator of the
// National Aeronautics and Space Administration. All Rights Reserved. // National Aeronautics and Space Administration. All Rights Reserved.
// //
// X-Plane API // X-Plane API
@@ -578,7 +578,7 @@ namespace XPC
{ {
DataManager::SetGear(gear, true, aircraftNumber); DataManager::SetGear(gear, true, aircraftNumber);
} }
if (aircraftNumber > 0) if (aircraftNumber > 0)
{ {
// Enable AI for the aircraftNumber we are setting // Enable AI for the aircraftNumber we are setting
@@ -589,7 +589,7 @@ namespace XPC
ai[aircraftNumber] = 1; ai[aircraftNumber] = 1;
DataManager::Set(DREF_PauseAI, ai, 0, 20); DataManager::Set(DREF_PauseAI, ai, 0, 20);
} }
} }
} }
void MessageHandlers::HandleSimu(const Message& msg) void MessageHandlers::HandleSimu(const Message& msg)
@@ -621,7 +621,7 @@ namespace XPC
else if ((v >= 200) && (v < 220)) else if ((v >= 200) && (v < 220))
{ {
DataManager::GetIntArray(DREF_Pause, value, 20); DataManager::GetIntArray(DREF_Pause, value, 20);
value[v - 200] = 0; value[v - 200] = 0;
} }
else else
{ {
@@ -633,7 +633,7 @@ namespace XPC
// Set DREF // Set DREF
DataManager::Set(DREF_Pause, value, 20); DataManager::Set(DREF_Pause, value, 20);
if (v == 0) if (v == 0)
{ {
Log::WriteLine(LOG_INFO, "SIMU", "Simulation resumed for all a/c"); Log::WriteLine(LOG_INFO, "SIMU", "Simulation resumed for all a/c");

View File

@@ -1,4 +1,4 @@
// Copyright (c) 2013-2017 United States Government as represented by the Administrator of the // Copyright (c) 2013-2018 United States Government as represented by the Administrator of the
// National Aeronautics and Space Administration. All Rights Reserved. // National Aeronautics and Space Administration. All Rights Reserved.
#ifndef XPCPLUGIN_MESSAGEHANDLERS_H_ #ifndef XPCPLUGIN_MESSAGEHANDLERS_H_
#define XPCPLUGIN_MESSAGEHANDLERS_H_ #define XPCPLUGIN_MESSAGEHANDLERS_H_

View File

@@ -1,4 +1,4 @@
// Copyright (c) 2013-2017 United States Government as represented by the Administrator of the // Copyright (c) 2013-2018 United States Government as represented by the Administrator of the
// National Aeronautics and Space Administration. All Rights Reserved. // National Aeronautics and Space Administration. All Rights Reserved.
#include "Log.h" #include "Log.h"
#include "UDPSocket.h" #include "UDPSocket.h"

View File

@@ -1,4 +1,4 @@
// Copyright (c) 2013-2017 United States Government as represented by the Administrator of the // Copyright (c) 2013-2018 United States Government as represented by the Administrator of the
// National Aeronautics and Space Administration. All Rights Reserved. // National Aeronautics and Space Administration. All Rights Reserved.
#ifndef XPCPLUGIN_SOCKET_H_ #ifndef XPCPLUGIN_SOCKET_H_
#define XPCPLUGIN_SOCKET_H_ #define XPCPLUGIN_SOCKET_H_

View File

@@ -1,4 +1,4 @@
// Copyright (c) 2013-2017 United States Government as represented by the Administrator of the // Copyright (c) 2013-2018 United States Government as represented by the Administrator of the
// National Aeronautics and Space Administration. All Rights Reserved. // National Aeronautics and Space Administration. All Rights Reserved.
// //
// DISCLAIMERS // DISCLAIMERS
@@ -92,7 +92,7 @@ PLUGIN_API int XPluginStart(char* outName, char* outSig, char* outDesc)
{ {
strcpy(outName, "X-Plane Connect [Version 1.2.1]"); strcpy(outName, "X-Plane Connect [Version 1.2.1]");
strcpy(outSig, "NASA.XPlaneConnect"); strcpy(outSig, "NASA.XPlaneConnect");
strcpy(outDesc, "X Plane Communications Toolbox\nCopyright (c) 2013-2017 United States Government as represented by the Administrator of the National Aeronautics and Space Administration. All Rights Reserved."); strcpy(outDesc, "X Plane Communications Toolbox\nCopyright (c) 2013-2018 United States Government as represented by the Administrator of the National Aeronautics and Space Administration. All Rights Reserved.");
#if (__APPLE__) #if (__APPLE__)
int (*_abs)( int ) = & std::abs; // Needed to resolve ambiguity for OS X compilation int (*_abs)( int ) = & std::abs; // Needed to resolve ambiguity for OS X compilation
@@ -147,7 +147,7 @@ PLUGIN_API int XPluginEnable(void)
XPC::Log::FormatLine(LOG_INFO, "EXEC", "Benchmarking Enabled (Verbosity: %i)", benchmarkingSwitch); XPC::Log::FormatLine(LOG_INFO, "EXEC", "Benchmarking Enabled (Verbosity: %i)", benchmarkingSwitch);
} }
XPC::Log::FormatLine(LOG_INFO, "EXEC", "Debug Logging Enabled (Verbosity: %i)", LOG_LEVEL); XPC::Log::FormatLine(LOG_INFO, "EXEC", "Debug Logging Enabled (Verbosity: %i)", LOG_LEVEL);
float interval = -1; // Call every frame float interval = -1; // Call every frame
void* refcon = NULL; // Don't pass anything to the callback directly void* refcon = NULL; // Don't pass anything to the callback directly
XPLMRegisterFlightLoopCallback(XPCFlightLoopCallback, interval, refcon); XPLMRegisterFlightLoopCallback(XPCFlightLoopCallback, interval, refcon);