Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lib/c: add empty_ns interfaces to libcriu #2175

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions lib/c/criu.c
Original file line number Diff line number Diff line change
Expand Up @@ -2030,3 +2030,14 @@ int criu_feature_check(struct criu_feature_check *features, size_t size)
{
return criu_local_feature_check(global_opts, features, size);
}

void criu_local_set_empty_ns(criu_opts *opts, int namespaces)
{
opts->rpc->has_empty_ns = true;
opts->rpc->empty_ns = namespaces;
}

void criu_set_empty_ns(int namespaces)
{
criu_local_set_empty_ns(global_opts, namespaces);
}
3 changes: 3 additions & 0 deletions lib/c/criu.h
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,9 @@ struct criu_feature_check {
int criu_feature_check(struct criu_feature_check *features, size_t size);
int criu_local_feature_check(criu_opts *opts, struct criu_feature_check *features, size_t size);

void criu_local_set_empty_ns(criu_opts *opts, int namespaces);
void criu_set_empty_ns(int namespaces);

#ifdef __GNUG__
}
#endif
Expand Down