[CRIU] [PATCH 02/10] protobuf: add a new description for saving siginfo-s

Andrey Vagin avagin at openvz.org
Tue Mar 5 09:54:34 EST 2013


Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
 include/protobuf.h     | 1 +
 protobuf.c             | 2 ++
 protobuf/Makefile      | 1 +
 protobuf/siginfo.proto | 3 +++
 4 files changed, 7 insertions(+)
 create mode 100644 protobuf/siginfo.proto

diff --git a/include/protobuf.h b/include/protobuf.h
index cf3ef6d..bbd4ded 100644
--- a/include/protobuf.h
+++ b/include/protobuf.h
@@ -48,6 +48,7 @@ enum {
 	PB_FILE_LOCK,
 	PB_RLIMIT,
 	PB_IDS,
+	PB_SIGINFO,
 
 	PB_MAX
 };
diff --git a/protobuf.c b/protobuf.c
index 3a1ff03..c02e516 100644
--- a/protobuf.c
+++ b/protobuf.c
@@ -51,6 +51,7 @@
 #include "protobuf/tty.pb-c.h"
 #include "protobuf/file-lock.pb-c.h"
 #include "protobuf/rlimit.pb-c.h"
+#include "protobuf/siginfo.pb-c.h"
 
 typedef size_t (*pb_getpksize_t)(void *obj);
 typedef size_t (*pb_pack_t)(void *obj, void *where);
@@ -132,6 +133,7 @@ void cr_pb_init(void)
 	CR_PB_DESC(TTY_INFO,		TtyInfo,	tty_info);
 	CR_PB_DESC(FILE_LOCK,		FileLock,	file_lock);
 	CR_PB_DESC(RLIMIT,		Rlimit,		rlimit);
+	CR_PB_DESC(SIGINFO,		Siginfo,	siginfo);
 }
 
 /*
diff --git a/protobuf/Makefile b/protobuf/Makefile
index cb71a62..9db78ad 100644
--- a/protobuf/Makefile
+++ b/protobuf/Makefile
@@ -50,6 +50,7 @@ proto-obj-y	+= netdev.o
 proto-obj-y	+= tty.o
 proto-obj-y	+= file-lock.o
 proto-obj-y	+= rlimit.o
+proto-obj-y	+= siginfo.o
 
 proto		:= $(proto-obj-y:.o=)
 proto-c		:= $(proto-obj-y:.o=.pb-c.c)
diff --git a/protobuf/siginfo.proto b/protobuf/siginfo.proto
new file mode 100644
index 0000000..e43eb88
--- /dev/null
+++ b/protobuf/siginfo.proto
@@ -0,0 +1,3 @@
+message siginfo_entry {
+	required bytes siginfo = 1;
+}
-- 
1.7.11.7



More information about the CRIU mailing list