comparison tests/open.c @ 0:6ce4443e7545

Add the draft of an API to collect statistics on LXC
author Louis Opter <kalessin@kalessin.fr>
date Wed, 29 Dec 2010 23:28:14 +0100
parents
children 8339ab15527d
comparison
equal deleted inserted replaced
-1:000000000000 0:6ce4443e7545
1 #include <err.h>
2 #include <stdio.h>
3 #include <stdlib.h>
4
5 #include "_lxcstats.h"
6 #include "lxcstats.h"
7
8 int
9 main(int argc, char *argv[])
10 {
11 lxcst_handle *hdl;
12
13 hdl = lxcst_open();
14
15 if (hdl) {
16 printf("%s: mnt_dir=%s.\n", *argv, hdl->cgroup_dir);
17 return (EXIT_SUCCESS);
18 }
19
20 err(EXIT_FAILURE, "lxcst_open failed");
21
22 (void)argc;
23 }