summaryrefslogtreecommitdiffstats
path: root/src/shared/portable-util.h
diff options
context:
space:
mode:
authorMike Yuan <me@yhndnzj.com>2024-10-04 12:57:23 +0200
committerMike Yuan <me@yhndnzj.com>2024-10-06 19:27:11 +0200
commitfeae34d64ea3e037a2a6b631b768ea36c90d30bb (patch)
tree8930ac7e2fd276cfd8e598bfb3e6b7c024ab5307 /src/shared/portable-util.h
parentpath-lookup: move NETWORK_DIRS to network-util.h (diff)
downloadsystemd-feae34d64ea3e037a2a6b631b768ea36c90d30bb.tar.xz
systemd-feae34d64ea3e037a2a6b631b768ea36c90d30bb.zip
path-lookup: move find_portable_profile() to portable-util
Diffstat (limited to 'src/shared/portable-util.h')
-rw-r--r--src/shared/portable-util.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/shared/portable-util.h b/src/shared/portable-util.h
new file mode 100644
index 0000000000..2c89fe3eb8
--- /dev/null
+++ b/src/shared/portable-util.h
@@ -0,0 +1,9 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
+#pragma once
+
+#include "constants.h"
+#include "macro.h"
+
+#define PORTABLE_PROFILE_DIRS CONF_PATHS_NULSTR("systemd/portable/profile")
+
+int find_portable_profile(const char *name, const char *unit, char **ret_path);