31template <
typename T,
typename... Ts>
32inline void notify(T, Ts...);
40 static std::stringstream
fmt;
46 template <
typename T,
typename... Ts>
47 friend void notify(T t, Ts... ts);
57template <
typename T,
typename... Ts>
58inline void notify(T t [[maybe_unused]], Ts... ts [[maybe_unused]]) {
60#ifndef WITH_SYSTEMD_DEBUG
Class wrapping the "globals" as static members so that they can only be accessed from the friend-decl...
Definition: sd_notify.h:38
static int socket
File descriptor for the systemd notification socket file.
Definition: sd_notify.h:39
static std::stringstream fmt
Stringstream for formatting notification messages.
Definition: sd_notify.h:40
friend void notify()
Recursion terminator overload for varargs template function.
Definition: sd_notify.cc:116
friend void notify_connect()
Looks for the name of the socket file in the environment variable NOTIFY_SOCKET.
Definition: sd_notify.cc:63
Definition: sd_notify.cc:52
void notify_connect()
Looks for the name of the socket file in the environment variable NOTIFY_SOCKET.
Definition: sd_notify.cc:63
void notify()
Recursion terminator overload for varargs template function.
Definition: sd_notify.cc:116