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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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);
}