Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/checkpoint-restore/criu.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Reber <areber@redhat.com>2019-02-26 12:39:36 +0300
committerAndrei Vagin <avagin@gmail.com>2019-04-21 06:25:26 +0300
commita2565001854cd131e95ded5281f8f29b316fe538 (patch)
tree49401ebbc4d7798336ad2708a13201c7bfe1630a /images/rpc.proto
parent7f4779059d4c4090fb8ad27911e789aaef26464b (diff)
Rename version protobuf RPC members
In rpc.proto the interface to query the CRIU version number uses major and minor as keywords. This creates errors when using the RPC definitions with C++: https://github.com/checkpoint-restore/criu/issues/625 In this commit the fields are renamed from major to major_number and from minor to minor_number. For existing programs using the RPC protobuf definition this should be a transparent change. Only for programs importing the latest rpc.proto it will require code changes. Signed-off-by: Adrian Reber <areber@redhat.com>
Diffstat (limited to 'images/rpc.proto')
-rw-r--r--images/rpc.proto4
1 files changed, 2 insertions, 2 deletions
diff --git a/images/rpc.proto b/images/rpc.proto
index af0e99e30..e67471706 100644
--- a/images/rpc.proto
+++ b/images/rpc.proto
@@ -211,8 +211,8 @@ message criu_resp {
/* Answer for criu_req_type.VERSION requests */
message criu_version {
- required int32 major = 1;
- required int32 minor = 2;
+ required int32 major_number = 1;
+ required int32 minor_number = 2;
optional string gitid = 3;
optional int32 sublevel = 4;
optional int32 extra = 5;