]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/shared/watchdog.h
Merge pull request #14592 from keszybz/simplifications
[thirdparty/systemd.git] / src / shared / watchdog.h
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
14 static inline void watchdog_free_device(void) {
15 (void) watchdog_set_device(NULL);
16 }