From 2cb7e0aaedad73b076ea18c6900b0e86c5760d79 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 27 Apr 2024 15:00:47 +0200 Subject: Adding upstream version 247.3. Signed-off-by: Daniel Baumann --- src/shared/watchdog.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/shared/watchdog.h (limited to 'src/shared/watchdog.h') diff --git a/src/shared/watchdog.h b/src/shared/watchdog.h new file mode 100644 index 0000000..b7587db --- /dev/null +++ b/src/shared/watchdog.h @@ -0,0 +1,17 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ +#pragma once + +#include + +#include "time-util.h" +#include "util.h" + +int watchdog_set_device(char *path); +int watchdog_set_timeout(usec_t *usec); +int watchdog_ping(void); +void watchdog_close(bool disarm); +usec_t watchdog_runtime_wait(void); + +static inline void watchdog_free_device(void) { + (void) watchdog_set_device(NULL); +} -- cgit v1.2.3