]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Allow use of public API from C++
authorAndrey Mazo <mazo@telum.ru>
Tue, 24 Dec 2013 17:08:12 +0000 (21:08 +0400)
committerStéphane Graber <stgraber@ubuntu.com>
Wed, 25 Dec 2013 16:15:55 +0000 (17:15 +0100)
Signed-off-by: Andrey Mazo <mazo@telum.ru>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/attach_options.h
src/lxc/lxccontainer.h

index 70a39a9a6ee7ad8ea3aeeeb1b90bb8c3931ebbbe..c7295fbf7f69757ee7c527adaf26b8e6e6525578 100644 (file)
 
 #include <sys/types.h>
 
+#ifdef  __cplusplus
+extern "C" {
+#endif
+
 /*!
  * LXC environment policy.
  */
@@ -168,4 +172,8 @@ extern int lxc_attach_run_command(void* payload);
  */
 extern int lxc_attach_run_shell(void* payload);
 
+#ifdef  __cplusplus
+}
+#endif
+
 #endif
index 797ad9159dda2ecb0ab33040eb2626c22b5a9e18..7d1839eaa74de82ebb94456fa684119b2488abea 100644 (file)
 #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) */
@@ -871,4 +875,8 @@ int list_active_containers(const char *lxcpath, char ***names, struct lxc_contai
  */
 int list_all_containers(const char *lxcpath, char ***names, struct lxc_container ***cret);
 
+#ifdef  __cplusplus
+}
+#endif
+
 #endif