Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
579e783e
Commit
579e783e
authored
Dec 24, 2013
by
Andrey Mazo
Committed by
Stéphane Graber
Dec 25, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow use of public API from C++
Signed-off-by:
Andrey Mazo
<
mazo@telum.ru
>
Acked-by:
Stéphane Graber
<
stgraber@ubuntu.com
>
parent
db821c3a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
attach_options.h
src/lxc/attach_options.h
+8
-0
lxccontainer.h
src/lxc/lxccontainer.h
+8
-0
No files found.
src/lxc/attach_options.h
View file @
579e783e
...
...
@@ -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
src/lxc/lxccontainer.h
View file @
579e783e
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment