[CRIU] [PATCHv5 2/3] protobuf: .proto files for dump request and response
Ruslan Kuprieiev
kupruser at gmail.com
Mon Sep 9 08:13:56 EDT 2013
Signed-off-by: Ruslan Kuprieiev kupruser at gmail.com
-------------- next part --------------
diff --git a/protobuf/Makefile b/protobuf/Makefile
index 9051477..00e3925 100644
--- a/protobuf/Makefile
+++ b/protobuf/Makefile
@@ -56,6 +56,8 @@ proto-obj-y += file-lock.o
proto-obj-y += rlimit.o
proto-obj-y += pagemap.o
proto-obj-y += siginfo.o
+proto-obj-y += criu-dump-req.o
+proto-obj-y += criu-dump-resp.o
proto := $(proto-obj-y:.o=)
proto-c := $(proto-obj-y:.o=.pb-c.c)
diff --git a/protobuf/criu-dump-req.proto b/protobuf/criu-dump-req.proto
new file mode 100644
index 0000000..5be72fa
--- /dev/null
+++ b/protobuf/criu-dump-req.proto
@@ -0,0 +1,14 @@
+message criu_dump_req {
+ //
+ // FIXME Add more arguments.
+ //
+ required int32 pid = 1 [default = -1];
+ required bool leave_running = 2 [default = false];
+ required bool ext_unix_sk = 3 [default = false];
+ required bool tcp_established = 4 [default = false];
+ required bool evasive_devices = 5 [default = false];
+ required bool shell_job = 6 [default = false];
+ required bool file_locks = 7 [default = false];
+ required string images_dir = 8;
+ required int32 log_level = 9 [default = 2];
+}
diff --git a/protobuf/criu-dump-resp.proto b/protobuf/criu-dump-resp.proto
new file mode 100644
index 0000000..031683a
--- /dev/null
+++ b/protobuf/criu-dump-resp.proto
@@ -0,0 +1,4 @@
+message criu_dump_resp {
+ required bool success = 1 [default = false];
+ required bool bad_args = 2 [default = false];
+}
More information about the CRIU
mailing list