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
bffb57fc
Unverified
Commit
bffb57fc
authored
Dec 09, 2020
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lxc: add cleanup helpers
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
3990a381
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
lxc.h
src/lxc/lxc.h
+8
-0
No files found.
src/lxc/lxc.h
View file @
bffb57fc
...
@@ -13,6 +13,7 @@ extern "C" {
...
@@ -13,6 +13,7 @@ extern "C" {
#include <sys/types.h>
#include <sys/types.h>
#include "compiler.h"
#include "compiler.h"
#include "memory_utils.h"
#include "state.h"
#include "state.h"
struct
lxc_msg
;
struct
lxc_msg
;
...
@@ -94,6 +95,13 @@ extern int lxc_container_get(struct lxc_container *c);
...
@@ -94,6 +95,13 @@ extern int lxc_container_get(struct lxc_container *c);
* If it is the last reference, free the lxccontainer and return 1.
* If it is the last reference, free the lxccontainer and return 1.
*/
*/
extern
int
lxc_container_put
(
struct
lxc_container
*
c
);
extern
int
lxc_container_put
(
struct
lxc_container
*
c
);
static
inline
void
put_lxc_container
(
struct
lxc_container
*
c
)
{
if
(
c
)
lxc_container_put
(
c
);
}
define_cleanup_function
(
struct
lxc_container
*
,
put_lxc_container
);
#define __put_lxc_container call_cleaner(put_lxc_container)
/*
/*
* Get a list of valid wait states.
* Get a list of valid wait states.
...
...
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