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
5b680587
Unverified
Commit
5b680587
authored
Jun 15, 2017
by
Christian Brauner
Committed by
Stéphane Graber
Jul 16, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
network: add arg to config clear method
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
e360d52a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
2 deletions
+2
-2
confile.c
src/lxc/confile.c
+0
-0
confile.h
src/lxc/confile.h
+1
-1
lxccontainer.c
src/lxc/lxccontainer.c
+1
-1
No files found.
src/lxc/confile.c
View file @
5b680587
This diff is collapsed.
Click to expand it.
src/lxc/confile.h
View file @
5b680587
...
@@ -34,7 +34,7 @@ struct lxc_list;
...
@@ -34,7 +34,7 @@ struct lxc_list;
typedef
int
(
*
config_set_cb
)(
const
char
*
,
const
char
*
,
struct
lxc_conf
*
,
typedef
int
(
*
config_set_cb
)(
const
char
*
,
const
char
*
,
struct
lxc_conf
*
,
void
*
data
);
void
*
data
);
typedef
int
(
*
config_get_cb
)(
const
char
*
,
char
*
,
int
,
struct
lxc_conf
*
);
typedef
int
(
*
config_get_cb
)(
const
char
*
,
char
*
,
int
,
struct
lxc_conf
*
);
typedef
int
(
*
config_clr_cb
)(
const
char
*
key
,
struct
lxc_conf
*
c
);
typedef
int
(
*
config_clr_cb
)(
const
char
*
,
struct
lxc_conf
*
c
,
void
*
data
);
struct
lxc_config_t
{
struct
lxc_config_t
{
char
*
name
;
char
*
name
;
config_set_cb
set
;
config_set_cb
set
;
...
...
src/lxc/lxccontainer.c
View file @
5b680587
...
@@ -1722,7 +1722,7 @@ static bool do_lxcapi_clear_config_item(struct lxc_container *c,
...
@@ -1722,7 +1722,7 @@ static bool do_lxcapi_clear_config_item(struct lxc_container *c,
* implemented.
* implemented.
*/
*/
if
(
config
&&
config
->
clr
)
if
(
config
&&
config
->
clr
)
ret
=
config
->
clr
(
key
,
c
->
lxc_conf
);
ret
=
config
->
clr
(
key
,
c
->
lxc_conf
,
NULL
);
if
(
!
ret
)
if
(
!
ret
)
do_clear_unexp_config_line
(
c
->
lxc_conf
,
key
);
do_clear_unexp_config_line
(
c
->
lxc_conf
,
key
);
...
...
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