diff --git a/generated/nidcpower/nidcpower_library.cpp b/generated/nidcpower/nidcpower_library.cpp index a93521f8e..ee0d0205c 100644 --- a/generated/nidcpower/nidcpower_library.cpp +++ b/generated/nidcpower/nidcpower_library.cpp @@ -169,6 +169,7 @@ NiDCPowerLibrary::NiDCPowerLibrary() : shared_library_(kLibraryName) function_pointers_.UnlockSession = reinterpret_cast(shared_library_.get_function_pointer("niDCPower_UnlockSession")); function_pointers_.WaitForEvent = reinterpret_cast(shared_library_.get_function_pointer("niDCPower_WaitForEvent")); function_pointers_.WaitForEventWithChannels = reinterpret_cast(shared_library_.get_function_pointer("niDCPower_WaitForEventWithChannels")); + function_pointers_.SetRuntimeEnvironment = reinterpret_cast(shared_library_.get_function_pointer("niDCPower_SetRuntimeEnvironment")); } NiDCPowerLibrary::~NiDCPowerLibrary() @@ -1366,4 +1367,12 @@ ViStatus NiDCPowerLibrary::WaitForEventWithChannels(ViSession vi, ViConstString return function_pointers_.WaitForEventWithChannels(vi, channelName, eventId, timeout); } +ViStatus NiDCPowerLibrary::SetRuntimeEnvironment(ViConstString environment, ViConstString environmentVersion, ViConstString reserved1, ViConstString reserved2) +{ + if (!function_pointers_.SetRuntimeEnvironment) { + throw nidevice_grpc::LibraryLoadException("Could not find niDCPower_SetRuntimeEnvironment."); + } + return function_pointers_.SetRuntimeEnvironment(environment, environmentVersion, reserved1, reserved2); +} + } // namespace nidcpower_grpc diff --git a/generated/nidcpower/nidcpower_library.h b/generated/nidcpower/nidcpower_library.h index 6ae9bd49b..95a8c5944 100644 --- a/generated/nidcpower/nidcpower_library.h +++ b/generated/nidcpower/nidcpower_library.h @@ -166,6 +166,7 @@ class NiDCPowerLibrary : public nidcpower_grpc::NiDCPowerLibraryInterface { ViStatus UnlockSession(ViSession vi, ViBoolean* callerHasLock); ViStatus WaitForEvent(ViSession vi, ViInt32 eventId, ViReal64 timeout); ViStatus WaitForEventWithChannels(ViSession vi, ViConstString channelName, ViInt32 eventId, ViReal64 timeout); + ViStatus SetRuntimeEnvironment(ViConstString environment, ViConstString environmentVersion, ViConstString reserved1, ViConstString reserved2); private: using AbortPtr = decltype(&niDCPower_Abort); @@ -316,6 +317,7 @@ class NiDCPowerLibrary : public nidcpower_grpc::NiDCPowerLibraryInterface { using UnlockSessionPtr = ViStatus (*)(ViSession vi, ViBoolean* callerHasLock); using WaitForEventPtr = decltype(&niDCPower_WaitForEvent); using WaitForEventWithChannelsPtr = decltype(&niDCPower_WaitForEventWithChannels); + using SetRuntimeEnvironmentPtr = ViStatus (*)(ViConstString environment, ViConstString environmentVersion, ViConstString reserved1, ViConstString reserved2); typedef struct FunctionPointers { AbortPtr Abort; @@ -466,6 +468,7 @@ class NiDCPowerLibrary : public nidcpower_grpc::NiDCPowerLibraryInterface { UnlockSessionPtr UnlockSession; WaitForEventPtr WaitForEvent; WaitForEventWithChannelsPtr WaitForEventWithChannels; + SetRuntimeEnvironmentPtr SetRuntimeEnvironment; } FunctionLoadStatus; nidevice_grpc::SharedLibrary shared_library_; diff --git a/generated/nidcpower/nidcpower_library_interface.h b/generated/nidcpower/nidcpower_library_interface.h index d082e7815..2be7d920d 100644 --- a/generated/nidcpower/nidcpower_library_interface.h +++ b/generated/nidcpower/nidcpower_library_interface.h @@ -163,6 +163,7 @@ class NiDCPowerLibraryInterface { virtual ViStatus UnlockSession(ViSession vi, ViBoolean* callerHasLock) = 0; virtual ViStatus WaitForEvent(ViSession vi, ViInt32 eventId, ViReal64 timeout) = 0; virtual ViStatus WaitForEventWithChannels(ViSession vi, ViConstString channelName, ViInt32 eventId, ViReal64 timeout) = 0; + virtual ViStatus SetRuntimeEnvironment(ViConstString environment, ViConstString environmentVersion, ViConstString reserved1, ViConstString reserved2) = 0; }; } // namespace nidcpower_grpc diff --git a/generated/nidcpower/nidcpower_mock_library.h b/generated/nidcpower/nidcpower_mock_library.h index c2af1af1f..03bbf4412 100644 --- a/generated/nidcpower/nidcpower_mock_library.h +++ b/generated/nidcpower/nidcpower_mock_library.h @@ -165,6 +165,7 @@ class NiDCPowerMockLibrary : public nidcpower_grpc::NiDCPowerLibraryInterface { MOCK_METHOD(ViStatus, UnlockSession, (ViSession vi, ViBoolean* callerHasLock), (override)); MOCK_METHOD(ViStatus, WaitForEvent, (ViSession vi, ViInt32 eventId, ViReal64 timeout), (override)); MOCK_METHOD(ViStatus, WaitForEventWithChannels, (ViSession vi, ViConstString channelName, ViInt32 eventId, ViReal64 timeout), (override)); + MOCK_METHOD(ViStatus, SetRuntimeEnvironment, (ViConstString environment, ViConstString environmentVersion, ViConstString reserved1, ViConstString reserved2), (override)); }; } // namespace unit diff --git a/generated/nidigitalpattern/nidigitalpattern_library.cpp b/generated/nidigitalpattern/nidigitalpattern_library.cpp index 8cda12415..a7b38d785 100644 --- a/generated/nidigitalpattern/nidigitalpattern_library.cpp +++ b/generated/nidigitalpattern/nidigitalpattern_library.cpp @@ -153,6 +153,7 @@ NiDigitalLibrary::NiDigitalLibrary() : shared_library_(kLibraryName) function_pointers_.WriteSourceWaveformDataFromFileTDMS = reinterpret_cast(shared_library_.get_function_pointer("niDigital_WriteSourceWaveformDataFromFileTDMS")); function_pointers_.WriteSourceWaveformSiteUniqueU32 = reinterpret_cast(shared_library_.get_function_pointer("niDigital_WriteSourceWaveformSiteUniqueU32")); function_pointers_.WriteStatic = reinterpret_cast(shared_library_.get_function_pointer("niDigital_WriteStatic")); + function_pointers_.SetRuntimeEnvironment = reinterpret_cast(shared_library_.get_function_pointer("niDigital_SetRuntimeEnvironment")); } NiDigitalLibrary::~NiDigitalLibrary() @@ -1222,4 +1223,12 @@ ViStatus NiDigitalLibrary::WriteStatic(ViSession vi, ViConstString channelList, return function_pointers_.WriteStatic(vi, channelList, state); } +ViStatus NiDigitalLibrary::SetRuntimeEnvironment(ViConstString environment, ViConstString environmentVersion, ViConstString reserved1, ViConstString reserved2) +{ + if (!function_pointers_.SetRuntimeEnvironment) { + throw nidevice_grpc::LibraryLoadException("Could not find niDigital_SetRuntimeEnvironment."); + } + return function_pointers_.SetRuntimeEnvironment(environment, environmentVersion, reserved1, reserved2); +} + } // namespace nidigitalpattern_grpc diff --git a/generated/nidigitalpattern/nidigitalpattern_library.h b/generated/nidigitalpattern/nidigitalpattern_library.h index 4e8910459..e934e19bb 100644 --- a/generated/nidigitalpattern/nidigitalpattern_library.h +++ b/generated/nidigitalpattern/nidigitalpattern_library.h @@ -150,6 +150,7 @@ class NiDigitalLibrary : public nidigitalpattern_grpc::NiDigitalLibraryInterface ViStatus WriteSourceWaveformDataFromFileTDMS(ViSession vi, ViConstString waveformName, ViConstString waveformFilePath); ViStatus WriteSourceWaveformSiteUniqueU32(ViSession vi, ViConstString siteList, ViConstString waveformName, ViInt32 numWaveforms, ViInt32 samplesPerWaveform, ViUInt32 waveformData[1]); ViStatus WriteStatic(ViSession vi, ViConstString channelList, ViUInt8 state); + ViStatus SetRuntimeEnvironment(ViConstString environment, ViConstString environmentVersion, ViConstString reserved1, ViConstString reserved2); private: using AbortPtr = decltype(&niDigital_Abort); @@ -284,6 +285,7 @@ class NiDigitalLibrary : public nidigitalpattern_grpc::NiDigitalLibraryInterface using WriteSourceWaveformDataFromFileTDMSPtr = decltype(&niDigital_WriteSourceWaveformDataFromFileTDMS); using WriteSourceWaveformSiteUniqueU32Ptr = decltype(&niDigital_WriteSourceWaveformSiteUniqueU32); using WriteStaticPtr = decltype(&niDigital_WriteStatic); + using SetRuntimeEnvironmentPtr = ViStatus (*)(ViConstString environment, ViConstString environmentVersion, ViConstString reserved1, ViConstString reserved2); typedef struct FunctionPointers { AbortPtr Abort; @@ -418,6 +420,7 @@ class NiDigitalLibrary : public nidigitalpattern_grpc::NiDigitalLibraryInterface WriteSourceWaveformDataFromFileTDMSPtr WriteSourceWaveformDataFromFileTDMS; WriteSourceWaveformSiteUniqueU32Ptr WriteSourceWaveformSiteUniqueU32; WriteStaticPtr WriteStatic; + SetRuntimeEnvironmentPtr SetRuntimeEnvironment; } FunctionLoadStatus; nidevice_grpc::SharedLibrary shared_library_; diff --git a/generated/nidigitalpattern/nidigitalpattern_library_interface.h b/generated/nidigitalpattern/nidigitalpattern_library_interface.h index 9ac20d8c4..ba202c262 100644 --- a/generated/nidigitalpattern/nidigitalpattern_library_interface.h +++ b/generated/nidigitalpattern/nidigitalpattern_library_interface.h @@ -147,6 +147,7 @@ class NiDigitalLibraryInterface { virtual ViStatus WriteSourceWaveformDataFromFileTDMS(ViSession vi, ViConstString waveformName, ViConstString waveformFilePath) = 0; virtual ViStatus WriteSourceWaveformSiteUniqueU32(ViSession vi, ViConstString siteList, ViConstString waveformName, ViInt32 numWaveforms, ViInt32 samplesPerWaveform, ViUInt32 waveformData[1]) = 0; virtual ViStatus WriteStatic(ViSession vi, ViConstString channelList, ViUInt8 state) = 0; + virtual ViStatus SetRuntimeEnvironment(ViConstString environment, ViConstString environmentVersion, ViConstString reserved1, ViConstString reserved2) = 0; }; } // namespace nidigitalpattern_grpc diff --git a/generated/nidigitalpattern/nidigitalpattern_mock_library.h b/generated/nidigitalpattern/nidigitalpattern_mock_library.h index 2a88cd10f..300b8d9e5 100644 --- a/generated/nidigitalpattern/nidigitalpattern_mock_library.h +++ b/generated/nidigitalpattern/nidigitalpattern_mock_library.h @@ -149,6 +149,7 @@ class NiDigitalMockLibrary : public nidigitalpattern_grpc::NiDigitalLibraryInter MOCK_METHOD(ViStatus, WriteSourceWaveformDataFromFileTDMS, (ViSession vi, ViConstString waveformName, ViConstString waveformFilePath), (override)); MOCK_METHOD(ViStatus, WriteSourceWaveformSiteUniqueU32, (ViSession vi, ViConstString siteList, ViConstString waveformName, ViInt32 numWaveforms, ViInt32 samplesPerWaveform, ViUInt32 waveformData[1]), (override)); MOCK_METHOD(ViStatus, WriteStatic, (ViSession vi, ViConstString channelList, ViUInt8 state), (override)); + MOCK_METHOD(ViStatus, SetRuntimeEnvironment, (ViConstString environment, ViConstString environmentVersion, ViConstString reserved1, ViConstString reserved2), (override)); }; } // namespace unit diff --git a/generated/nidmm/nidmm_library.cpp b/generated/nidmm/nidmm_library.cpp index 2fae8b972..34a79fce5 100644 --- a/generated/nidmm/nidmm_library.cpp +++ b/generated/nidmm/nidmm_library.cpp @@ -110,6 +110,7 @@ NiDmmLibrary::NiDmmLibrary() : shared_library_(kLibraryName) function_pointers_.SetAttributeViSession = reinterpret_cast(shared_library_.get_function_pointer("niDMM_SetAttributeViSession")); function_pointers_.SetAttributeViString = reinterpret_cast(shared_library_.get_function_pointer("niDMM_SetAttributeViString")); function_pointers_.UnlockSession = reinterpret_cast(shared_library_.get_function_pointer("niDMM_UnlockSession")); + function_pointers_.SetRuntimeEnvironment = reinterpret_cast(shared_library_.get_function_pointer("niDMM_SetRuntimeEnvironment")); } NiDmmLibrary::~NiDmmLibrary() @@ -835,4 +836,12 @@ ViStatus NiDmmLibrary::UnlockSession(ViSession vi, ViBoolean* callerHasLock) return function_pointers_.UnlockSession(vi, callerHasLock); } +ViStatus NiDmmLibrary::SetRuntimeEnvironment(ViConstString environment, ViConstString environmentVersion, ViConstString reserved1, ViConstString reserved2) +{ + if (!function_pointers_.SetRuntimeEnvironment) { + throw nidevice_grpc::LibraryLoadException("Could not find niDMM_SetRuntimeEnvironment."); + } + return function_pointers_.SetRuntimeEnvironment(environment, environmentVersion, reserved1, reserved2); +} + } // namespace nidmm_grpc diff --git a/generated/nidmm/nidmm_library.h b/generated/nidmm/nidmm_library.h index de4bdf34f..10d70d8ee 100644 --- a/generated/nidmm/nidmm_library.h +++ b/generated/nidmm/nidmm_library.h @@ -107,6 +107,7 @@ class NiDmmLibrary : public nidmm_grpc::NiDmmLibraryInterface { ViStatus SetAttributeViSession(ViSession vi, ViConstString channelName, ViAttr attributeId, ViSession attributeValue); ViStatus SetAttributeViString(ViSession vi, ViConstString channelName, ViAttr attributeId, ViString attributeValue); ViStatus UnlockSession(ViSession vi, ViBoolean* callerHasLock); + ViStatus SetRuntimeEnvironment(ViConstString environment, ViConstString environmentVersion, ViConstString reserved1, ViConstString reserved2); private: using AbortPtr = decltype(&niDMM_Abort); @@ -198,6 +199,7 @@ class NiDmmLibrary : public nidmm_grpc::NiDmmLibraryInterface { using SetAttributeViSessionPtr = decltype(&niDMM_SetAttributeViSession); using SetAttributeViStringPtr = decltype(&niDMM_SetAttributeViString); using UnlockSessionPtr = ViStatus (*)(ViSession vi, ViBoolean* callerHasLock); + using SetRuntimeEnvironmentPtr = ViStatus (*)(ViConstString environment, ViConstString environmentVersion, ViConstString reserved1, ViConstString reserved2); typedef struct FunctionPointers { AbortPtr Abort; @@ -289,6 +291,7 @@ class NiDmmLibrary : public nidmm_grpc::NiDmmLibraryInterface { SetAttributeViSessionPtr SetAttributeViSession; SetAttributeViStringPtr SetAttributeViString; UnlockSessionPtr UnlockSession; + SetRuntimeEnvironmentPtr SetRuntimeEnvironment; } FunctionLoadStatus; nidevice_grpc::SharedLibrary shared_library_; diff --git a/generated/nidmm/nidmm_library_interface.h b/generated/nidmm/nidmm_library_interface.h index 15791a544..cd1fe8173 100644 --- a/generated/nidmm/nidmm_library_interface.h +++ b/generated/nidmm/nidmm_library_interface.h @@ -104,6 +104,7 @@ class NiDmmLibraryInterface { virtual ViStatus SetAttributeViSession(ViSession vi, ViConstString channelName, ViAttr attributeId, ViSession attributeValue) = 0; virtual ViStatus SetAttributeViString(ViSession vi, ViConstString channelName, ViAttr attributeId, ViString attributeValue) = 0; virtual ViStatus UnlockSession(ViSession vi, ViBoolean* callerHasLock) = 0; + virtual ViStatus SetRuntimeEnvironment(ViConstString environment, ViConstString environmentVersion, ViConstString reserved1, ViConstString reserved2) = 0; }; } // namespace nidmm_grpc diff --git a/generated/nidmm/nidmm_mock_library.h b/generated/nidmm/nidmm_mock_library.h index 5c44361d2..9e2c2d7d3 100644 --- a/generated/nidmm/nidmm_mock_library.h +++ b/generated/nidmm/nidmm_mock_library.h @@ -106,6 +106,7 @@ class NiDmmMockLibrary : public nidmm_grpc::NiDmmLibraryInterface { MOCK_METHOD(ViStatus, SetAttributeViSession, (ViSession vi, ViConstString channelName, ViAttr attributeId, ViSession attributeValue), (override)); MOCK_METHOD(ViStatus, SetAttributeViString, (ViSession vi, ViConstString channelName, ViAttr attributeId, ViString attributeValue), (override)); MOCK_METHOD(ViStatus, UnlockSession, (ViSession vi, ViBoolean* callerHasLock), (override)); + MOCK_METHOD(ViStatus, SetRuntimeEnvironment, (ViConstString environment, ViConstString environmentVersion, ViConstString reserved1, ViConstString reserved2), (override)); }; } // namespace unit diff --git a/generated/nifake/nifake_library.cpp b/generated/nifake/nifake_library.cpp index 5241438e0..f3c7fda11 100644 --- a/generated/nifake/nifake_library.cpp +++ b/generated/nifake/nifake_library.cpp @@ -114,6 +114,7 @@ NiFakeLibrary::NiFakeLibrary() : shared_library_(kLibraryName) function_pointers_.ViUInt8ArrayInputFunction = reinterpret_cast(shared_library_.get_function_pointer("niFake_ViUInt8ArrayInputFunction")); function_pointers_.ViUInt8ArrayOutputFunction = reinterpret_cast(shared_library_.get_function_pointer("niFake_ViUInt8ArrayOutputFunction")); function_pointers_.WriteWaveform = reinterpret_cast(shared_library_.get_function_pointer("niFake_WriteWaveform")); + function_pointers_.SetRuntimeEnvironment = reinterpret_cast(shared_library_.get_function_pointer("niFake_SetRuntimeEnvironment")); } NiFakeLibrary::~NiFakeLibrary() @@ -871,4 +872,12 @@ ViStatus NiFakeLibrary::WriteWaveform(ViSession vi, ViInt32 numberOfSamples, ViR return function_pointers_.WriteWaveform(vi, numberOfSamples, waveform); } +ViStatus NiFakeLibrary::SetRuntimeEnvironment(ViConstString environment, ViConstString environmentVersion, ViConstString reserved1, ViConstString reserved2) +{ + if (!function_pointers_.SetRuntimeEnvironment) { + throw nidevice_grpc::LibraryLoadException("Could not find niFake_SetRuntimeEnvironment."); + } + return function_pointers_.SetRuntimeEnvironment(environment, environmentVersion, reserved1, reserved2); +} + } // namespace nifake_grpc diff --git a/generated/nifake/nifake_library.h b/generated/nifake/nifake_library.h index 07726e0eb..68090fa4f 100644 --- a/generated/nifake/nifake_library.h +++ b/generated/nifake/nifake_library.h @@ -111,6 +111,7 @@ class NiFakeLibrary : public nifake_grpc::NiFakeLibraryInterface { ViStatus ViUInt8ArrayInputFunction(ViSession vi, ViInt32 numberOfElements, ViUInt8 anArray[]); ViStatus ViUInt8ArrayOutputFunction(ViSession vi, ViInt32 numberOfElements, ViUInt8 anArray[]); ViStatus WriteWaveform(ViSession vi, ViInt32 numberOfSamples, ViReal64 waveform[]); + ViStatus SetRuntimeEnvironment(ViConstString environment, ViConstString environmentVersion, ViConstString reserved1, ViConstString reserved2); private: using AbortPtr = decltype(&niFake_Abort); @@ -206,6 +207,7 @@ class NiFakeLibrary : public nifake_grpc::NiFakeLibraryInterface { using ViUInt8ArrayInputFunctionPtr = decltype(&niFake_ViUInt8ArrayInputFunction); using ViUInt8ArrayOutputFunctionPtr = decltype(&niFake_ViUInt8ArrayOutputFunction); using WriteWaveformPtr = decltype(&niFake_WriteWaveform); + using SetRuntimeEnvironmentPtr = ViStatus (*)(ViConstString environment, ViConstString environmentVersion, ViConstString reserved1, ViConstString reserved2); typedef struct FunctionPointers { AbortPtr Abort; @@ -301,6 +303,7 @@ class NiFakeLibrary : public nifake_grpc::NiFakeLibraryInterface { ViUInt8ArrayInputFunctionPtr ViUInt8ArrayInputFunction; ViUInt8ArrayOutputFunctionPtr ViUInt8ArrayOutputFunction; WriteWaveformPtr WriteWaveform; + SetRuntimeEnvironmentPtr SetRuntimeEnvironment; } FunctionLoadStatus; nidevice_grpc::SharedLibrary shared_library_; diff --git a/generated/nifake/nifake_library_interface.h b/generated/nifake/nifake_library_interface.h index 4054892a1..e99137bc9 100644 --- a/generated/nifake/nifake_library_interface.h +++ b/generated/nifake/nifake_library_interface.h @@ -108,6 +108,7 @@ class NiFakeLibraryInterface { virtual ViStatus ViUInt8ArrayInputFunction(ViSession vi, ViInt32 numberOfElements, ViUInt8 anArray[]) = 0; virtual ViStatus ViUInt8ArrayOutputFunction(ViSession vi, ViInt32 numberOfElements, ViUInt8 anArray[]) = 0; virtual ViStatus WriteWaveform(ViSession vi, ViInt32 numberOfSamples, ViReal64 waveform[]) = 0; + virtual ViStatus SetRuntimeEnvironment(ViConstString environment, ViConstString environmentVersion, ViConstString reserved1, ViConstString reserved2) = 0; }; } // namespace nifake_grpc diff --git a/generated/nifake/nifake_mock_library.h b/generated/nifake/nifake_mock_library.h index 8c110d9d7..34d47c7fa 100644 --- a/generated/nifake/nifake_mock_library.h +++ b/generated/nifake/nifake_mock_library.h @@ -110,6 +110,7 @@ class NiFakeMockLibrary : public nifake_grpc::NiFakeLibraryInterface { MOCK_METHOD(ViStatus, ViUInt8ArrayInputFunction, (ViSession vi, ViInt32 numberOfElements, ViUInt8 anArray[]), (override)); MOCK_METHOD(ViStatus, ViUInt8ArrayOutputFunction, (ViSession vi, ViInt32 numberOfElements, ViUInt8 anArray[]), (override)); MOCK_METHOD(ViStatus, WriteWaveform, (ViSession vi, ViInt32 numberOfSamples, ViReal64 waveform[]), (override)); + MOCK_METHOD(ViStatus, SetRuntimeEnvironment, (ViConstString environment, ViConstString environmentVersion, ViConstString reserved1, ViConstString reserved2), (override)); }; } // namespace unit diff --git a/generated/nifgen/nifgen_library.cpp b/generated/nifgen/nifgen_library.cpp index 63f311934..c25b796ab 100644 --- a/generated/nifgen/nifgen_library.cpp +++ b/generated/nifgen/nifgen_library.cpp @@ -154,6 +154,7 @@ NiFgenLibrary::NiFgenLibrary() : shared_library_(kLibraryName) function_pointers_.WriteScript = reinterpret_cast(shared_library_.get_function_pointer("niFgen_WriteScript")); function_pointers_.WriteWaveform = reinterpret_cast(shared_library_.get_function_pointer("niFgen_WriteWaveform")); function_pointers_.WriteWaveformComplexF64 = reinterpret_cast(shared_library_.get_function_pointer("niFgen_WriteWaveformComplexF64")); + function_pointers_.SetRuntimeEnvironment = reinterpret_cast(shared_library_.get_function_pointer("niFgen_SetRuntimeEnvironment")); } NiFgenLibrary::~NiFgenLibrary() @@ -1231,4 +1232,12 @@ ViStatus NiFgenLibrary::WriteWaveformComplexF64(ViSession vi, ViConstString chan return function_pointers_.WriteWaveformComplexF64(vi, channelName, numberOfSamples, data, waveformHandle); } +ViStatus NiFgenLibrary::SetRuntimeEnvironment(ViConstString environment, ViConstString environmentVersion, ViConstString reserved1, ViConstString reserved2) +{ + if (!function_pointers_.SetRuntimeEnvironment) { + throw nidevice_grpc::LibraryLoadException("Could not find niFgen_SetRuntimeEnvironment."); + } + return function_pointers_.SetRuntimeEnvironment(environment, environmentVersion, reserved1, reserved2); +} + } // namespace nifgen_grpc diff --git a/generated/nifgen/nifgen_library.h b/generated/nifgen/nifgen_library.h index da03e4aae..c63e3bd6a 100644 --- a/generated/nifgen/nifgen_library.h +++ b/generated/nifgen/nifgen_library.h @@ -151,6 +151,7 @@ class NiFgenLibrary : public nifgen_grpc::NiFgenLibraryInterface { ViStatus WriteScript(ViSession vi, ViConstString channelName, ViConstString script); ViStatus WriteWaveform(ViSession vi, ViConstString channelName, ViInt32 waveformHandle, ViInt32 size, ViReal64 data[]); ViStatus WriteWaveformComplexF64(ViSession vi, ViConstString channelName, ViInt32 numberOfSamples, NIComplexNumber_struct data[], ViInt32 waveformHandle); + ViStatus SetRuntimeEnvironment(ViConstString environment, ViConstString environmentVersion, ViConstString reserved1, ViConstString reserved2); private: using AbortGenerationPtr = decltype(&niFgen_AbortGeneration); @@ -286,6 +287,7 @@ class NiFgenLibrary : public nifgen_grpc::NiFgenLibraryInterface { using WriteScriptPtr = decltype(&niFgen_WriteScript); using WriteWaveformPtr = decltype(&niFgen_WriteWaveform); using WriteWaveformComplexF64Ptr = decltype(&niFgen_WriteWaveformComplexF64); + using SetRuntimeEnvironmentPtr = ViStatus (*)(ViConstString environment, ViConstString environmentVersion, ViConstString reserved1, ViConstString reserved2); typedef struct FunctionPointers { AbortGenerationPtr AbortGeneration; @@ -421,6 +423,7 @@ class NiFgenLibrary : public nifgen_grpc::NiFgenLibraryInterface { WriteScriptPtr WriteScript; WriteWaveformPtr WriteWaveform; WriteWaveformComplexF64Ptr WriteWaveformComplexF64; + SetRuntimeEnvironmentPtr SetRuntimeEnvironment; } FunctionLoadStatus; nidevice_grpc::SharedLibrary shared_library_; diff --git a/generated/nifgen/nifgen_library_interface.h b/generated/nifgen/nifgen_library_interface.h index 75db12200..ea082de08 100644 --- a/generated/nifgen/nifgen_library_interface.h +++ b/generated/nifgen/nifgen_library_interface.h @@ -148,6 +148,7 @@ class NiFgenLibraryInterface { virtual ViStatus WriteScript(ViSession vi, ViConstString channelName, ViConstString script) = 0; virtual ViStatus WriteWaveform(ViSession vi, ViConstString channelName, ViInt32 waveformHandle, ViInt32 size, ViReal64 data[]) = 0; virtual ViStatus WriteWaveformComplexF64(ViSession vi, ViConstString channelName, ViInt32 numberOfSamples, NIComplexNumber_struct data[], ViInt32 waveformHandle) = 0; + virtual ViStatus SetRuntimeEnvironment(ViConstString environment, ViConstString environmentVersion, ViConstString reserved1, ViConstString reserved2) = 0; }; } // namespace nifgen_grpc diff --git a/generated/nifgen/nifgen_mock_library.h b/generated/nifgen/nifgen_mock_library.h index 9308aed45..33544a1ce 100644 --- a/generated/nifgen/nifgen_mock_library.h +++ b/generated/nifgen/nifgen_mock_library.h @@ -150,6 +150,7 @@ class NiFgenMockLibrary : public nifgen_grpc::NiFgenLibraryInterface { MOCK_METHOD(ViStatus, WriteScript, (ViSession vi, ViConstString channelName, ViConstString script), (override)); MOCK_METHOD(ViStatus, WriteWaveform, (ViSession vi, ViConstString channelName, ViInt32 waveformHandle, ViInt32 size, ViReal64 data[]), (override)); MOCK_METHOD(ViStatus, WriteWaveformComplexF64, (ViSession vi, ViConstString channelName, ViInt32 numberOfSamples, NIComplexNumber_struct data[], ViInt32 waveformHandle), (override)); + MOCK_METHOD(ViStatus, SetRuntimeEnvironment, (ViConstString environment, ViConstString environmentVersion, ViConstString reserved1, ViConstString reserved2), (override)); }; } // namespace unit diff --git a/generated/niscope/niscope_library.cpp b/generated/niscope/niscope_library.cpp index 75fd31bc9..ca13aa7e7 100644 --- a/generated/niscope/niscope_library.cpp +++ b/generated/niscope/niscope_library.cpp @@ -113,6 +113,7 @@ NiScopeLibrary::NiScopeLibrary() : shared_library_(kLibraryName) function_pointers_.SetAttributeViSession = reinterpret_cast(shared_library_.get_function_pointer("niScope_SetAttributeViSession")); function_pointers_.SetAttributeViString = reinterpret_cast(shared_library_.get_function_pointer("niScope_SetAttributeViString")); function_pointers_.UnlockSession = reinterpret_cast(shared_library_.get_function_pointer("niScope_UnlockSession")); + function_pointers_.SetRuntimeEnvironment = reinterpret_cast(shared_library_.get_function_pointer("niScope_SetRuntimeEnvironment")); } NiScopeLibrary::~NiScopeLibrary() @@ -862,4 +863,12 @@ ViStatus NiScopeLibrary::UnlockSession(ViSession vi, ViBoolean* callerHasLock) return function_pointers_.UnlockSession(vi, callerHasLock); } +ViStatus NiScopeLibrary::SetRuntimeEnvironment(ViConstString environment, ViConstString environmentVersion, ViConstString reserved1, ViConstString reserved2) +{ + if (!function_pointers_.SetRuntimeEnvironment) { + throw nidevice_grpc::LibraryLoadException("Could not find niScope_SetRuntimeEnvironment."); + } + return function_pointers_.SetRuntimeEnvironment(environment, environmentVersion, reserved1, reserved2); +} + } // namespace niscope_grpc diff --git a/generated/niscope/niscope_library.h b/generated/niscope/niscope_library.h index ba3ec9594..96799be10 100644 --- a/generated/niscope/niscope_library.h +++ b/generated/niscope/niscope_library.h @@ -110,6 +110,7 @@ class NiScopeLibrary : public niscope_grpc::NiScopeLibraryInterface { ViStatus SetAttributeViSession(ViSession vi, ViConstString channelList, ViAttr attributeId, ViSession value); ViStatus SetAttributeViString(ViSession vi, ViConstString channelList, ViAttr attributeId, ViConstString value); ViStatus UnlockSession(ViSession vi, ViBoolean* callerHasLock); + ViStatus SetRuntimeEnvironment(ViConstString environment, ViConstString environmentVersion, ViConstString reserved1, ViConstString reserved2); private: using AbortPtr = decltype(&niScope_Abort); @@ -204,6 +205,7 @@ class NiScopeLibrary : public niscope_grpc::NiScopeLibraryInterface { using SetAttributeViSessionPtr = decltype(&niScope_SetAttributeViSession); using SetAttributeViStringPtr = decltype(&niScope_SetAttributeViString); using UnlockSessionPtr = ViStatus (*)(ViSession vi, ViBoolean* callerHasLock); + using SetRuntimeEnvironmentPtr = ViStatus (*)(ViConstString environment, ViConstString environmentVersion, ViConstString reserved1, ViConstString reserved2); typedef struct FunctionPointers { AbortPtr Abort; @@ -298,6 +300,7 @@ class NiScopeLibrary : public niscope_grpc::NiScopeLibraryInterface { SetAttributeViSessionPtr SetAttributeViSession; SetAttributeViStringPtr SetAttributeViString; UnlockSessionPtr UnlockSession; + SetRuntimeEnvironmentPtr SetRuntimeEnvironment; } FunctionLoadStatus; nidevice_grpc::SharedLibrary shared_library_; diff --git a/generated/niscope/niscope_library_interface.h b/generated/niscope/niscope_library_interface.h index bc59e9183..ab6dc5d90 100644 --- a/generated/niscope/niscope_library_interface.h +++ b/generated/niscope/niscope_library_interface.h @@ -107,6 +107,7 @@ class NiScopeLibraryInterface { virtual ViStatus SetAttributeViSession(ViSession vi, ViConstString channelList, ViAttr attributeId, ViSession value) = 0; virtual ViStatus SetAttributeViString(ViSession vi, ViConstString channelList, ViAttr attributeId, ViConstString value) = 0; virtual ViStatus UnlockSession(ViSession vi, ViBoolean* callerHasLock) = 0; + virtual ViStatus SetRuntimeEnvironment(ViConstString environment, ViConstString environmentVersion, ViConstString reserved1, ViConstString reserved2) = 0; }; } // namespace niscope_grpc diff --git a/generated/niscope/niscope_mock_library.h b/generated/niscope/niscope_mock_library.h index e106a8900..ae01f76e8 100644 --- a/generated/niscope/niscope_mock_library.h +++ b/generated/niscope/niscope_mock_library.h @@ -109,6 +109,7 @@ class NiScopeMockLibrary : public niscope_grpc::NiScopeLibraryInterface { MOCK_METHOD(ViStatus, SetAttributeViSession, (ViSession vi, ViConstString channelList, ViAttr attributeId, ViSession value), (override)); MOCK_METHOD(ViStatus, SetAttributeViString, (ViSession vi, ViConstString channelList, ViAttr attributeId, ViConstString value), (override)); MOCK_METHOD(ViStatus, UnlockSession, (ViSession vi, ViBoolean* callerHasLock), (override)); + MOCK_METHOD(ViStatus, SetRuntimeEnvironment, (ViConstString environment, ViConstString environmentVersion, ViConstString reserved1, ViConstString reserved2), (override)); }; } // namespace unit diff --git a/generated/niswitch/niswitch_library.cpp b/generated/niswitch/niswitch_library.cpp index 1098db302..531f77e9f 100644 --- a/generated/niswitch/niswitch_library.cpp +++ b/generated/niswitch/niswitch_library.cpp @@ -83,6 +83,7 @@ NiSwitchLibrary::NiSwitchLibrary() : shared_library_(kLibraryName) function_pointers_.UnlockSession = reinterpret_cast(shared_library_.get_function_pointer("niSwitch_UnlockSession")); function_pointers_.WaitForDebounce = reinterpret_cast(shared_library_.get_function_pointer("niSwitch_WaitForDebounce")); function_pointers_.WaitForScanComplete = reinterpret_cast(shared_library_.get_function_pointer("niSwitch_WaitForScanComplete")); + function_pointers_.SetRuntimeEnvironment = reinterpret_cast(shared_library_.get_function_pointer("niSwitch_SetRuntimeEnvironment")); } NiSwitchLibrary::~NiSwitchLibrary() @@ -592,4 +593,12 @@ ViStatus NiSwitchLibrary::WaitForScanComplete(ViSession vi, ViInt32 maximumTimeM return function_pointers_.WaitForScanComplete(vi, maximumTimeMs); } +ViStatus NiSwitchLibrary::SetRuntimeEnvironment(ViConstString environment, ViConstString environmentVersion, ViConstString reserved1, ViConstString reserved2) +{ + if (!function_pointers_.SetRuntimeEnvironment) { + throw nidevice_grpc::LibraryLoadException("Could not find niSwitch_SetRuntimeEnvironment."); + } + return function_pointers_.SetRuntimeEnvironment(environment, environmentVersion, reserved1, reserved2); +} + } // namespace niswitch_grpc diff --git a/generated/niswitch/niswitch_library.h b/generated/niswitch/niswitch_library.h index 7ed9e40bd..05d544910 100644 --- a/generated/niswitch/niswitch_library.h +++ b/generated/niswitch/niswitch_library.h @@ -80,6 +80,7 @@ class NiSwitchLibrary : public niswitch_grpc::NiSwitchLibraryInterface { ViStatus UnlockSession(ViSession vi, ViBoolean* callerHasLock); ViStatus WaitForDebounce(ViSession vi, ViInt32 maximumTimeMs); ViStatus WaitForScanComplete(ViSession vi, ViInt32 maximumTimeMs); + ViStatus SetRuntimeEnvironment(ViConstString environment, ViConstString environmentVersion, ViConstString reserved1, ViConstString reserved2); private: using AbortScanPtr = decltype(&niSwitch_AbortScan); @@ -144,6 +145,7 @@ class NiSwitchLibrary : public niswitch_grpc::NiSwitchLibraryInterface { using UnlockSessionPtr = ViStatus (*)(ViSession vi, ViBoolean* callerHasLock); using WaitForDebouncePtr = decltype(&niSwitch_WaitForDebounce); using WaitForScanCompletePtr = decltype(&niSwitch_WaitForScanComplete); + using SetRuntimeEnvironmentPtr = ViStatus (*)(ViConstString environment, ViConstString environmentVersion, ViConstString reserved1, ViConstString reserved2); typedef struct FunctionPointers { AbortScanPtr AbortScan; @@ -208,6 +210,7 @@ class NiSwitchLibrary : public niswitch_grpc::NiSwitchLibraryInterface { UnlockSessionPtr UnlockSession; WaitForDebouncePtr WaitForDebounce; WaitForScanCompletePtr WaitForScanComplete; + SetRuntimeEnvironmentPtr SetRuntimeEnvironment; } FunctionLoadStatus; nidevice_grpc::SharedLibrary shared_library_; diff --git a/generated/niswitch/niswitch_library_interface.h b/generated/niswitch/niswitch_library_interface.h index dd7f0ffd8..c68696545 100644 --- a/generated/niswitch/niswitch_library_interface.h +++ b/generated/niswitch/niswitch_library_interface.h @@ -77,6 +77,7 @@ class NiSwitchLibraryInterface { virtual ViStatus UnlockSession(ViSession vi, ViBoolean* callerHasLock) = 0; virtual ViStatus WaitForDebounce(ViSession vi, ViInt32 maximumTimeMs) = 0; virtual ViStatus WaitForScanComplete(ViSession vi, ViInt32 maximumTimeMs) = 0; + virtual ViStatus SetRuntimeEnvironment(ViConstString environment, ViConstString environmentVersion, ViConstString reserved1, ViConstString reserved2) = 0; }; } // namespace niswitch_grpc diff --git a/generated/niswitch/niswitch_mock_library.h b/generated/niswitch/niswitch_mock_library.h index 6be637100..9b1206a3c 100644 --- a/generated/niswitch/niswitch_mock_library.h +++ b/generated/niswitch/niswitch_mock_library.h @@ -79,6 +79,7 @@ class NiSwitchMockLibrary : public niswitch_grpc::NiSwitchLibraryInterface { MOCK_METHOD(ViStatus, UnlockSession, (ViSession vi, ViBoolean* callerHasLock), (override)); MOCK_METHOD(ViStatus, WaitForDebounce, (ViSession vi, ViInt32 maximumTimeMs), (override)); MOCK_METHOD(ViStatus, WaitForScanComplete, (ViSession vi, ViInt32 maximumTimeMs), (override)); + MOCK_METHOD(ViStatus, SetRuntimeEnvironment, (ViConstString environment, ViConstString environmentVersion, ViConstString reserved1, ViConstString reserved2), (override)); }; } // namespace unit diff --git a/source/codegen/metadata/nidcpower/__init__.py b/source/codegen/metadata/nidcpower/__init__.py index 479c7c96a..505b7843d 100644 --- a/source/codegen/metadata/nidcpower/__init__.py +++ b/source/codegen/metadata/nidcpower/__init__.py @@ -1,6 +1,9 @@ from .functions import functions +from .functions_addon import functions_override_metadata from .attributes import attributes +from .attributes_addon import attributes_override_metadata from .enums import enums +from .enums_addon import enums_override_metadata from .config import config metadata = { @@ -8,4 +11,8 @@ "attributes" : attributes, "enums" : enums, "config" : config -} \ No newline at end of file +} + +metadata['functions'].update(functions_override_metadata) +metadata['attributes'].update(attributes_override_metadata) +metadata['enums'].update(enums_override_metadata) \ No newline at end of file diff --git a/source/codegen/metadata/nidcpower/functions_addon.py b/source/codegen/metadata/nidcpower/functions_addon.py index 03bd3b115..4f881393c 100644 --- a/source/codegen/metadata/nidcpower/functions_addon.py +++ b/source/codegen/metadata/nidcpower/functions_addon.py @@ -2,4 +2,38 @@ # Changes to the metadata should be made here, because functions.py is generated thus any changes get overwritten. functions_override_metadata = { + 'SetRuntimeEnvironment': { + 'codegen_method': 'private', + 'parameters': [ + { + 'cppName': 'environment', + 'direction': 'in', + 'grpc_type': 'string', + 'name': 'environment', + 'type': 'ViConstString' + }, + { + 'cppName': 'environmentVersion', + 'direction': 'in', + 'grpc_type': 'string', + 'name': 'environmentVersion', + 'type': 'ViConstString' + }, + { + 'cppName': 'reserved1', + 'direction': 'in', + 'grpc_type': 'string', + 'name': 'reserved1', + 'type': 'ViConstString' + }, + { + 'cppName': 'reserved2', + 'direction': 'in', + 'grpc_type': 'string', + 'name': 'reserved2', + 'type': 'ViConstString' + } + ], + 'returns': 'ViStatus' + }, } \ No newline at end of file diff --git a/source/codegen/metadata/nidigitalpattern/__init__.py b/source/codegen/metadata/nidigitalpattern/__init__.py index 5ce3d4082..d30165a1b 100644 --- a/source/codegen/metadata/nidigitalpattern/__init__.py +++ b/source/codegen/metadata/nidigitalpattern/__init__.py @@ -1,7 +1,10 @@ from .functions import functions +from .functions_addon import functions_override_metadata from .functions_addon import functions_validation_suppressions from .attributes import attributes +from .attributes_addon import attributes_override_metadata from .enums import enums +from .enums_addon import enums_override_metadata from .config import config metadata = { @@ -10,4 +13,8 @@ "attributes" : attributes, "enums" : enums, "config" : config -} \ No newline at end of file +} + +metadata['functions'].update(functions_override_metadata) +metadata['attributes'].update(attributes_override_metadata) +metadata['enums'].update(enums_override_metadata) \ No newline at end of file diff --git a/source/codegen/metadata/nidigitalpattern/functions_addon.py b/source/codegen/metadata/nidigitalpattern/functions_addon.py index fb6fe3051..22399a7cd 100644 --- a/source/codegen/metadata/nidigitalpattern/functions_addon.py +++ b/source/codegen/metadata/nidigitalpattern/functions_addon.py @@ -2,6 +2,40 @@ # Changes to the metadata should be made here, because functions.py is generated thus any changes get overwritten. functions_override_metadata = { + 'SetRuntimeEnvironment': { + 'codegen_method': 'private', + 'parameters': [ + { + 'cppName': 'environment', + 'direction': 'in', + 'grpc_type': 'string', + 'name': 'environment', + 'type': 'ViConstString' + }, + { + 'cppName': 'environmentVersion', + 'direction': 'in', + 'grpc_type': 'string', + 'name': 'environmentVersion', + 'type': 'ViConstString' + }, + { + 'cppName': 'reserved1', + 'direction': 'in', + 'grpc_type': 'string', + 'name': 'reserved1', + 'type': 'ViConstString' + }, + { + 'cppName': 'reserved2', + 'direction': 'in', + 'grpc_type': 'string', + 'name': 'reserved2', + 'type': 'ViConstString' + } + ], + 'returns': 'ViStatus' + }, } functions_validation_suppressions = { diff --git a/source/codegen/metadata/nidmm/__init__.py b/source/codegen/metadata/nidmm/__init__.py index 479c7c96a..505b7843d 100644 --- a/source/codegen/metadata/nidmm/__init__.py +++ b/source/codegen/metadata/nidmm/__init__.py @@ -1,6 +1,9 @@ from .functions import functions +from .functions_addon import functions_override_metadata from .attributes import attributes +from .attributes_addon import attributes_override_metadata from .enums import enums +from .enums_addon import enums_override_metadata from .config import config metadata = { @@ -8,4 +11,8 @@ "attributes" : attributes, "enums" : enums, "config" : config -} \ No newline at end of file +} + +metadata['functions'].update(functions_override_metadata) +metadata['attributes'].update(attributes_override_metadata) +metadata['enums'].update(enums_override_metadata) \ No newline at end of file diff --git a/source/codegen/metadata/nidmm/functions_addon.py b/source/codegen/metadata/nidmm/functions_addon.py index 926a0303b..5ee537823 100644 --- a/source/codegen/metadata/nidmm/functions_addon.py +++ b/source/codegen/metadata/nidmm/functions_addon.py @@ -2,6 +2,40 @@ # Changes to the metadata should be made here, because functions.py is generated thus any changes get overwritten. functions_override_metadata = { + 'SetRuntimeEnvironment': { + 'codegen_method': 'private', + 'parameters': [ + { + 'cppName': 'environment', + 'direction': 'in', + 'grpc_type': 'string', + 'name': 'environment', + 'type': 'ViConstString' + }, + { + 'cppName': 'environmentVersion', + 'direction': 'in', + 'grpc_type': 'string', + 'name': 'environmentVersion', + 'type': 'ViConstString' + }, + { + 'cppName': 'reserved1', + 'direction': 'in', + 'grpc_type': 'string', + 'name': 'reserved1', + 'type': 'ViConstString' + }, + { + 'cppName': 'reserved2', + 'direction': 'in', + 'grpc_type': 'string', + 'name': 'reserved2', + 'type': 'ViConstString' + } + ], + 'returns': 'ViStatus' + }, } diff --git a/source/codegen/metadata/nifake/__init__.py b/source/codegen/metadata/nifake/__init__.py index 5ce3d4082..d30165a1b 100644 --- a/source/codegen/metadata/nifake/__init__.py +++ b/source/codegen/metadata/nifake/__init__.py @@ -1,7 +1,10 @@ from .functions import functions +from .functions_addon import functions_override_metadata from .functions_addon import functions_validation_suppressions from .attributes import attributes +from .attributes_addon import attributes_override_metadata from .enums import enums +from .enums_addon import enums_override_metadata from .config import config metadata = { @@ -10,4 +13,8 @@ "attributes" : attributes, "enums" : enums, "config" : config -} \ No newline at end of file +} + +metadata['functions'].update(functions_override_metadata) +metadata['attributes'].update(attributes_override_metadata) +metadata['enums'].update(enums_override_metadata) \ No newline at end of file diff --git a/source/codegen/metadata/nifake/functions_addon.py b/source/codegen/metadata/nifake/functions_addon.py index dcd9f5280..8fc9b528c 100644 --- a/source/codegen/metadata/nifake/functions_addon.py +++ b/source/codegen/metadata/nifake/functions_addon.py @@ -2,6 +2,40 @@ # Changes to the metadata should be made here, because functions.py is generated thus any changes get overwritten. functions_override_metadata = { + 'SetRuntimeEnvironment': { + 'codegen_method': 'private', + 'parameters': [ + { + 'cppName': 'environment', + 'direction': 'in', + 'grpc_type': 'string', + 'name': 'environment', + 'type': 'ViConstString' + }, + { + 'cppName': 'environmentVersion', + 'direction': 'in', + 'grpc_type': 'string', + 'name': 'environmentVersion', + 'type': 'ViConstString' + }, + { + 'cppName': 'reserved1', + 'direction': 'in', + 'grpc_type': 'string', + 'name': 'reserved1', + 'type': 'ViConstString' + }, + { + 'cppName': 'reserved2', + 'direction': 'in', + 'grpc_type': 'string', + 'name': 'reserved2', + 'type': 'ViConstString' + } + ], + 'returns': 'ViStatus' + }, } functions_validation_suppressions = { diff --git a/source/codegen/metadata/nifgen/__init__.py b/source/codegen/metadata/nifgen/__init__.py index 3cafc0c89..c6570ab76 100644 --- a/source/codegen/metadata/nifgen/__init__.py +++ b/source/codegen/metadata/nifgen/__init__.py @@ -1,6 +1,9 @@ from .functions import functions +from .functions_addon import functions_override_metadata from .attributes import attributes +from .attributes_addon import attributes_override_metadata from .enums import enums +from .enums_addon import enums_override_metadata from .enums_addon import enums_validation_suppressions from .config import config @@ -10,4 +13,8 @@ "enums" : enums, "enums_validation_suppressions": enums_validation_suppressions, "config" : config -} \ No newline at end of file +} + +metadata['functions'].update(functions_override_metadata) +metadata['attributes'].update(attributes_override_metadata) +metadata['enums'].update(enums_override_metadata) \ No newline at end of file diff --git a/source/codegen/metadata/nifgen/functions_addon.py b/source/codegen/metadata/nifgen/functions_addon.py index 926a0303b..5ee537823 100644 --- a/source/codegen/metadata/nifgen/functions_addon.py +++ b/source/codegen/metadata/nifgen/functions_addon.py @@ -2,6 +2,40 @@ # Changes to the metadata should be made here, because functions.py is generated thus any changes get overwritten. functions_override_metadata = { + 'SetRuntimeEnvironment': { + 'codegen_method': 'private', + 'parameters': [ + { + 'cppName': 'environment', + 'direction': 'in', + 'grpc_type': 'string', + 'name': 'environment', + 'type': 'ViConstString' + }, + { + 'cppName': 'environmentVersion', + 'direction': 'in', + 'grpc_type': 'string', + 'name': 'environmentVersion', + 'type': 'ViConstString' + }, + { + 'cppName': 'reserved1', + 'direction': 'in', + 'grpc_type': 'string', + 'name': 'reserved1', + 'type': 'ViConstString' + }, + { + 'cppName': 'reserved2', + 'direction': 'in', + 'grpc_type': 'string', + 'name': 'reserved2', + 'type': 'ViConstString' + } + ], + 'returns': 'ViStatus' + }, } diff --git a/source/codegen/metadata/niscope/__init__.py b/source/codegen/metadata/niscope/__init__.py index d9cdfd5f6..c6570ab76 100644 --- a/source/codegen/metadata/niscope/__init__.py +++ b/source/codegen/metadata/niscope/__init__.py @@ -1,6 +1,9 @@ from .functions import functions +from .functions_addon import functions_override_metadata from .attributes import attributes +from .attributes_addon import attributes_override_metadata from .enums import enums +from .enums_addon import enums_override_metadata from .enums_addon import enums_validation_suppressions from .config import config @@ -10,4 +13,8 @@ "enums" : enums, "enums_validation_suppressions": enums_validation_suppressions, "config" : config -} \ No newline at end of file +} + +metadata['functions'].update(functions_override_metadata) +metadata['attributes'].update(attributes_override_metadata) +metadata['enums'].update(enums_override_metadata) \ No newline at end of file diff --git a/source/codegen/metadata/niscope/functions_addon.py b/source/codegen/metadata/niscope/functions_addon.py index cca5b4cec..3c1dcee9b 100644 --- a/source/codegen/metadata/niscope/functions_addon.py +++ b/source/codegen/metadata/niscope/functions_addon.py @@ -2,4 +2,38 @@ # Changes to the metadata should be made here, because functions.py is generated thus any changes get overwritten. functions_override_metadata = { + 'SetRuntimeEnvironment': { + 'codegen_method': 'private', + 'parameters': [ + { + 'cppName': 'environment', + 'direction': 'in', + 'grpc_type': 'string', + 'name': 'environment', + 'type': 'ViConstString' + }, + { + 'cppName': 'environmentVersion', + 'direction': 'in', + 'grpc_type': 'string', + 'name': 'environmentVersion', + 'type': 'ViConstString' + }, + { + 'cppName': 'reserved1', + 'direction': 'in', + 'grpc_type': 'string', + 'name': 'reserved1', + 'type': 'ViConstString' + }, + { + 'cppName': 'reserved2', + 'direction': 'in', + 'grpc_type': 'string', + 'name': 'reserved2', + 'type': 'ViConstString' + } + ], + 'returns': 'ViStatus' + }, } diff --git a/source/codegen/metadata/niswitch/__init__.py b/source/codegen/metadata/niswitch/__init__.py index 479c7c96a..505b7843d 100644 --- a/source/codegen/metadata/niswitch/__init__.py +++ b/source/codegen/metadata/niswitch/__init__.py @@ -1,6 +1,9 @@ from .functions import functions +from .functions_addon import functions_override_metadata from .attributes import attributes +from .attributes_addon import attributes_override_metadata from .enums import enums +from .enums_addon import enums_override_metadata from .config import config metadata = { @@ -8,4 +11,8 @@ "attributes" : attributes, "enums" : enums, "config" : config -} \ No newline at end of file +} + +metadata['functions'].update(functions_override_metadata) +metadata['attributes'].update(attributes_override_metadata) +metadata['enums'].update(enums_override_metadata) \ No newline at end of file diff --git a/source/codegen/metadata/niswitch/functions_addon.py b/source/codegen/metadata/niswitch/functions_addon.py index 926a0303b..5ee537823 100644 --- a/source/codegen/metadata/niswitch/functions_addon.py +++ b/source/codegen/metadata/niswitch/functions_addon.py @@ -2,6 +2,40 @@ # Changes to the metadata should be made here, because functions.py is generated thus any changes get overwritten. functions_override_metadata = { + 'SetRuntimeEnvironment': { + 'codegen_method': 'private', + 'parameters': [ + { + 'cppName': 'environment', + 'direction': 'in', + 'grpc_type': 'string', + 'name': 'environment', + 'type': 'ViConstString' + }, + { + 'cppName': 'environmentVersion', + 'direction': 'in', + 'grpc_type': 'string', + 'name': 'environmentVersion', + 'type': 'ViConstString' + }, + { + 'cppName': 'reserved1', + 'direction': 'in', + 'grpc_type': 'string', + 'name': 'reserved1', + 'type': 'ViConstString' + }, + { + 'cppName': 'reserved2', + 'direction': 'in', + 'grpc_type': 'string', + 'name': 'reserved2', + 'type': 'ViConstString' + } + ], + 'returns': 'ViStatus' + }, }