Commit 2aa79ee7 by dlezcano

Do some cleanup in the lxc.h file

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: 's avatarDaniel Lezcano <dlezcano@fr.ibm.com>
parent cf6300c3
...@@ -38,6 +38,7 @@ ...@@ -38,6 +38,7 @@
#include <lxc.h> #include <lxc.h>
#define MAXPIDLEN 20
#if __i386__ #if __i386__
# define __NR_checkpoint 333 # define __NR_checkpoint 333
......
...@@ -30,7 +30,7 @@ extern "C" { ...@@ -30,7 +30,7 @@ extern "C" {
/** /**
Following code is for liblxc. 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/lxc_state.h>
...@@ -43,11 +43,6 @@ extern "C" { ...@@ -43,11 +43,6 @@ extern "C" {
#include <lxc/cgroup.h> #include <lxc/cgroup.h>
#include <lxc/monitor.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 * Create the container object. Creates the /lxc/<name> directory
* and fills it with the files corresponding to the configuration * and fills it with the files corresponding to the configuration
......
...@@ -33,6 +33,8 @@ ...@@ -33,6 +33,8 @@
#include <lxc/lxc.h> #include <lxc/lxc.h>
#define MAXPIDLEN 20
int lxc_stop(const char *name) int lxc_stop(const char *name)
{ {
char init[MAXPATHLEN]; char init[MAXPATHLEN];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment