createtest.c revision 787c3ebec62eae66ad0441710ee46c8d355bfcfd
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * Copyright © 2012 Serge Hallyn <serge.hallyn@ubuntu.com>.
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * Copyright © 2012 Canonical Ltd.
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * This program is free software; you can redistribute it and/or modify
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * it under the terms of the GNU General Public License version 2, as
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * published by the Free Software Foundation.
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * This program is distributed in the hope that it will be useful,
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * but WITHOUT ANY WARRANTY; without even the implied warranty of
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * GNU General Public License for more details.
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * You should have received a copy of the GNU General Public License along
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * with this program; if not, write to the Free Software Foundation, Inc.,
5b64d5d44892834ba97f003080f3467299b7c5c5jeff.schenk * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#include <errno.h>
struct lxc_container *c;
goto out;
if (c->is_defined(c)) {
goto out;
goto out;
goto out;
if (!c->is_defined(c)) {
goto out;
c->clear_config(c);
c->want_daemonize(c, true);
goto out;
if (!c->stop(c)) {
goto out;
if (!c->destroy(c)) {
goto out;
if (c->is_defined(c)) {
goto out;
ret = 0;
out: