blob: a345e4ba7d9d0df9019d1c87bbe21e8e2371f101 [file] [log] [blame] [raw]
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include <stdbool.h>
#include "time-util.h"
#include "util.h"
int watchdog_set_device(char *path);
int watchdog_set_timeout(usec_t *usec);
int watchdog_ping(void);
void watchdog_close(bool disarm);
static inline void watchdog_free_device(void) {
(void) watchdog_set_device(NULL);
}