]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/shared/watchdog.h
tree-wide: drop license boilerplate
[thirdparty/systemd.git] / src / shared / watchdog.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2 #pragma once
3
4 /***
5 This file is part of systemd.
6
7 Copyright 2012 Lennart Poettering
8 ***/
9
10 #include <stdbool.h>
11
12 #include "time-util.h"
13 #include "util.h"
14
15 int watchdog_set_device(char *path);
16 int watchdog_set_timeout(usec_t *usec);
17 int watchdog_ping(void);
18 void watchdog_close(bool disarm);
19
20 static inline void watchdog_free_device(void) {
21 (void) watchdog_set_device(NULL);
22 }