#include "path-util.h"
#include "strv.h"
#include "sd-path.h"
+#include "missing.h"
static int from_environment(const char *envname, const char *fallback, const char **ret) {
assert(ret);
return from_home_dir(NULL, ".local/lib", buffer, ret);
case SD_PATH_USER_LIBRARY_ARCH:
- return from_home_dir(NULL, ".local/lib/" ARCH_TUPLE, buffer, ret);
+ return from_home_dir(NULL, ".local/lib/" LIB_ARCH_TUPLE, buffer, ret);
case SD_PATH_USER_SHARED:
return from_home_dir("XDG_DATA_HOME", ".local/share", buffer, 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;
case SD_PATH_SEARCH_LIBRARY_ARCH:
return search_from_environment(list,
NULL,
- ".local/lib/" ARCH_TUPLE,
+ ".local/lib/" LIB_ARCH_TUPLE,
"LD_LIBRARY_PATH",
true,
LIBDIR,
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;