30template <
typename T,
typename... Ts>
31inline void notify(T, Ts...);
39 static std::stringstream
fmt;
45 template <
typename T,
typename... Ts>
46 friend void notify(T t, Ts... ts);
56template <
typename T,
typename... Ts>
57inline void notify(T t [[maybe_unused]], Ts... ts [[maybe_unused]]) {
59#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:37
static int socket
File descriptor for the systemd notification socket file.
Definition: sd_notify.h:38
static std::stringstream fmt
Stringstream for formatting notification messages.
Definition: sd_notify.h:39
friend void notify()
Recursion terminator overload for varargs template function.
Definition: sd_notify.cc:115
friend void notify_connect()
Looks for the name of the socket file in the environment variable NOTIFY_SOCKET.
Definition: sd_notify.cc:62
Definition: sd_notify.cc:51
void notify_connect()
Looks for the name of the socket file in the environment variable NOTIFY_SOCKET.
Definition: sd_notify.cc:62
void notify()
Recursion terminator overload for varargs template function.
Definition: sd_notify.cc:115