X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fsystemd%2Fsd-daemon.h;h=351b4e59c48e2f327bc766cb0eb11f0dea5cd7df;hb=3c56cab44150ad47323970cfadfb0257c6305a74;hp=1d636df3ea51a620c75569faf9a26a0b75cf3f9d;hpb=952d1536f4d7b64cfe938a569402434decffe4cd;p=elogind.git diff --git a/src/systemd/sd-daemon.h b/src/systemd/sd-daemon.h index 1d636df3e..351b4e59c 100644 --- a/src/systemd/sd-daemon.h +++ b/src/systemd/sd-daemon.h @@ -230,6 +230,18 @@ int sd_notify(int unset_environment, const char *state); */ int sd_notifyf(int unset_environment, const char *format, ...) _sd_printf_(2,3); +/* + Similar to sd_notify(), but send the message on behalf of another + process, if the appropriate permissions are available. +*/ +int sd_pid_notify(pid_t pid, int unset_environment, const char *state); + +/* + Similar to sd_notifyf(), but send the message on behalf of another + process, if the appropriate permissions are available. +*/ +int sd_pid_notifyf(pid_t pid, int unset_environment, const char *format, ...) _sd_printf_(3,4); + /* Returns > 0 if the system was booted with systemd. Returns < 0 on error. Returns 0 if the system was not booted with systemd. Note