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
94a5e86b
Unverified
Commit
94a5e86b
authored
Jul 17, 2020
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commands_utils: hide unnecessary symbols
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
7ebbfe89
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
13 deletions
+11
-13
commands_utils.h
src/lxc/commands_utils.h
+10
-13
Makefile.am
src/tests/Makefile.am
+1
-0
No files found.
src/lxc/commands_utils.h
View file @
94a5e86b
...
@@ -8,11 +8,9 @@
...
@@ -8,11 +8,9 @@
#include "state.h"
#include "state.h"
#include "commands.h"
#include "commands.h"
int
lxc_make_abstract_socket_name
(
char
*
path
,
size_t
pathlen
,
__hidden
extern
int
lxc_make_abstract_socket_name
(
char
*
path
,
size_t
pathlen
,
const
char
*
lxcname
,
const
char
*
lxcname
,
const
char
*
lxcpath
,
const
char
*
hashed_sock_name
,
const
char
*
lxcpath
,
const
char
*
suffix
);
const
char
*
hashed_sock_name
,
const
char
*
suffix
);
/* lxc_cmd_sock_get_state Register a new state client fd in the container's
/* lxc_cmd_sock_get_state Register a new state client fd in the container's
* in-memory handler and retrieve the requested
* in-memory handler and retrieve the requested
...
@@ -24,8 +22,8 @@ int lxc_make_abstract_socket_name(char *path, size_t pathlen,
...
@@ -24,8 +22,8 @@ int lxc_make_abstract_socket_name(char *path, size_t pathlen,
* @return Return < 0 on error
* @return Return < 0 on error
* < MAX_STATE current container state
* < MAX_STATE current container state
*/
*/
extern
int
lxc_cmd_sock_get_state
(
const
char
*
name
,
const
char
*
lxcpath
,
__hidden
extern
int
lxc_cmd_sock_get_state
(
const
char
*
name
,
const
char
*
lxcpath
,
lxc_state_t
states
[
MAX_STATE
],
int
timeout
);
lxc_state_t
states
[
MAX_STATE
],
int
timeout
);
/* lxc_cmd_sock_rcv_state Retrieve the requested state from a state client
/* lxc_cmd_sock_rcv_state Retrieve the requested state from a state client
* fd registerd in the container's in-memory
* fd registerd in the container's in-memory
...
@@ -36,7 +34,7 @@ extern int lxc_cmd_sock_get_state(const char *name, const char *lxcpath,
...
@@ -36,7 +34,7 @@ extern int lxc_cmd_sock_get_state(const char *name, const char *lxcpath,
* @return Return < 0 on error
* @return Return < 0 on error
* < MAX_STATE current container state
* < MAX_STATE current container state
*/
*/
extern
int
lxc_cmd_sock_rcv_state
(
int
state_client_fd
,
int
timeout
);
__hidden
extern
int
lxc_cmd_sock_rcv_state
(
int
state_client_fd
,
int
timeout
);
/* lxc_add_state_client Add a new state client to the container's
/* lxc_add_state_client Add a new state client to the container's
* in-memory handler.
* in-memory handler.
...
@@ -48,9 +46,8 @@ extern int lxc_cmd_sock_rcv_state(int state_client_fd, int timeout);
...
@@ -48,9 +46,8 @@ extern int lxc_cmd_sock_rcv_state(int state_client_fd, int timeout);
* @return Return < 0 on error
* @return Return < 0 on error
* 0 on success
* 0 on success
*/
*/
extern
int
lxc_add_state_client
(
int
state_client_fd
,
__hidden
extern
int
lxc_add_state_client
(
int
state_client_fd
,
struct
lxc_handler
*
handler
,
struct
lxc_handler
*
handler
,
lxc_state_t
states
[
MAX_STATE
]);
lxc_state_t
states
[
MAX_STATE
]);
/* lxc_cmd_connect Connect to the container's command socket.
/* lxc_cmd_connect Connect to the container's command socket.
*
*
...
@@ -62,7 +59,7 @@ extern int lxc_add_state_client(int state_client_fd,
...
@@ -62,7 +59,7 @@ extern int lxc_add_state_client(int state_client_fd,
* @return Return < 0 on error
* @return Return < 0 on error
* >= 0 client fd
* >= 0 client fd
*/
*/
extern
int
lxc_cmd_connect
(
const
char
*
name
,
const
char
*
lxcpath
,
__hidden
extern
int
lxc_cmd_connect
(
const
char
*
name
,
const
char
*
lxcpath
,
const
char
*
hashed_sock_name
,
const
char
*
suffix
);
const
char
*
hashed_sock_name
,
const
char
*
suffix
);
#endif
/* __LXC_COMMANDS_UTILS_H */
#endif
/* __LXC_COMMANDS_UTILS_H */
src/tests/Makefile.am
View file @
94a5e86b
...
@@ -9,6 +9,7 @@ lxc_test_basic_SOURCES = basic.c
...
@@ -9,6 +9,7 @@ lxc_test_basic_SOURCES = basic.c
lxc_test_cgpath_SOURCES
=
cgpath.c
\
lxc_test_cgpath_SOURCES
=
cgpath.c
\
../lxc/af_unix.c ../lxc/af_unix.h
\
../lxc/af_unix.c ../lxc/af_unix.h
\
../lxc/commands.c ../lxc/commands.h
\
../lxc/commands.c ../lxc/commands.h
\
../lxc/commands_utils.c ../lxc/commands_utils.h
\
../lxc/string_utils.c ../lxc/string_utils.h
../lxc/string_utils.c ../lxc/string_utils.h
lxc_test_clonetest_SOURCES
=
clonetest.c
lxc_test_clonetest_SOURCES
=
clonetest.c
lxc_test_concurrent_SOURCES
=
concurrent.c
lxc_test_concurrent_SOURCES
=
concurrent.c
...
...
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