[rygel/wip/phako/notify] vapi: Add bindings for sd_notify



commit 4ab7852ae2d8ac25fd6e54c7f3507b579055fe6a
Author: Jens Georg <mail jensge org>
Date:   Sat Jan 11 09:48:36 2020 +0100

    vapi: Add bindings for sd_notify

 vapi/systemd-daemon.deps |  1 +
 vapi/systemd-daemon.vapi | 17 +++++++++++++++++
 2 files changed, 18 insertions(+)
---
diff --git a/vapi/systemd-daemon.deps b/vapi/systemd-daemon.deps
new file mode 100644
index 00000000..b3188f74
--- /dev/null
+++ b/vapi/systemd-daemon.deps
@@ -0,0 +1 @@
+posix
diff --git a/vapi/systemd-daemon.vapi b/vapi/systemd-daemon.vapi
new file mode 100644
index 00000000..b85ba308
--- /dev/null
+++ b/vapi/systemd-daemon.vapi
@@ -0,0 +1,17 @@
+[CCode (cheader_filename = "systemd/sd-daemon.h")]
+namespace Systemd.Daemon {
+    [CCode (cname="sd_notify")]
+    int notify([CCode (type="int")]bool unset_environment, string state);
+
+    [CCode (cname="sd_notifyf")]
+    int notifyf([CCode (type="int")]bool unset_environment, string format, ...);
+
+    [CCode (cname="sd_pid_notify")]
+    int pid_notify(Posix.pid_t pid, [CCode (type="int")]bool unset_environment, string state);
+
+    [CCode (cname="sd_pid_notifyf")]
+    int pid_notifyf(Posix.pid_t pid, [CCode (type="int")]bool unset_environment, string format, ...);
+
+    [CCode (cname="sd_pid_notify_with_fds")]
+    int pid_notify_with_fds(Posix.pid_t pid, [CCode (type="int")]bool unset_environment, string state, int[] 
fds);
+}


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]