X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fprocd.git;a=blobdiff_plain;f=watchdog.h;h=73c75d57919b649c8b7e259673cd98232e4392d3;hp=3c4a4879bbf4de7139b3bfa4c77d30eafe8f76f1;hb=006c19c45464648a356e200f8ef011b021b9ff6f;hpb=63789e51ed913394c6bd4ac34e40ed0c8fcccccf diff --git a/watchdog.h b/watchdog.h index 3c4a487..73c75d5 100644 --- a/watchdog.h +++ b/watchdog.h @@ -22,6 +22,8 @@ void watchdog_init(int preinit); char* watchdog_fd(void); int watchdog_timeout(int timeout); int watchdog_frequency(int frequency); +void watchdog_set_magicclose(bool val); +bool watchdog_get_magicclose(void); void watchdog_set_stopped(bool val); bool watchdog_get_stopped(void); void watchdog_set_cloexec(bool val); @@ -46,6 +48,15 @@ static inline int watchdog_frequency(int frequency) return 0; } +static inline void watchdog_set_magicclose(bool val) +{ +} + +static inline bool watchdog_get_magicclose(void) +{ + return false; +} + static inline void watchdog_set_stopped(bool val) { }