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