blob: ecb7c840e65ae5d40419bf5f9ca57fdf4051aa41 [file] [log] [blame]
Olivier Deprez157378f2022-04-04 15:47:50 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00002#ifndef TIMEOUT_H
3#define TIMEOUT_H
4
5enum {
6 /* Default timeout */
7 TIMEOUT = 10 /* seconds */
8};
9
10void sigalrm(int signo);
11void timeout_begin(unsigned int seconds);
12void timeout_check(const char *operation);
13void timeout_end(void);
14
15#endif /* TIMEOUT_H */