]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/shared/watchdog.h
update TODO
[thirdparty/systemd.git] / src / shared / watchdog.h
CommitLineData
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 9int watchdog_set_device(char *path);
e96d6be7
LP
10int watchdog_set_timeout(usec_t *usec);
11int watchdog_ping(void);
12void watchdog_close(bool disarm);
c5f8a179 13usec_t watchdog_runtime_wait(void);
e4c98db3
EJ
14
15static inline void watchdog_free_device(void) {
16 (void) watchdog_set_device(NULL);
17}