Mercurial > archived > louis > perso > liblxcstats
view tests/open.c @ 12:dbf24a82f625 default tip
Fix doxygen comments and add a Doxyfile
author | Louis Opter <kalessin@kalessin.fr> |
---|---|
date | Fri, 07 Jan 2011 21:49:31 +0100 |
parents | 8339ab15527d |
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; }