Skip to content

Commit

Permalink
libcriu: hide struct criu_opts
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
efiop authored and xemul committed Aug 3, 2015
1 parent 8ef2577 commit b652b06
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
12 changes: 12 additions & 0 deletions lib/criu.c
Expand Up @@ -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;

Expand Down
13 changes: 1 addition & 12 deletions lib/criu.h
Expand Up @@ -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);

Expand Down

0 comments on commit b652b06

Please sign in to comment.