Skip to content

Commit

Permalink
add new type MdibVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
jannast committed Nov 20, 2024
1 parent 487471b commit 736becd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/t2iapi/device/device_responses.proto
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
This Source Code Form is subject to the terms of the MIT License.
Copyright (c) 2022 Draegerwerk AG & Co. KGaA.
Copyright (c) 2022, 2024 Draegerwerk AG & Co. KGaA.
SPDX-License-Identifier: MIT
*/
Expand All @@ -11,6 +11,7 @@ package t2iapi.device;

import "t2iapi/basic_responses.proto";
import "t2iapi/biceps/metadata.proto";
import "t2iapi/device/types.proto";

option java_package = "com.draeger.medical.t2iapi.device";
option java_outer_classname = "DeviceResponses";
Expand Down Expand Up @@ -80,6 +81,5 @@ pm:AbstractDeviceComponentDescriptor handle to indicate the time of the next cal
*/
message IndicateTimeOfNextCalibrationToUserResponse{
BasicResponse status = 1; // status of the rpc
string sequence_id = 2; // SequenceId when finishing the rpc
uint64 mdib_version = 3; // MdibVersion when finishing the rpc
MdibVersion mdib_version = 2; // MdibVersion container when finishing the rpc
}
8 changes: 8 additions & 0 deletions src/t2iapi/device/types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,11 @@ enum CalibrationState{
CALIBRATION_STATE_CALIBRATED = 3;
CALIBRATION_STATE_OTHER = 4;
}

/*
Represents a container for MDIB version attributes containing the SequenceId and MdibVersion
*/
message MdibVersion {
string sequence_id = 1; // SequenceId when finishing the rpc
uint64 mdib_version = 2; // MdibVersion when finishing the rpc
}

0 comments on commit 736becd

Please sign in to comment.