[CRIU] [PATCH] libcriu: hide struct criu_opts
Ruslan Kuprieiev
rkuprieiev at cloudlinux.com
Fri Jul 31 05:57:37 PDT 2015
Users shouldn't use it directly anyway, they should
use criu_set* fucntions for that.
Signed-off-by: Ruslan Kuprieiev <rkuprieiev at cloudlinux.com>
---
lib/criu.c | 12 ++++++++++++
lib/criu.h | 13 +------------
2 files changed, 13 insertions(+), 12 deletions(-)
diff --git a/lib/criu.c b/lib/criu.c
index a6d8501..3c194a1 100644
--- a/lib/criu.c
+++ b/lib/criu.c
@@ -20,6 +20,18 @@
const char *criu_lib_version = CRIU_VERSION;
+struct criu_opts {
+ CriuOpts *rpc;
+ int (*notify)(char *action, criu_notify_arg_t na);
+ enum criu_service_comm service_comm;
+ union {
+ char *service_address;
+ int service_fd;
+ char *service_binary;
+ };
+ int swrk_pid;
+};
+
static criu_opts *global_opts;
static int saved_errno;
diff --git a/lib/criu.h b/lib/criu.h
index 130e03c..3cb0322 100644
--- a/lib/criu.h
+++ b/lib/criu.h
@@ -136,18 +136,7 @@ int criu_dump_iters(int (*more)(criu_predump_info pi));
* Same as the list above, but lets you have your very own options
* structure and lets you set individual options in it.
*/
-typedef struct _CriuOpts *criu_pb_opts_t;
-typedef struct {
- criu_pb_opts_t rpc; /* Generic RPC options in protobuf format */
- int (*notify)(char *action, criu_notify_arg_t na);
- enum criu_service_comm service_comm;
- union {
- char *service_address;
- int service_fd;
- char *service_binary;
- };
- int swrk_pid;
-} criu_opts;
+typedef struct criu_opts criu_opts;
int criu_local_init_opts(criu_opts **opts);
--
1.8.3.1
More information about the CRIU
mailing list