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
4f1f10bd
Unverified
Commit
4f1f10bd
authored
Jun 14, 2017
by
Christian Brauner
Committed by
Stéphane Graber
Jul 16, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
network: add data arg to set callback
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
2238c216
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
2 deletions
+3
-2
confile.c
src/lxc/confile.c
+0
-0
confile.h
src/lxc/confile.h
+2
-1
lxccontainer.c
src/lxc/lxccontainer.c
+1
-1
No files found.
src/lxc/confile.c
View file @
4f1f10bd
This diff is collapsed.
Click to expand it.
src/lxc/confile.h
View file @
4f1f10bd
...
@@ -31,7 +31,8 @@
...
@@ -31,7 +31,8 @@
struct
lxc_conf
;
struct
lxc_conf
;
struct
lxc_list
;
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
);
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
*
key
,
struct
lxc_conf
*
c
);
struct
lxc_config_t
{
struct
lxc_config_t
{
...
...
src/lxc/lxccontainer.c
View file @
4f1f10bd
...
@@ -2511,7 +2511,7 @@ static bool set_config_item_locked(struct lxc_container *c, const char *key, con
...
@@ -2511,7 +2511,7 @@ static bool set_config_item_locked(struct lxc_container *c, const char *key, con
config
=
lxc_getconfig
(
key
);
config
=
lxc_getconfig
(
key
);
if
(
!
config
)
if
(
!
config
)
return
false
;
return
false
;
if
(
config
->
set
(
key
,
v
,
c
->
lxc_conf
)
!=
0
)
if
(
config
->
set
(
key
,
v
,
c
->
lxc_conf
,
NULL
)
!=
0
)
return
false
;
return
false
;
return
do_append_unexp_config_line
(
c
->
lxc_conf
,
key
,
v
);
return
do_append_unexp_config_line
(
c
->
lxc_conf
,
key
,
v
);
}
}
...
...
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