summaryrefslogtreecommitdiff
path: root/src/libsystemd
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-07-11 03:13:24 +0200
committerLennart Poettering <lennart@poettering.net>2014-07-11 03:13:24 +0200
commit2de30868edab5b099cb1e5413e47ed11ded4cc63 (patch)
tree7105a855123b96414a60aef07e8d6311be63f461 /src/libsystemd
parentc9fdc26e96493175668fbde61a04fc70abff300d (diff)
build-sys: export sd_path APIs
Diffstat (limited to 'src/libsystemd')
-rw-r--r--src/libsystemd/libsystemd.sym.m44
-rw-r--r--src/libsystemd/sd-path/sd-path.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/src/libsystemd/libsystemd.sym.m4 b/src/libsystemd/libsystemd.sym.m4
index b4e3035871..39e1f51f7c 100644
--- a/src/libsystemd/libsystemd.sym.m4
+++ b/src/libsystemd/libsystemd.sym.m4
@@ -440,5 +440,9 @@ global:
sd_resolve_query_get_userdata;
sd_resolve_query_set_userdata;
sd_resolve_query_get_resolve;
+
+ /* sd-path */
+ sd_path_home;
+ sd_path_search;
} LIBSYSTEMD_214;
)
diff --git a/src/libsystemd/sd-path/sd-path.c b/src/libsystemd/sd-path/sd-path.c
index 360c85405b..651fceb79d 100644
--- a/src/libsystemd/sd-path/sd-path.c
+++ b/src/libsystemd/sd-path/sd-path.c
@@ -326,7 +326,7 @@ static int get_path(uint64_t type, char **buffer, const char **ret) {
return -ENOTSUP;
}
-int sd_path_home(uint64_t type, const char *suffix, char **path) {
+_public_ int sd_path_home(uint64_t type, const char *suffix, char **path) {
char *buffer = NULL, *cc;
const char *ret;
int r;
@@ -555,7 +555,7 @@ static int get_search(uint64_t type, char ***list) {
return -ENOTSUP;
}
-int sd_path_search(uint64_t type, const char *suffix, char ***paths) {
+_public_ int sd_path_search(uint64_t type, const char *suffix, char ***paths) {
char **l, **i, **j, **n;
int r;