From: Daniel Lezcano <dlezcano@fr.ibm.com>
Do some cleanup in the lxc.h file, remove dead code and move definition to
the right place.
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
#include <lxc.h>
+#define MAXPIDLEN 20
#if __i386__
# define __NR_checkpoint 333
/**
Following code is for liblxc.
- liblxc/lxc.h will contain exports of liblxc
+ lxc/lxc.h will contain exports of liblxc
**/
#include <lxc/lxc_state.h>
#include <lxc/cgroup.h>
#include <lxc/monitor.h>
-/* #define LXCPATH "/var/lxc" */
-#define MAXPIDLEN 20
-
-struct lxc_mem_stat;
-
/*
* Create the container object. Creates the /lxc/<name> directory
* and fills it with the files corresponding to the configuration
#include <lxc/lxc.h>
+#define MAXPIDLEN 20
+
int lxc_stop(const char *name)
{
char init[MAXPATHLEN];