mirror of
https://github.com/akuker/RASCSI.git
synced 2025-01-09 09:31:49 +00:00
rasctl -s returns operation meta data
This commit is contained in:
parent
eed83bb005
commit
4179110bac
src/raspberrypi
@ -377,4 +377,6 @@ message PbServerInfo {
|
||||
PbReservedIdsInfo reserved_ids_info = 7;
|
||||
// The attached devices
|
||||
PbDevicesInfo devices_info = 8;
|
||||
// The operation meta data
|
||||
PbOperationInfo operation_info = 9;
|
||||
}
|
||||
|
@ -275,6 +275,7 @@ PbServerInfo *RascsiResponse::GetServerInfo(PbResult& result, const vector<Devic
|
||||
server_info->set_allocated_mapping_info(GetMappingInfo(result));
|
||||
GetDevices(*server_info, devices);
|
||||
server_info->set_allocated_reserved_ids_info(GetReservedIds(result, reserved_ids));
|
||||
server_info->set_allocated_operation_info(GetOperationInfo(result));
|
||||
|
||||
result.set_status(true);
|
||||
|
||||
|
@ -217,6 +217,7 @@ void RasctlCommands::CommandServerInfo()
|
||||
rasctl_display.DisplayNetworkInterfaces(server_info.network_interfaces_info());
|
||||
rasctl_display.DisplayDeviceTypesInfo(server_info.device_types_info());
|
||||
rasctl_display.DisplayReservedIdsInfo(server_info.reserved_ids_info());
|
||||
rasctl_display.DisplayOperationInfo(server_info.operation_info());
|
||||
|
||||
if (server_info.devices_info().devices_size()) {
|
||||
list<PbDevice> sorted_devices = { server_info.devices_info().devices().begin(), server_info.devices_info().devices().end() };
|
||||
|
Loading…
Reference in New Issue
Block a user