mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-02 21:04:08 +00:00
Allow use of public API from C++
Signed-off-by: Andrey Mazo <mazo@telum.ru> Acked-by: Stéphane Graber <stgraber@ubuntu.com>
This commit is contained in:
parent
db821c3a41
commit
579e783eec
@ -27,6 +27,10 @@
|
||||
|
||||
#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
|
||||
|
@ -28,6 +28,10 @@
|
||||
#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
|
||||
|
Loading…
Reference in New Issue
Block a user