summaryrefslogtreecommitdiffstats
path: root/src/basic/util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-07-21 17:57:57 +0200
committerLennart Poettering <lennart@poettering.net>2016-07-22 12:59:36 +0200
commit910fd145f46f0916adbc6035b0433eb586bd6ce0 (patch)
treeb341a8ec1ed60cdf1459fd8c77435b3d079901f7 /src/basic/util.h
parenttree-wide: use sd_id128_is_null() instead of sd_id128_equal where appropriate (diff)
downloadsystemd-910fd145f46f0916adbc6035b0433eb586bd6ce0.tar.xz
systemd-910fd145f46f0916adbc6035b0433eb586bd6ce0.zip
sd-id128: split UUID file read/write code into new id128-util.[ch]
We currently have code to read and write files containing UUIDs at various places. Unify this in id128-util.[ch], and move some other stuff there too. The new files are located in src/libsystemd/sd-id128/ (instead of src/shared/), because they are actually the backend of sd_id128_get_machine() and sd_id128_get_boot(). In follow-up patches we can use this reduce the code in nspawn and machine-id-setup by adopted the common implementation.
Diffstat (limited to 'src/basic/util.h')
-rw-r--r--src/basic/util.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/basic/util.h b/src/basic/util.h
index db105197e8..94b8091906 100644
--- a/src/basic/util.h
+++ b/src/basic/util.h
@@ -176,8 +176,6 @@ static inline unsigned log2u_round_up(unsigned x) {
return log2u(x - 1) + 1;
}
-bool id128_is_valid(const char *s) _pure_;
-
int container_get_leader(const char *machine, pid_t *pid);
int namespace_open(pid_t pid, int *pidns_fd, int *mntns_fd, int *netns_fd, int *userns_fd, int *root_fd);