chiark / gitweb /
build-sys: export sd_path APIs
authorLennart Poettering <lennart@poettering.net>
Fri, 11 Jul 2014 01:13:24 +0000 (03:13 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 11 Jul 2014 01:13:24 +0000 (03:13 +0200)
Makefile.am
src/libsystemd/libsystemd.sym.m4
src/libsystemd/sd-path/sd-path.c

index 5c6c0c1..734e5c1 100644 (file)
@@ -5640,7 +5640,8 @@ test-libsystemd-sym.c: \
                src/systemd/sd-login.h \
                src/systemd/sd-bus.h \
                src/systemd/sd-utf8.h \
-               src/systemd/sd-resolve.h
+               src/systemd/sd-resolve.h \
+               src/systemd/sd-path.h
        $(generate-sym-test)
 
 test-libudev-sym.c: \
index b4e3035..39e1f51 100644 (file)
@@ -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;
 )
index 360c854..651fceb 100644 (file)
@@ -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;