blob: d807ec9721708c14db111c8f14ad6124cbc61890 (
plain)
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
/**
* @file
* @section AUTHORS
*
* Authors:
* Eamon Walsh <ewalsh@tycho.nsa.gov>
*
* @section LICENSE
*
* This file is in the public domain.
*/
#ifndef _LINPICKER_COMMON_H_
#define _LINPICKER_COMMON_H_
/* Vchan/Xenstore parameters */
#define LINPICKER_TOKEN "@i"
#define LINPICKER_VPORT 6000
/* Log files */
#define SERVER_LOG "/var/log/xen/linpicker-server.log"
#define MONITOR_LOG "/var/log/xen/linpicker-monitor.log"
/* Security label dimensions */
#define FONT_FILE PKGDATADIR "/decker.ttf"
#define SERVER_BG_FILE PKGDATADIR "/serverbg.rgb"
#define DESKTOP_BG_FILE PKGDATADIR "/desktopbg.rgb"
#define BFONT_HEIGHT 18
#define SFONT_HEIGHT 14
#define SECLABEL_HEIGHT (BFONT_HEIGHT + 6)
#define MOUSELABEL_HEIGHT (SFONT_HEIGHT + 8)
#define MOUSELABEL_WIDTH MOUSELABEL_HEIGHT
#define MOUSELABEL_OFFSET 0
#define MAX_THUMBS 5
#define THUMB_SCALE 6
#define THUMB_PAD 25
#define BORDER_WIDTH 2
#define CURSOR_WIDTH 10
#define SEC_BORDER 3
#define SEC_CORNER 18
/* Utility macros */
#define ARRAY_SIZE(a) (sizeof(a)/sizeof(*a))
#ifndef MAX
#define MAX(a,b) ((a)>(b)?(a):(b))
#endif
#ifndef MIN
#define MIN(a,b) ((a)<(b)?(a):(b))
#endif
#endif
|