mirror of
https://github.com/checkpoint-restore/criu
synced 2025-09-03 15:55:53 +00:00
protobuf: Start switching our image entries to Google's protobuf
A short story -- there were a long conversation on which format should be used to keep checkpointed data on disk image. We ended up in using Google's Protocol Buffers (see https://developers.google.com/protocol-buffers/ for detailed description). Thus image entries should be convered to PB. This patch converts fdinfo_entry to PB "message fdinfo_entry". Build note: one should have protobuf and protobuf-c installed to be able to build crtools. - http://code.google.com/p/protobuf/ - http://code.google.com/p/protobuf-c/ Inspired-by: Pavel Emelianov <xemul@parallels.com> Inspired-by: Kinsbursky Stanislav <skinsbursky@openvz.org> Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
c75b4b70fc
commit
a1fe3caf04
@@ -7,6 +7,8 @@
|
||||
#include "list.h"
|
||||
#include "image.h"
|
||||
|
||||
#include "../protobuf/fdinfo.pb-c.h"
|
||||
|
||||
struct pstree_item;
|
||||
struct file_desc;
|
||||
struct cr_fdset;
|
||||
@@ -38,13 +40,13 @@ struct fdinfo_list_entry {
|
||||
struct list_head ps_list;
|
||||
int pid;
|
||||
futex_t real_pid;
|
||||
struct fdinfo_entry *fe;
|
||||
FdinfoEntry *fe;
|
||||
};
|
||||
|
||||
struct file_desc_ops {
|
||||
unsigned int type;
|
||||
int (*open)(struct file_desc *d);
|
||||
int (*want_transport)(struct fdinfo_entry *fe, struct file_desc *d);
|
||||
int (*want_transport)(FdinfoEntry *fe, struct file_desc *d);
|
||||
};
|
||||
|
||||
struct file_desc {
|
||||
|
Reference in New Issue
Block a user