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
241670e7
Unverified
Commit
241670e7
authored
Feb 02, 2021
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commands_utils: add lcx_cmd_notify_state_listeners()
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
751a624f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
commands_utils.c
src/lxc/commands_utils.c
+7
-0
commands_utils.h
src/lxc/commands_utils.h
+3
-0
No files found.
src/lxc/commands_utils.c
View file @
241670e7
...
...
@@ -190,3 +190,10 @@ int lxc_add_state_client(int state_client_fd, struct lxc_handler *handler,
TRACE
(
"Added state client fd %d to state client list"
,
state_client_fd
);
return
MAX_STATE
;
}
void
lxc_cmd_notify_state_listeners
(
const
char
*
name
,
const
char
*
lxcpath
,
lxc_state_t
state
)
{
(
void
)
lxc_cmd_serve_state_clients
(
name
,
lxcpath
,
state
);
(
void
)
lxc_monitor_send_state
(
name
,
state
,
lxcpath
);
}
src/lxc/commands_utils.h
View file @
241670e7
...
...
@@ -62,4 +62,7 @@ __hidden extern int lxc_add_state_client(int state_client_fd, struct lxc_handler
__hidden
extern
int
lxc_cmd_connect
(
const
char
*
name
,
const
char
*
lxcpath
,
const
char
*
hashed_sock_name
,
const
char
*
suffix
);
__hidden
extern
void
lxc_cmd_notify_state_listeners
(
const
char
*
name
,
const
char
*
lxcpath
,
lxc_state_t
state
);
#endif
/* __LXC_COMMANDS_UTILS_H */
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