summaryrefslogtreecommitdiffstats
path: root/watchdog.h
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2013-03-08 23:47:41 +0100
committerJohn Crispin <blogic@openwrt.org>2013-03-13 18:58:13 +0100
commit9bd712e309421f75363f4a356f4c1ab2c93f8f87 (patch)
tree27f6b64b9a5c55a60fda27eff6cf8391890cd750 /watchdog.h
parentbe950c5e56b86509e1e237931d0ac8203372be82 (diff)
downloadunitd-9bd712e309421f75363f4a356f4c1ab2c93f8f87.tar
unitd-9bd712e309421f75363f4a356f4c1ab2c93f8f87.zip
add watchdog support
Diffstat (limited to 'watchdog.h')
-rw-r--r--watchdog.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/watchdog.h b/watchdog.h
new file mode 100644
index 0000000..92702fd
--- /dev/null
+++ b/watchdog.h
@@ -0,0 +1,23 @@
+/*
+ * Copyright (C) 2013 Felix Fietkau <nbd@openwrt.org>
+ * Copyright (C) 2013 John Crispin <blogic@openwrt.org>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License version 2.1
+ * as published by the Free Software Foundation
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ */
+
+#ifndef __PROCD_WATCHDOG_H
+#define __PROCD_WATCHDOG_H
+
+void watchdog_init(void);
+char* watchdog_fd(void);
+int watchdog_timeout(int timeout);
+int watchdog_frequency(int frequency);
+
+#endif