summaryrefslogtreecommitdiffstats
path: root/lib/common.h
blob: cf566f06a97d7b0e47d50582a74afbd82c8710ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef COMMON_H
#define COMMON_H

#define _GNU_SOURCE

#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>
#include <time.h>

enum {
    REQUEST_TYPE_GET_TASK,
    REQUEST_TYPE_PUT_RESULT,
};

void configure_timeout(int delay);

#endif // COMMON_H