1 #ifndef Constants_H 2 # define Constants_H 3 4 // dxpc version number 5 static const unsigned int DXPC_VERSION_MAJOR = 3; 6 static const unsigned int DXPC_VERSION_MINOR = 9; 7 static const unsigned int DXPC_VERSION_PATCH = 2; 8 static const unsigned int DXPC_VERSION_BETA = 0; // zero if not beta 9 10 // Maximum number of X connections supported 11 static const unsigned int MAX_CONNECTIONS = 256; 12 13 // TCP port on which server proxy listens for connections from 14 // client proxy 15 static const unsigned int DEFAULT_PROXY_PORT = 4000; 16 17 // X display number that client proxy imitates 18 static const unsigned int DEFAULT_DISPLAY_NUM = 8; 19 20 // Default image compression level. 21 static const int DEFAULT_IMAGE_COMPRESSION_LEVEL = 9; 22 23 // Bit masks to select the lower 'i' bits of an int, 0 <= 'i' <= 32 24 extern const unsigned int PARTIAL_INT_MASK[33]; 25 26 // Maximum number of points in a FillPoly request that are given 27 // their own history caches 28 static const unsigned int FILL_POLY_MAX_POINTS = 10; 29 30 // Sizes of optional fields for ConfigureWindow request 31 extern const unsigned int CONFIGUREWINDOW_FIELD_WIDTH[7]; 32 33 // Sizes of optional fields for CreateGC request 34 extern const unsigned int CREATEGC_FIELD_WIDTH[23]; 35 36 // Mapping to reverse the bits in a byte, for image processing on 37 // little-endian architectures: 38 extern unsigned char REVERSED_BYTE[256]; 39 40 // Min width/height ratio for treatment of a bitmap image as a line of 41 // bitmapped text 42 static const unsigned int PUT_IMAGE_MIN_ASPECT_RATIO = 8; 43 44 // Return the license/copyright info string. 45 extern const char *getLicenseInfo(); 46 47 #endif /* Constants_H */ 48