Skip to content

Commit

Permalink
New manipulation get component sw version (#85)
Browse files Browse the repository at this point in the history
Add manipulation GetComponentSwVersion for devices

# Checklist

The following aspects have been respected by the author of this pull
request, confirmed by both pull request assignee **and** reviewer:

* Changelog update (necessity checked and entry added or not added
respectively)
  * [x] Pull Request Assignee
  * [x] Reviewer
* README update (necessity checked and entry added or not added
respectively)
  * [x] Pull Request Assignee
  * [x] Reviewer
  • Loading branch information
jannast authored Aug 6, 2024
1 parent 863c4ff commit 58fed13
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- manipulation GetAvailableDeviceMetaData for device
- manipulation AssociateValidateAndChangeIdentificationOfPatientOrLocationContextState for contexts
- manipulation GetComponentSwVersion for devices
- manipulation ProvideInformationAboutLastCalibration for devices
- manipulation ProvideInformationAboutNextCalibration for devices
- manipulation SetSystemContextActivationStateAndContextAssociation for combined settings
Expand Down
10 changes: 9 additions & 1 deletion src/t2iapi/device/device_responses.proto
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,12 @@ Response containing the available device metadata.
message AvailableDeviceMetaDataResponse {
BasicResponse status = 1;
t2iapi.biceps.MetaDataMsg meta_data = 2; // available device metadata
}
}

/*
Response containing the software version of the requested pm:AbstractDeviceComponentDescriptor handle when supported.
*/
message GetComponentSwVersionResponse {
BasicResponse status = 1; // status of the rpc
string software_version = 2; // Software version of the requested device component
}
7 changes: 7 additions & 0 deletions src/t2iapi/device/service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -143,4 +143,11 @@ service DeviceService {
user's opinion, must be present for this device.
*/
rpc GetAvailableDeviceMetaData(BasicHandleRequest) returns (AvailableDeviceMetaDataResponse);

/*
Get the software version of the requested pm:AbstractDeviceComponentDescriptor handle if it is representing
a component with a software version.
*/
rpc GetComponentSwVersion (BasicHandleRequest)
returns (t2iapi.device.GetComponentSwVersionResponse);
}

0 comments on commit 58fed13

Please sign in to comment.