Signed-off-by: Andrey Mazo <mazo@telum.ru>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
#include <sys/types.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/*!
* LXC environment policy.
*/
*/
extern int lxc_attach_run_shell(void* payload);
+#ifdef __cplusplus
+}
+#endif
+
#endif
#include <stdbool.h>
#include <stdlib.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#define LXC_CLONE_KEEPNAME (1 << 0) /*!< Do not edit the rootfs to change the hostname */
#define LXC_CLONE_KEEPMACADDR (1 << 1) /*!< Do not change the MAC address on network interfaces */
#define LXC_CLONE_SNAPSHOT (1 << 2) /*!< Snapshot the original filesystem(s) */
*/
int list_all_containers(const char *lxcpath, char ***names, struct lxc_container ***cret);
+#ifdef __cplusplus
+}
+#endif
+
#endif