From: Andrey Mazo Date: Tue, 24 Dec 2013 17:08:12 +0000 (+0400) Subject: Allow use of public API from C++ X-Git-Tag: lxc-1.0.0.beta2~106 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=579e783eecaa194bbffd49d27e730a83e836705a;p=thirdparty%2Flxc.git Allow use of public API from C++ Signed-off-by: Andrey Mazo Acked-by: Stéphane Graber --- diff --git a/src/lxc/attach_options.h b/src/lxc/attach_options.h index 70a39a9a6..c7295fbf7 100644 --- a/src/lxc/attach_options.h +++ b/src/lxc/attach_options.h @@ -27,6 +27,10 @@ #include +#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 diff --git a/src/lxc/lxccontainer.h b/src/lxc/lxccontainer.h index 797ad9159..7d1839eaa 100644 --- a/src/lxc/lxccontainer.h +++ b/src/lxc/lxccontainer.h @@ -28,6 +28,10 @@ #include #include +#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