[CRIU] [PATCH 3/4] protbuf: Add Protocol Buffers (PB) helpers v2
Cyrill Gorcunov
gorcunov at openvz.org
Fri Jul 6 11:32:25 EDT 2012
To not bloat util.h or image.h the protobuf.h introduced to
handle all PB needs.
We represent our PB objects as pairs of records
| 4 bytes for object packed size
+---
| X bytes -- object itself
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
Makefile | 1 +
include/protobuf.h | 49 ++++++++++++++++++++++++++++++++++
protobuf.c | 75 ++++++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 125 insertions(+), 0 deletions(-)
create mode 100644 include/protobuf.h
create mode 100644 protobuf.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-protbuf-Add-Protocol-Buffers-PB-helpers-v2.patch
Type: text/x-patch
Size: 3373 bytes
Desc: not available
Url : http://openvz.org/pipermail/criu/attachments/20120706/fa322cbd/0003-protbuf-Add-Protocol-Buffers-PB-helpers-v2-0001.bin
More information about the CRIU
mailing list