-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcommon.h
More file actions
36 lines (27 loc) · 660 Bytes
/
common.h
File metadata and controls
36 lines (27 loc) · 660 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// SPDX-License-Identifier: LGPL-3.0-or-later
// Shared definitions and project-wide includes
#ifndef COMMON_H
#define COMMON_H
#include <assert.h>
#include <errno.h>
#include <limits.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/sysmacros.h>
#include <linux/fb.h>
#include <linux/input.h>
#include <rfb/rfb.h>
#define BPP 32
#define SERVER_INIT 0
#define SERVER_STOP 1
#define SERVER_REINIT 2
#define LOG(fmt, ...) do { fprintf(stderr, fmt, ##__VA_ARGS__); } while (0)
#endif