]> git.ipfire.org Git - thirdparty/systemd.git/commit - Makefile.am
sd-id128: split UUID file read/write code into new id128-util.[ch]
authorLennart Poettering <lennart@poettering.net>
Thu, 21 Jul 2016 15:57:57 +0000 (17:57 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 22 Jul 2016 10:59:36 +0000 (12:59 +0200)
commit910fd145f46f0916adbc6035b0433eb586bd6ce0
treeb341a8ec1ed60cdf1459fd8c77435b3d079901f7
parent3bbaff3e08070f03487958818edbd161d439ce15
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.
Makefile.am
src/basic/util.c
src/basic/util.h
src/core/machine-id-setup.c
src/libsystemd/sd-id128/id128-util.c [new file with mode: 0644]
src/libsystemd/sd-id128/id128-util.h [new file with mode: 0644]
src/libsystemd/sd-id128/sd-id128.c
src/nspawn/nspawn.c
src/test/test-id128.c