]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/lib/watchdog.h
- Add Version, ConfigDir, and WorkingDir as Python attributes
[bacula/bacula] / bacula / src / lib / watchdog.h
index aaae0c74cc6a935af7f002e827be388509fab3a3..c8e1cebb582297dedf58a3d713a6f78867206543 100644 (file)
@@ -1,11 +1,11 @@
 /*
  * Watchdog timer routines
- * 
+ *
  *    Kern Sibbald, December MMII
  *
 */
 /*
-   Copyright (C) 2002 Kern Sibbald and John Walker
+   Copyright (C) 2002-2004 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
 
  */
 
-#define TYPE_CHILD   1
-#define TYPE_PTHREAD 2
+enum {
+   TYPE_CHILD = 1,
+   TYPE_PTHREAD,
+   TYPE_BSOCK
+};
 
 #define TIMEOUT_SIGNAL SIGUSR2
 
-/* This breaks Kern's #include rules, but I don't want to put it into bacula.h
- * until it has been discussed with him */
-#include "bsd_queue.h"
-
 struct s_watchdog_t {
        bool one_shot;
        time_t interval;
@@ -40,7 +39,7 @@ struct s_watchdog_t {
        void (*destructor)(struct s_watchdog_t *wd);
        void *data;
        /* Private data below - don't touch outside of watchdog.c */
-       TAILQ_ENTRY(s_watchdog_t) qe;
+       dlink link;
        time_t next_fire;
 };
 typedef struct s_watchdog_t watchdog_t;