*/
extern int lxc_restart(const char *, int, struct lxc_conf *, int, const char *);
-/*
- * Returns the version number of the library
- */
-extern const char const *lxc_version(void);
-
/*
* Create and return a new lxccontainer struct.
*/
#include "confile.h"
#include "cgroup.h"
#include "commands.h"
+#include "version.h"
#include "log.h"
#include <unistd.h>
#include <sys/types.h>
return default_lxc_path();
}
+const char *lxc_get_version(void)
+{
+ return lxc_version();
+}
+
struct lxc_container *lxc_container_new(const char *name, const char *configpath)
{
struct lxc_container *c;
int lxc_container_put(struct lxc_container *c);
int lxc_get_wait_states(const char **states);
const char *lxc_get_default_config_path(void);
+const char *lxc_get_version(void);
#if 0
char ** lxc_get_valid_keys();
--- /dev/null
+/*
+ * lxc: linux Container library
+ *
+ * (C) Copyright IBM Corp. 2007, 2008
+ *
+ * Authors:
+ * Daniel Lezcano <dlezcano at fr.ibm.com>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * 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 _version_h
+#define _version_h
+
+/*
+ * Returns the version number of the library
+ */
+extern const char const *lxc_version(void);
+
+#endif