break;
}
- c->daemonize = true;
- c->pidfile = NULL;
+ c->daemonize = true;
+ c->pidfile = NULL;
/* Assign the member functions. */
- c->is_defined = lxcapi_is_defined;
- c->state = lxcapi_state;
- c->is_running = lxcapi_is_running;
- c->freeze = lxcapi_freeze;
- c->unfreeze = lxcapi_unfreeze;
- c->console = lxcapi_console;
- c->console_getfd = lxcapi_console_getfd;
- c->devpts_fd = lxcapi_devpts_fd;
- c->init_pid = lxcapi_init_pid;
- c->init_pidfd = lxcapi_init_pidfd;
- c->load_config = lxcapi_load_config;
- c->want_daemonize = lxcapi_want_daemonize;
- c->want_close_all_fds = lxcapi_want_close_all_fds;
- c->start = lxcapi_start;
- c->startl = lxcapi_startl;
- c->stop = lxcapi_stop;
- c->config_file_name = lxcapi_config_file_name;
- c->wait = lxcapi_wait;
- c->set_config_item = lxcapi_set_config_item;
- c->destroy = lxcapi_destroy;
- c->destroy_with_snapshots = lxcapi_destroy_with_snapshots;
- c->rename = lxcapi_rename;
- c->save_config = lxcapi_save_config;
- c->get_keys = lxcapi_get_keys;
- c->create = lxcapi_create;
- c->createl = lxcapi_createl;
- c->shutdown = lxcapi_shutdown;
- c->reboot = lxcapi_reboot;
- c->reboot2 = lxcapi_reboot2;
- c->clear_config = lxcapi_clear_config;
- c->clear_config_item = lxcapi_clear_config_item;
- c->get_config_item = lxcapi_get_config_item;
- c->get_running_config_item = lxcapi_get_running_config_item;
- c->get_cgroup_item = lxcapi_get_cgroup_item;
- c->set_cgroup_item = lxcapi_set_cgroup_item;
- c->get_config_path = lxcapi_get_config_path;
- c->set_config_path = lxcapi_set_config_path;
- c->clone = lxcapi_clone;
- c->get_interfaces = lxcapi_get_interfaces;
- c->get_ips = lxcapi_get_ips;
- c->attach = lxcapi_attach;
- c->attach_run_wait = lxcapi_attach_run_wait;
- c->attach_run_waitl = lxcapi_attach_run_waitl;
- c->snapshot = lxcapi_snapshot;
- c->snapshot_list = lxcapi_snapshot_list;
- c->snapshot_restore = lxcapi_snapshot_restore;
- c->snapshot_destroy = lxcapi_snapshot_destroy;
- c->snapshot_destroy_all = lxcapi_snapshot_destroy_all;
- c->may_control = lxcapi_may_control;
- c->add_device_node = lxcapi_add_device_node;
- c->remove_device_node = lxcapi_remove_device_node;
- c->attach_interface = lxcapi_attach_interface;
- c->detach_interface = lxcapi_detach_interface;
- c->checkpoint = lxcapi_checkpoint;
- c->restore = lxcapi_restore;
- c->migrate = lxcapi_migrate;
- c->console_log = lxcapi_console_log;
- c->mount = lxcapi_mount;
- c->umount = lxcapi_umount;
- c->seccomp_notify_fd = lxcapi_seccomp_notify_fd;
- c->seccomp_notify_fd_active = lxcapi_seccomp_notify_fd_active;
+ c->is_defined = lxcapi_is_defined;
+ c->state = lxcapi_state;
+ c->is_running = lxcapi_is_running;
+ c->freeze = lxcapi_freeze;
+ c->unfreeze = lxcapi_unfreeze;
+ c->console = lxcapi_console;
+ c->console_getfd = lxcapi_console_getfd;
+ c->devpts_fd = lxcapi_devpts_fd;
+ c->init_pid = lxcapi_init_pid;
+ c->init_pidfd = lxcapi_init_pidfd;
+ c->load_config = lxcapi_load_config;
+ c->want_daemonize = lxcapi_want_daemonize;
+ c->want_close_all_fds = lxcapi_want_close_all_fds;
+ c->start = lxcapi_start;
+ c->startl = lxcapi_startl;
+ c->stop = lxcapi_stop;
+ c->config_file_name = lxcapi_config_file_name;
+ c->wait = lxcapi_wait;
+ c->set_config_item = lxcapi_set_config_item;
+ c->destroy = lxcapi_destroy;
+ c->destroy_with_snapshots = lxcapi_destroy_with_snapshots;
+ c->rename = lxcapi_rename;
+ c->save_config = lxcapi_save_config;
+ c->get_keys = lxcapi_get_keys;
+ c->create = lxcapi_create;
+ c->createl = lxcapi_createl;
+ c->shutdown = lxcapi_shutdown;
+ c->reboot = lxcapi_reboot;
+ c->reboot2 = lxcapi_reboot2;
+ c->clear_config = lxcapi_clear_config;
+ c->clear_config_item = lxcapi_clear_config_item;
+ c->get_config_item = lxcapi_get_config_item;
+ c->get_running_config_item = lxcapi_get_running_config_item;
+ c->get_cgroup_item = lxcapi_get_cgroup_item;
+ c->set_cgroup_item = lxcapi_set_cgroup_item;
+ c->get_config_path = lxcapi_get_config_path;
+ c->set_config_path = lxcapi_set_config_path;
+ c->clone = lxcapi_clone;
+ c->get_interfaces = lxcapi_get_interfaces;
+ c->get_ips = lxcapi_get_ips;
+ c->attach = lxcapi_attach;
+ c->attach_run_wait = lxcapi_attach_run_wait;
+ c->attach_run_waitl = lxcapi_attach_run_waitl;
+ c->snapshot = lxcapi_snapshot;
+ c->snapshot_list = lxcapi_snapshot_list;
+ c->snapshot_restore = lxcapi_snapshot_restore;
+ c->snapshot_destroy = lxcapi_snapshot_destroy;
+ c->snapshot_destroy_all = lxcapi_snapshot_destroy_all;
+ c->may_control = lxcapi_may_control;
+ c->add_device_node = lxcapi_add_device_node;
+ c->remove_device_node = lxcapi_remove_device_node;
+ c->attach_interface = lxcapi_attach_interface;
+ c->detach_interface = lxcapi_detach_interface;
+ c->checkpoint = lxcapi_checkpoint;
+ c->restore = lxcapi_restore;
+ c->migrate = lxcapi_migrate;
+ c->console_log = lxcapi_console_log;
+ c->mount = lxcapi_mount;
+ c->umount = lxcapi_umount;
+ c->seccomp_notify_fd = lxcapi_seccomp_notify_fd;
+ c->seccomp_notify_fd_active = lxcapi_seccomp_notify_fd_active;
return c;