]> git.proxmox.com Git - qemu.git/blobdiff - hw/watchdog.h
virtio: correctly initialize vm_running
[qemu.git] / hw / watchdog.h
index 8c54fa41fd6fa18fee939c77cfdbaf22bd8ad47d..c12a29311aa149c159471cdcfc49d657f465986d 100644 (file)
 #ifndef QEMU_WATCHDOG_H
 #define QEMU_WATCHDOG_H
 
+#include "qemu-queue.h"
+
 struct WatchdogTimerModel {
-    LIST_ENTRY(WatchdogTimerModel) entry;
+    QLIST_ENTRY(WatchdogTimerModel) entry;
 
     /* Short name of the device - used to select it on the command line. */
     const char *wdt_name;
@@ -33,9 +35,9 @@ struct WatchdogTimerModel {
 typedef struct WatchdogTimerModel WatchdogTimerModel;
 
 /* in hw/watchdog.c */
-extern int select_watchdog(const char *p);
-extern int select_watchdog_action(const char *action);
-extern void watchdog_add_model(WatchdogTimerModel *model);
-extern void watchdog_perform_action(void);
+int select_watchdog(const char *p);
+int select_watchdog_action(const char *action);
+void watchdog_add_model(WatchdogTimerModel *model);
+void watchdog_perform_action(void);
 
 #endif /* QEMU_WATCHDOG_H */