core: remove libsystemd dependency (#5660)

* remove libsystemd dependency

as per Lennart Poettering's advice:
https://github.com/systemd/systemd/issues/32028#issuecomment-2031366922

* fix naming for systemd helper functions

* rename vars according to code style

* Nix: update meson patch

---------

Co-authored-by: Mihai Fufezan <mihai@fufexan.net>
This commit is contained in:
Yaroslav
2024-04-20 22:50:07 +05:00
committed by GitHub
parent ea47e8c92a
commit a945346064
7 changed files with 76 additions and 31 deletions

6
src/helpers/SdDaemon.hpp Normal file
View File

@@ -0,0 +1,6 @@
#pragma once
namespace Systemd {
int SdBooted(void);
int SdNotify(int unset_environment, const char* state);
}