mirror of
https://github.com/checkpoint-restore/criu
synced 2025-09-03 15:55:53 +00:00
libcriu: hide struct criu_opts
Users shouldn't use it directly anyway, they should use criu_set* fucntions for that. Signed-off-by: Ruslan Kuprieiev <rkuprieiev@cloudlinux.com> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
8ef257724f
commit
b652b06124
12
lib/criu.c
12
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;
|
||||
|
||||
|
13
lib/criu.h
13
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);
|
||||
|
||||
|
Reference in New Issue
Block a user