Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API errors now return information via gRPC metadata (not the response) #692

Merged
merged 13 commits into from
Aug 11, 2022
Merged
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,7 @@ add_executable(IntegrationTestsRunner
"${service_output_dir}/nifake_non_ivi/nifake_non_ivi_client.cpp"
"${service_output_dir}/nifake_non_ivi/nifake_non_ivi_service.cpp"
"${custom_dir}/nifake_non_ivi_service.custom.cpp"
"${custom_dir}/nifake_service.custom.cpp"
)

set(CMAKE_THREAD_PREFER_PTHREAD TRUE)
Expand Down
1,649 changes: 1,221 additions & 428 deletions generated/nidaqmx/nidaqmx_service.cpp

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions generated/nidaqmx/nidaqmx_service.h
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,7 @@ class NiDAQmxService final : public NiDAQmx::WithCallbackMethod_RegisterSignalEv
private:
NiDAQmxLibraryInterface* library_;
ResourceRepositorySharedPtr session_repository_;
::grpc::Status ConvertApiErrorStatusForTaskHandle(google::protobuf::int32 status, TaskHandle task);

NiDAQmxFeatureToggles feature_toggles_;
};
Expand Down
501 changes: 410 additions & 91 deletions generated/nidcpower/nidcpower_service.cpp

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions generated/nidcpower/nidcpower_service.h
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ class NiDCPowerService final : public NiDCPower::Service {
private:
NiDCPowerLibraryInterface* library_;
ResourceRepositorySharedPtr session_repository_;
::grpc::Status ConvertApiErrorStatusForViSession(google::protobuf::int32 status, ViSession vi);
void Copy(const std::vector<ViBoolean>& input, google::protobuf::RepeatedField<bool>* output);

NiDCPowerFeatureToggles feature_toggles_;
Expand Down
571 changes: 428 additions & 143 deletions generated/nidigitalpattern/nidigitalpattern_service.cpp

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions generated/nidigitalpattern/nidigitalpattern_service.h
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ class NiDigitalService final : public NiDigital::Service {
private:
NiDigitalLibraryInterface* library_;
ResourceRepositorySharedPtr session_repository_;
::grpc::Status ConvertApiErrorStatusForViSession(google::protobuf::int32 status, ViSession vi);
void Copy(const std::vector<ViBoolean>& input, google::protobuf::RepeatedField<bool>* output);
template <typename TEnum>
void CopyBytesToEnums(const std::string& input, google::protobuf::RepeatedField<TEnum>* output);
Expand Down
Loading