chiark / gitweb /
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)
committerSven Eden <yamakuzure@gmx.net>
Fri, 16 Jun 2017 08:13:01 +0000 (10:13 +0200)
commit7f1ebb0bcb5c480ea0e21f24f8b348a85313087b
tree51691d86eee7b79b861403281e3e985f4c2489fe
parent8ee75c221615585dff04159a6d51fe223e6d4d2f
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/libelogind/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.
src/libelogind/sd-id128/id128-util.c [new file with mode: 0644]
src/libelogind/sd-id128/id128-util.h [new file with mode: 0644]
src/libelogind/sd-id128/sd-id128.c