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
2b1c12c5
Unverified
Commit
2b1c12c5
authored
Jul 20, 2020
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mainloop: hide unnecessary symbols
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
66e8f7a8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
11 deletions
+16
-11
Makefile.am
src/lxc/Makefile.am
+2
-0
mainloop.h
src/lxc/mainloop.h
+9
-11
Makefile.am
src/tests/Makefile.am
+5
-0
No files found.
src/lxc/Makefile.am
View file @
2b1c12c5
...
...
@@ -553,6 +553,7 @@ lxc_stop_SOURCES = tools/lxc_stop.c \
file_utils.c file_utils.h
\
initutils.c initutils.h
\
log.c log.h
\
mainloop.c mainloop.h
\
string_utils.c string_utils.h
if
ENABLE_SECCOMP
lxc_stop_SOURCES
+=
seccomp.c lxcseccomp.h
...
...
@@ -568,6 +569,7 @@ lxc_top_SOURCES = tools/lxc_top.c \
file_utils.c file_utils.h
\
initutils.c initutils.h
\
log.c log.h
\
mainloop.c mainloop.h
\
string_utils.c string_utils.h
if
ENABLE_SECCOMP
lxc_top_SOURCES
+=
seccomp.c lxcseccomp.h
...
...
src/lxc/mainloop.h
View file @
2b1c12c5
...
...
@@ -5,6 +5,7 @@
#include <stdint.h>
#include "compiler.h"
#include "list.h"
#include "memory_utils.h"
...
...
@@ -20,21 +21,18 @@ struct lxc_epoll_descr {
typedef
int
(
*
lxc_mainloop_callback_t
)(
int
fd
,
uint32_t
event
,
void
*
data
,
struct
lxc_epoll_descr
*
descr
);
extern
int
lxc_mainloop
(
struct
lxc_epoll_descr
*
descr
,
int
timeout_ms
);
__hidden
extern
int
lxc_mainloop
(
struct
lxc_epoll_descr
*
descr
,
int
timeout_ms
);
extern
int
lxc_mainloop_add_handler_events
(
struct
lxc_epoll_descr
*
descr
,
int
fd
,
int
events
,
lxc_mainloop_callback_t
callback
,
void
*
data
);
extern
int
lxc_mainloop_add_handler
(
struct
lxc_epoll_descr
*
descr
,
int
fd
,
lxc_mainloop_callback_t
callback
,
void
*
data
);
__hidden
extern
int
lxc_mainloop_add_handler_events
(
struct
lxc_epoll_descr
*
descr
,
int
fd
,
int
events
,
lxc_mainloop_callback_t
callback
,
void
*
data
);
__hidden
extern
int
lxc_mainloop_add_handler
(
struct
lxc_epoll_descr
*
descr
,
int
fd
,
lxc_mainloop_callback_t
callback
,
void
*
data
);
extern
int
lxc_mainloop_del_handler
(
struct
lxc_epoll_descr
*
descr
,
int
fd
);
__hidden
extern
int
lxc_mainloop_del_handler
(
struct
lxc_epoll_descr
*
descr
,
int
fd
);
extern
int
lxc_mainloop_open
(
struct
lxc_epoll_descr
*
descr
);
__hidden
extern
int
lxc_mainloop_open
(
struct
lxc_epoll_descr
*
descr
);
extern
void
lxc_mainloop_close
(
struct
lxc_epoll_descr
*
descr
);
__hidden
extern
void
lxc_mainloop_close
(
struct
lxc_epoll_descr
*
descr
);
define_cleanup_function
(
struct
lxc_epoll_descr
*
,
lxc_mainloop_close
);
...
...
src/tests/Makefile.am
View file @
2b1c12c5
...
...
@@ -18,6 +18,7 @@ lxc_test_api_reboot_SOURCES = api_reboot.c \
../lxc/file_utils.c ../lxc/file_utils.h
\
../lxc/initutils.c ../lxc/initutils.h
\
../lxc/log.c ../lxc/log.h
\
../lxc/mainloop.c ../lxc/mainloop.h
\
../lxc/network.c ../lxc/network.h
\
../lxc/nl.c ../lxc/nl.h
\
../lxc/string_utils.c ../lxc/string_utils.h
...
...
@@ -37,6 +38,7 @@ lxc_test_attach_SOURCES = attach.c \
../lxc/file_utils.c ../lxc/file_utils.h
\
../lxc/initutils.c ../lxc/initutils.h
\
../lxc/log.c ../lxc/log.h
\
../lxc/mainloop.c ../lxc/mainloop.h
\
../lxc/network.c ../lxc/network.h
\
../lxc/nl.c ../lxc/nl.h
\
../lxc/string_utils.c ../lxc/string_utils.h
...
...
@@ -56,6 +58,7 @@ lxc_test_cgpath_SOURCES = cgpath.c \
../lxc/file_utils.c ../lxc/file_utils.h
\
../lxc/initutils.c ../lxc/initutils.h
\
../lxc/log.c ../lxc/log.h
\
../lxc/mainloop.c ../lxc/mainloop.h
\
../lxc/network.c ../lxc/network.h
\
../lxc/nl.c ../lxc/nl.h
\
../lxc/string_utils.c ../lxc/string_utils.h
...
...
@@ -77,6 +80,7 @@ lxc_test_config_jump_table_SOURCES = config_jump_table.c \
../lxc/file_utils.c ../lxc/file_utils.h
\
../lxc/initutils.c ../lxc/initutils.h
\
../lxc/log.c ../lxc/log.h
\
../lxc/mainloop.c ../lxc/mainloop.h
\
../lxc/network.c ../lxc/network.h
\
../lxc/nl.c ../lxc/nl.h
\
../lxc/string_utils.c ../lxc/string_utils.h
...
...
@@ -159,6 +163,7 @@ lxc_test_utils_SOURCES = lxc-test-utils.c \
../lxc/file_utils.c ../lxc/file_utils.h
\
../lxc/initutils.c ../lxc/initutils.h
\
../lxc/log.c ../lxc/log.h
\
../lxc/mainloop.c ../lxc/mainloop.h
\
../lxc/network.c ../lxc/network.h
\
../lxc/nl.c ../lxc/nl.h
\
../lxc/string_utils.c ../lxc/string_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