]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
confile: unhide lxc_config_define*() helpers
authorAlexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>
Sat, 17 Feb 2024 15:58:02 +0000 (16:58 +0100)
committerAlexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>
Sat, 17 Feb 2024 15:58:02 +0000 (16:58 +0100)
Let's unhide lxc_config_define_add, lxc_config_define_load and
lxc_config_define_free helpers. These functions are safe enough
to be used by external tools. Semantic is also clear.

Reason is that we have lxc-start/lxc-execute tools which
use these symbols. Right now it works, because we just
link a whole liblxc statically to each lxc-* tool...

Signed-off-by: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>
src/lxc/confile.h

index 168fbce29d80b78cf6c98fe4aad18c4df926f6ad..397aefae4d050c02d439757504058d092e39e17b 100644 (file)
@@ -77,11 +77,11 @@ __hidden extern int lxc_config_read(const char *file, struct lxc_conf *conf, boo
 
 __hidden extern int append_unexp_config_line(const char *line, struct lxc_conf *conf);
 
-__hidden extern int lxc_config_define_add(struct lxc_list *defines, char *arg);
+extern int lxc_config_define_add(struct lxc_list *defines, char *arg);
 
-__hidden extern bool lxc_config_define_load(struct lxc_list *defines, struct lxc_container *c);
+extern bool lxc_config_define_load(struct lxc_list *defines, struct lxc_container *c);
 
-__hidden extern void lxc_config_define_free(struct lxc_list *defines);
+extern void lxc_config_define_free(struct lxc_list *defines);
 
 #define LXC_ARCH_UNCHANGED 0xffffffffL
 /*