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