[CRIU] [PATCH 0/8] libcriu

Ruslan Kuprieiev kupruser at gmail.com
Wed Dec 4 02:57:23 PST 2013


Currently we have to ways to use criu: CLI and RPC. This patch adds one more
way -- C API. For now it is just a simple wrapper around RPC, which
will help you to avoid writting redundant code when using criu.

Ruslan Kuprieiev (8):
  lib: add rpc.pb-c.o to Makefile
  lib: add criu.h
  lib: add check
  makefile: add ldflags-so
  lib: return -1, if unable to connect to socket
  service: fix bug, which makes criu always report a fail, if no need to send resp
  lib: add dump/restore
  test: libcriu

 Makefile               |   1 +
 cr-service.c           |   4 +-
 lib/Makefile           |   4 +-
 lib/criu.c             | 167 +++++++++++++++++++++++++++++++++++++++++++++++++
 lib/criu.h             |  17 +++++
 scripts/Makefile.build |   2 +-
 test/libcriu/Makefile  |  10 +++
 test/libcriu/loop.sh   |   4 ++
 test/libcriu/run.sh    |  63 +++++++++++++++++++
 test/libcriu/test.c    |  82 ++++++++++++++++++++++++
 10 files changed, 350 insertions(+), 4 deletions(-)
 create mode 100644 lib/criu.h
 create mode 100644 test/libcriu/Makefile
 create mode 100755 test/libcriu/loop.sh
 create mode 100755 test/libcriu/run.sh
 create mode 100644 test/libcriu/test.c

-- 
1.8.1.2



More information about the CRIU mailing list