Add documentation for the WatchdogClient class
authorJonathan Maw <jonathan.maw@codethink.co.uk>
Tue, 7 Aug 2012 12:24:34 +0000 (13:24 +0100)
committerJannis Pohlmann <jannis.pohlmann@codethink.co.uk>
Tue, 7 Aug 2012 13:53:32 +0000 (14:53 +0100)
NEWS
common/watchdog-client.c

diff --git a/NEWS b/NEWS
index 9451811..a2d5038 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -8,6 +8,7 @@ x.y.z
 * Add documentation for the JobManager class
 * Add documentation for the LAHandlerService class
 * Add documentation for the TargetStartupMonitor class
+* Add documentation for the WatchdogClient class
 
 0.9.1
 =====
index a2c1090..4ccf15c 100644 (file)
 
 
 
+/**
+ * SECTION: watchdog-client
+ * @title: Watchdog Client
+ * @short_description: Notifies the systemd watchdog over a set period.
+ * @stability: Internal
+ * 
+ * The watchdog client notifies systemd's watchdog regularly over a period of seconds
+ * defined in watchdog_client_new(). If the appropriate service file has %WatchdogSec set
+ * then systemd will restart the service if it has not replied during that period (e.g. it
+ * has crashed or is stuck in an infinite loop).
+ * 
+ */
+
+
+
 /* property identifiers */
 enum
 {
@@ -176,6 +191,14 @@ watchdog_client_timeout (gpointer user_data)
 
 
 
+/**
+ * watchdog_client_new:
+ * @timeout: The amount of time to wait in between notifications to systemd's watchdog.
+ * 
+ * Creates a new watchdog and starts notifying systemd's watchdog every @timeout seconds.
+ * 
+ * Returns: A new instance of #WatchdogClient.
+ */
 WatchdogClient *
 watchdog_client_new (guint timeout)
 {