Skip to content

Commit

Permalink
Update nirfmxinstr_restricted_library.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
twinkletapadia authored Aug 25, 2023
1 parent 6c75582 commit d7c16c3
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ NiRFmxInstrRestrictedLibrary::NiRFmxInstrRestrictedLibrary(std::shared_ptr<nidev
if (!loaded) {
return;
}

function_pointers_.ConvertForPowerUnitsUtility = reinterpret_cast<ConvertForPowerUnitsUtilityPtr>(shared_library_.get_function_pointer("RFmxInstr_ConvertForPowerUnitsUtility"));
function_pointers_.DeleteSnapshot = reinterpret_cast<DeleteSnapshotPtr>(shared_library_.get_function_pointer("RFmxInstr_DeleteSnapshot"));
function_pointers_.GetActiveResultName = reinterpret_cast<GetActiveResultNamePtr>(shared_library_.get_function_pointer("RFmxInstr_GetActiveResultName"));
Expand Down Expand Up @@ -66,7 +65,6 @@ NiRFmxInstrRestrictedLibrary::NiRFmxInstrRestrictedLibrary(std::shared_ptr<nidev
function_pointers_.SetIOTraceStatus = reinterpret_cast<SetIOTraceStatusPtr>(shared_library_.get_function_pointer("RFmxInstr_SetIOTraceStatus"));
function_pointers_.UnregisterSpecialClientSnapshotInterest = reinterpret_cast<UnregisterSpecialClientSnapshotInterestPtr>(shared_library_.get_function_pointer("RFmxInstr_UnregisterSpecialClientSnapshotInterest"));
function_pointers_.GetSFPSessionAccessEnabled = reinterpret_cast<GetSFPSessionAccessEnabledPtr>(shared_library_.get_function_pointer("RFmxInstr_GetSFPSessionAccessEnabled"));

}

NiRFmxInstrRestrictedLibrary::~NiRFmxInstrRestrictedLibrary()
Expand Down Expand Up @@ -376,16 +374,13 @@ int32 NiRFmxInstrRestrictedLibrary::UnregisterSpecialClientSnapshotInterest(char
return function_pointers_.UnregisterSpecialClientSnapshotInterest(resourceName);
}


int32 NiRFmxInstrRestrictedLibrary::GetSFPSessionAccessEnabled(char optionString[], int32* isSFPSessionAccessEnabled)

{
if (!function_pointers_.GetSFPSessionAccessEnabled) {
throw nidevice_grpc::LibraryLoadException("Could not find RFmxInstr_GetSFPSessionAccessEnabled.");
}

return function_pointers_.GetSFPSessionAccessEnabled(optionString, isSFPSessionAccessEnabled);

}

} // namespace nirfmxinstr_restricted_grpc

0 comments on commit d7c16c3

Please sign in to comment.