]> git.sur5r.net Git - bacula/bacula/commitdiff
Add watchdog.h
authorKern Sibbald <kern@sibbald.com>
Thu, 12 Dec 2002 10:51:11 +0000 (10:51 +0000)
committerKern Sibbald <kern@sibbald.com>
Thu, 12 Dec 2002 10:51:11 +0000 (10:51 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@237 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/lib/watchdog.h [new file with mode: 0644]

diff --git a/bacula/src/lib/watchdog.h b/bacula/src/lib/watchdog.h
new file mode 100644 (file)
index 0000000..e921bde
--- /dev/null
@@ -0,0 +1,36 @@
+/*
+ * Watchdog timer routines
+ * 
+ *    Kern Sibbald, December MMII
+ *
+*/
+/*
+   Copyright (C) 2002 Kern Sibbald and John Walker
+
+   This program is free software; you can redistribute it and/or
+   modify it under the terms of the GNU General Public License as
+   published by the Free Software Foundation; either version 2 of
+   the License, or (at your option) any later version.
+
+   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.
+
+   You should have received a copy of the GNU General Public
+   License along with this program; if not, write to the Free
+   Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+   MA 02111-1307, USA.
+
+ */
+
+typedef struct s_btimer_t {
+   struct s_btimer_t *next;
+   struct s_btimer_t *prev;
+   time_t start_time;
+   int32_t  wait;
+   pid_t pid;
+   int killed;
+} btimer_t;
+
+#define btimer_id btimer_t *