#include "error.h"
#include "config.h"
-#include <lxc/lxc.h>
#include <lxc/log.h>
+#include <lxc/cgroup.h>
+#include <lxc/start.h>
lxc_log_define(lxc_cgroup, lxc);
#include <netinet/in.h>
#include <net/if.h>
-#include "error.h"
-#include "lxc_plugin.h"
-#include <lxc.h>
-
#include <lxc/log.h>
+#include "lxc_plugin.h"
lxc_log_define(lxc_checkpoint, lxc);
#include <sys/poll.h>
#include <sys/param.h>
-#include <lxc/lxc.h>
+#include <lxc/log.h>
+#include <lxc/conf.h>
+#include <lxc/start.h> /* for struct lxc_handler */
#include "commands.h"
#include "mainloop.h"
#include "parse.h"
#include "config.h"
-#include <lxc/lxc.h>
+#include <lxc/conf.h>
#include <lxc/log.h>
+#include <lxc/lxc.h> /* for lxc_cgroup_set() */
lxc_log_define(lxc_conf, lxc);
#include <netinet/in.h>
#include <sys/param.h>
+#include <lxc/list.h>
+
enum {
EMPTY,
VETH,
#include "parse.h"
-#include <lxc/lxc.h>
#include <lxc/log.h>
+#include <lxc/conf.h>
lxc_log_define(lxc_confile, lxc);
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+struct lxc_conf;
+
extern int lxc_config_read(const char *file, struct lxc_conf *conf);
#include <sys/types.h>
#include <sys/un.h>
-#include <lxc/lxc.h>
+#include <lxc/log.h>
+#include <lxc/conf.h>
+#include <lxc/start.h> /* for struct lxc_handler */
+
#include "commands.h"
#include "af_unix.h"
#include <sys/param.h>
#include "error.h"
-#include <lxc/lxc.h>
+
#include <lxc/log.h>
+#include <lxc/cgroup.h>
lxc_log_define(lxc_freezer, lxc);
lxc/lxc.h will contain exports of liblxc
**/
+#include <stddef.h>
#include <lxc/state.h>
-#include <lxc/list.h>
-#include <lxc/log.h>
-#include <lxc/conf.h>
-#include <lxc/namespace.h>
-#include <lxc/utils.h>
-#include <lxc/error.h>
-#include <lxc/cgroup.h>
-#include <lxc/monitor.h>
-#include <lxc/start.h>
+
+struct lxc_msg;
/*
* Start the specified command inside a container
#include <sys/types.h>
#include <lxc/lxc.h>
+#include <lxc/log.h>
+
#include "arguments.h"
lxc_log_define(lxc_cgroup, lxc);
#include <unistd.h>
#include <sys/types.h>
-#include <lxc.h>
+#include <lxc/lxc.h>
+#include <lxc/log.h>
+#include <lxc/utils.h>
+
#include "arguments.h"
#include "config.h"
#include <sys/stat.h>
#include <sys/poll.h>
-#include "error.h"
-#include "lxc.h"
+#include <lxc/error.h>
+#include <lxc/lxc.h>
+#include <lxc/log.h>
+
#include "arguments.h"
lxc_log_define(lxc_console, lxc);
#include <sys/stat.h>
#include <sys/param.h>
+#include <lxc/log.h>
+#include <lxc/confile.h>
#include <lxc/lxc.h>
-#include "confile.h"
+
#include "arguments.h"
#include "config.h"
#include <string.h>
#include <lxc/lxc.h>
+#include <lxc/log.h>
+
#include "arguments.h"
static const struct option my_longopts[] = {
#include <sys/types.h>
#include <lxc/lxc.h>
+#include <lxc/log.h>
+
#include "arguments.h"
static const struct option my_longopts[] = {
#include <sys/mount.h>
#define _GNU_SOURCE
#include <getopt.h>
-#include "lxc.h"
+
+#include <lxc/lxc.h>
+#include <lxc/log.h>
+#include <lxc/utils.h>
+#include <lxc/error.h>
lxc_log_define(lxc_init, lxc);
#include <sys/types.h>
#include <lxc/lxc.h>
+#include <lxc/log.h>
+#include <lxc/monitor.h>
#include "arguments.h"
lxc_log_define(monitor, lxc);
#include <unistd.h>
#include <sys/types.h>
-#include <lxc.h>
+#include <lxc/lxc.h>
+#include <lxc/log.h>
+
#include "arguments.h"
static int my_checker(const struct lxc_arguments* args)
#include <lxc/lxc.h>
#include <lxc/log.h>
+#include <lxc/utils.h>
+
#include "arguments.h"
lxc_log_define(lxc_start, lxc);
#include <sys/types.h>
#include <lxc/lxc.h>
+#include <lxc/log.h>
+
#include "arguments.h"
static const struct option my_longopts[] = {
#include <sys/types.h>
#include <lxc/lxc.h>
+#include <lxc/log.h>
+
#include "arguments.h"
static const struct option my_longopts[] = {
#include <sys/wait.h>
#include <pwd.h>
-#include <lxc/lxc.h>
+#include <lxc/log.h>
+#include <lxc/namespace.h>
lxc_log_define(lxc_unshare, lxc);
#include <sys/types.h>
#include <lxc/lxc.h>
+#include <lxc/log.h>
+#include <lxc/monitor.h>
#include "arguments.h"
lxc_log_define(lxc_wait, lxc);
#include "error.h"
#include "af_unix.h"
-#include <lxc/lxc.h>
+
#include <lxc/log.h>
+#include <lxc/state.h>
+#include <lxc/monitor.h>
lxc_log_define(lxc_monitor, lxc);
#include <signal.h>
#include <namespace.h>
-#include <lxc/lxc.h>
+#include <lxc/log.h>
lxc_log_define(lxc_namespace, lxc);
lxc_log_define(lxc_restart, lxc);
-LXC_TTY_HANDLER(SIGINT);
-LXC_TTY_HANDLER(SIGQUIT);
-
int lxc_restart(const char *name, int fd, unsigned long flags)
{
return 0;
#include <sys/un.h>
#include <sys/poll.h>
-#include <lxc/lxc.h>
-#include <lxc/confile.h>
-
#ifdef HAVE_SYS_SIGNALFD_H
# include <sys/signalfd.h>
#else
#define PR_CAPBSET_DROP 24
#endif
+#include <lxc/log.h>
+#include <lxc/conf.h>
+#include <lxc/confile.h>
+#include <lxc/start.h>
+#include <lxc/utils.h>
+#include <lxc/cgroup.h>
+#include <lxc/monitor.h>
+
#include "error.h"
#include "af_unix.h"
#include "mainloop.h"
#include "commands.h"
-#include <lxc/lxc.h>
-#include <lxc/log.h>
lxc_log_define(lxc_start, lxc);
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#ifndef __lxc_state_h
+#define __lxc_state_h
+
+#include <lxc/conf.h>
+#include <lxc/state.h>
struct lxc_handler {
extern void lxc_abort(const char *name, struct lxc_handler *handler);
extern void lxc_fini(const char *name, struct lxc_handler *handler);
-
+#endif
#include <sys/stat.h>
#include <sys/file.h>
-#include <lxc/lxc.h>
#include <lxc/log.h>
+#include <lxc/start.h>
#include "commands.h"
#include "config.h"
#include <sys/signal.h>
#include <sys/types.h>
#include <sys/stat.h>
+#include <sys/socket.h>
#include <fcntl.h>
-#include <lxc/lxc.h>
#include <lxc/log.h>
+#include <lxc/start.h>
+
#include "commands.h"
lxc_log_define(lxc_stop, lxc);