mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 05:49:27 +00:00
Merge "Add refreshPropertyConfigs to DumpResult proto" into main
This commit is contained in:
@@ -276,6 +276,7 @@ DumpResult GRPCVehicleHardware::dump(const std::vector<std::string>& options) {
|
||||
return {
|
||||
.callerShouldDumpState = protoDumpResult.caller_should_dump_state(),
|
||||
.buffer = protoDumpResult.buffer(),
|
||||
.refreshPropertyConfigs = protoDumpResult.refresh_property_configs(),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -226,6 +226,7 @@ GrpcVehicleProxyServer::GrpcVehicleProxyServer(std::vector<std::string> serverAd
|
||||
auto dumpResult = mHardware->dump(dumpOptionStrings);
|
||||
result->set_caller_should_dump_state(dumpResult.callerShouldDumpState);
|
||||
result->set_buffer(dumpResult.buffer);
|
||||
result->set_refresh_property_configs(dumpResult.refreshPropertyConfigs);
|
||||
return ::grpc::Status::OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -25,4 +25,6 @@ message DumpResult {
|
||||
bool caller_should_dump_state = 1;
|
||||
/* The dumped information for the caller to print. */
|
||||
string buffer = 2;
|
||||
/* To pass if DefaultVehicleHal should refresh the property configs. */
|
||||
bool refresh_property_configs = 3;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user