X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fwatchdog.h;fp=src%2Fwatchdog.h;h=9865451fa01552435ee5fcdd89b92742b1b1e0a8;hb=d2949381713c35210a43391524494c639f6f1d48;hp=0000000000000000000000000000000000000000;hpb=c5373d9fc0c8e3dfb6529b35bf44efe58410e0c7;p=tinc diff --git a/src/watchdog.h b/src/watchdog.h new file mode 100644 index 00000000..9865451f --- /dev/null +++ b/src/watchdog.h @@ -0,0 +1,15 @@ +#ifndef TINC_WATCHDOG_H +#define TINC_WATCHDOG_H + +// Start sending keepalive notifications to watchdog. +// Called after initialization is finished before entering the event loop. +void watchdog_start(void); + +// Stop sending keepalive notifications. +// Called shortly before exiting. +void watchdog_stop(void); + +// Send keepalive notification. +void watchdog_ping(void); + +#endif // TINC_WATCHDOG_H