Add optional systemd integration
[tinc] / src / watchdog.h
diff --git a/src/watchdog.h b/src/watchdog.h
new file mode 100644 (file)
index 0000000..9865451
--- /dev/null
@@ -0,0 +1,15 @@
+#ifndef TINC_WATCHDOG_H
+#define TINC_WATCHDOG_H
+
+// Start sending keepalive notifications to watchdog.
+// Called after initialization is finished before entering the event loop.
+void watchdog_start(void);
+
+// Stop sending keepalive notifications.
+// Called shortly before exiting.
+void watchdog_stop(void);
+
+// Send keepalive notification.
+void watchdog_ping(void);
+
+#endif // TINC_WATCHDOG_H