]>
Commit | Line | Data |
---|---|---|
53e1b683 | 1 | /* SPDX-License-Identifier: LGPL-2.1+ */ |
c2f1db8f | 2 | #pragma once |
e96d6be7 | 3 | |
a8fbdf54 TA |
4 | #include <stdbool.h> |
5 | ||
6 | #include "time-util.h" | |
e96d6be7 LP |
7 | #include "util.h" |
8 | ||
e4c98db3 | 9 | int watchdog_set_device(char *path); |
e96d6be7 LP |
10 | int watchdog_set_timeout(usec_t *usec); |
11 | int watchdog_ping(void); | |
12 | void watchdog_close(bool disarm); | |
c5f8a179 | 13 | usec_t watchdog_runtime_wait(void); |
e4c98db3 EJ |
14 | |
15 | static inline void watchdog_free_device(void) { | |
16 | (void) watchdog_set_device(NULL); | |
17 | } |