view tests/open.c @ 7:8339ab15527d

Add running/stopped containers global statistics and refactor some things
author Louis Opter <louis@dotcloud.com>
date Sat, 01 Jan 2011 17:46:40 +0100
parents 6ce4443e7545
children
line wrap: on
line source

#include <err.h>
#include <stdio.h>
#include <stdlib.h>

#include "_lxcstats.h"
#include "lxcstats.h"

int
main(int argc, char *argv[])
{
    lxcst_handle    *hdl;

    hdl = lxcst_open();

    if (hdl && hdl->cgroup_dir && hdl->lxc_dir) {
        printf("%s: cgroup_dir=%s.\n", *argv, hdl->cgroup_dir);
        printf("%s: lxc_dir=%s.\n", *argv, hdl->lxc_dir);
        return (EXIT_SUCCESS);
    }

    err(EXIT_FAILURE, "lxcst_open failed");

    (void)argc;
}